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" 15NODOC=1 16PART_SCHEME="GPT" 17export BOARDNAME="ROCKPRO64" 18 19arm_install_uboot() { 20 UBOOT_DIR="/usr/local/share/u-boot/u-boot-rockpro64" 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 30arm_do_quirk() { 31 echo '# Known issue with big.LITTLE' \ 32 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 33 echo 'hw.ncpu=4' \ 34 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 35} 36