56005e4b71
Since there is known issue with big.LITTLE set the number of CPU to 4 which is the number present in the LITTLE cluster.
36 lines
815 B
Bash
36 lines
815 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
EMBEDDED_TARGET_ARCH="aarch64"
|
|
EMBEDDED_TARGET="arm64"
|
|
EMBEDDEDBUILD=1
|
|
EMBEDDEDPORTS="sysutils/u-boot-rockpro64"
|
|
FAT_SIZE="50m -b 16m"
|
|
FAT_TYPE="16"
|
|
IMAGE_SIZE="3072M"
|
|
KERNEL="GENERIC"
|
|
MD_ARGS="-x 63 -y 255"
|
|
NODOC=1
|
|
PART_SCHEME="GPT"
|
|
export BOARDNAME="ROCKPRO64"
|
|
|
|
arm_install_uboot() {
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-rockpro64"
|
|
UBOOT_FILE_1="idbloader.img"
|
|
UBOOT_FILE_2="u-boot.itb"
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_1} \
|
|
of=/dev/${mddev} bs=512 seek=64 conv=sync
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_2} \
|
|
of=/dev/${mddev} bs=512 seek=16384 conv=sync
|
|
return 0
|
|
}
|
|
|
|
arm_do_quirk() {
|
|
echo '# Known issue with big.LITTLE' \
|
|
>> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
|
|
echo 'hw.ncpu=4' \
|
|
>> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
|
|
}
|