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