xref: /freebsd/release/arm64/PINEBOOK.conf (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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"
15NODOC=1
16PART_SCHEME="GPT"
17FDT_OVERLAYS="sun50i-a64-timer,sun50i-a64-opp"
18export BOARDNAME="PINEBOOK"
19
20arm_install_uboot() {
21	UBOOT_DIR="/usr/local/share/u-boot/u-boot-pinebook"
22	UBOOT_FILES="u-boot-sunxi-with-spl.bin"
23	chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
24		of=/dev/${mddev} bs=128k seek=1 conv=sync
25
26	return 0
27}
28
29arm_do_quirk() {
30	echo '# Enable quirk for trackpad' \
31	     >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
32	echo 'usb_quirk_load=YES' \
33	     >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
34	echo 'ums_load=YES' \
35	     >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
36	echo 'hw.usb.quirk="0x258a 0x000c 0x0000 0xffff UQ_CFG_INDEX=1"' \
37	     >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
38	# We want EFIFB but there is no node and so we cannot know
39	# which regulator is used for powering lcd/hdmi
40	echo 'hw.regulator.disable_unused=0' \
41	     >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
42}
43