Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109959336
D18337.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18337.diff
View Options
Index: head/release/arm64/PINEBOOK.conf
===================================================================
--- head/release/arm64/PINEBOOK.conf
+++ head/release/arm64/PINEBOOK.conf
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+EMBEDDED_TARGET_ARCH="aarch64"
+EMBEDDED_TARGET="arm64"
+EMBEDDEDBUILD=1
+EMBEDDEDPORTS="sysutils/u-boot-pinebook"
+FAT_SIZE="54m -b 1m"
+FAT_TYPE="16"
+IMAGE_SIZE="2560M"
+KERNEL="GENERIC"
+MD_ARGS="-x 63 -y 255"
+NODOC=1
+PART_SCHEME="MBR"
+FDT_OVERLAYS="sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer"
+export BOARDNAME="PINEBOOK"
+
+arm_install_uboot() {
+ UBOOT_DIR="/usr/local/share/u-boot/u-boot-pinebook"
+ UBOOT_FILES="u-boot-sunxi-with-spl.bin"
+ chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
+ of=/dev/${mddev} bs=1k seek=8 conv=sync
+
+ return 0
+}
+
+arm_do_quirk() {
+ echo '# Enable quirk for trackpad' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo 'usb_quirk_load=YES' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo 'ums_load=YES' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ echo 'hw.usb.quirk="0x258a 0x000c 0x0000 0xffff UQ_CFG_INDEX=1"' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+ # We want EFIFB but there is no node and so we cannot know
+ # which regulator is used for powering lcd/hdmi
+ echo 'hw.regulator.disable_unused=0' \
+ >> ${CHROOTDIR}/${DESTDIR}/boot/loader.conf
+}
Index: head/release/tools/arm.subr
===================================================================
--- head/release/tools/arm.subr
+++ head/release/tools/arm.subr
@@ -174,6 +174,7 @@
arm64_setup_multicons
arm_setup_fdt_overlays
arm_setup_minimal_loader
+ arm_do_quirk
echo '# Custom /etc/fstab for FreeBSD embedded images' \
> ${CHROOTDIR}/${DESTDIR}/etc/fstab
@@ -237,4 +238,8 @@
# Override in the arm/KERNEL.conf file.
return 0
+}
+
+arm_do_quirk() {
+ # Override in the arm{,64}/BOARD.conf file.
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 12, 6:20 PM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16614360
Default Alt Text
D18337.diff (1 KB)
Attached To
Mode
D18337: release: arm64: Add PINEBOOK config
Attached
Detach File
Event Timeline
Log In to Comment