1#!/bin/sh 2# 3# 4 5EMBEDDED_TARGET_ARCH="aarch64" 6EMBEDDED_TARGET="arm64" 7EMBEDDEDBUILD=1 8EMBEDDEDPORTS="sysutils/u-boot-pinebook" 9FAT_SIZE="54m -b 1m" 10FAT_TYPE="16" 11IMAGE_SIZE="5120M" 12KERNEL="GENERIC" 13MD_ARGS="-x 63 -y 255" 14PART_SCHEME="GPT" 15FDT_OVERLAYS="sun50i-a64-timer" 16export BOARDNAME="PINEBOOK" 17 18arm_install_uboot() { 19 UBOOT_DIR="/usr/local/share/u-boot/u-boot-pinebook" 20 UBOOT_FILES="u-boot-sunxi-with-spl.bin" 21 chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \ 22 of=/dev/${mddev} bs=128k seek=1 conv=sync 23 24 return 0 25} 26 27arm_do_quirk() { 28 echo '# Enable quirk for trackpad' \ 29 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 30 echo 'usb_quirk_load=YES' \ 31 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 32 echo 'ums_load=YES' \ 33 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 34 echo 'hw.usb.quirk="0x258a 0x000c 0x0000 0xffff UQ_CFG_INDEX=1"' \ 35 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 36 # We want EFIFB but there is no node and so we cannot know 37 # which regulator is used for powering lcd/hdmi 38 echo 'hw.regulator.disable_unused=0' \ 39 >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf 40} 41