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