1#!/bin/sh 2# 3# 4 5EMBEDDED_TARGET_ARCH="aarch64" 6EMBEDDED_TARGET="arm64" 7EMBEDDEDBUILD=1 8EMBEDDEDPORTS="sysutils/u-boot-rockpro64" 9FAT_SIZE="50m -b 16m" 10FAT_TYPE="16" 11IMAGE_SIZE="5120M" 12KERNEL="GENERIC" 13MD_ARGS="-x 63 -y 255" 14PART_SCHEME="GPT" 15export BOARDNAME="ROCKPRO64" 16 17arm_install_uboot() { 18 UBOOT_DIR="/usr/local/share/u-boot/u-boot-rockpro64" 19 UBOOT_FILE_1="idbloader.img" 20 UBOOT_FILE_2="u-boot.itb" 21 chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_1} \ 22 of=/dev/${mddev} bs=512 seek=64 conv=sync 23 chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_2} \ 24 of=/dev/${mddev} bs=512 seek=16384 conv=sync 25 return 0 26} 27