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