On 2017 Aug 27 (Sun) at 21:54:07 +0200 (+0200), Peter Hessler wrote:
:(this depends on the patch to u-boot I just sent to ports@)
:
:If we should manage to boot on a Pinebook machine, we should install the
:correct firmware for it.
:
:OK?
:

Updated to a now working copy!  This grew bsd.rd a bit.  After
discussion with patrick@, we decided to grow from 7.5M to 9M.

This survives a bsd.rd Upgrade on my pinebook.  Still depends on the
u-boot port update, a new version will be emailed shortly.

OK?

Index: distrib/arm64/ramdisk/Makefile
===================================================================
RCS file: /cvs/src/distrib/arm64/ramdisk/Makefile,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile
--- distrib/arm64/ramdisk/Makefile      22 Aug 2017 23:20:00 -0000      1.3
+++ distrib/arm64/ramdisk/Makefile      31 Aug 2017 08:23:18 -0000
@@ -19,6 +19,7 @@ MAKEFSARGS_RD=        -o disklabel=${DISKTYPE},
 
 DIRS=\
        pine64 \
+       pinebook \
        rpi
 
 .ifndef DESTDIR
Index: distrib/arm64/ramdisk/install.md
===================================================================
RCS file: /cvs/src/distrib/arm64/ramdisk/install.md,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 install.md
--- distrib/arm64/ramdisk/install.md    22 Aug 2017 23:20:00 -0000      1.7
+++ distrib/arm64/ramdisk/install.md    31 Aug 2017 08:23:18 -0000
@@ -40,6 +40,7 @@ md_installboot() {
 
        case $(sysctl -n hw.product) in
        *Pine64*)                       _plat=pine64;;
+       *Pinebook*)                     _plat=pinebook;;
        *'Raspberry Pi'*)               _plat=rpi;;
        esac
 
@@ -52,7 +53,7 @@ md_installboot() {
        _mdec=/usr/mdec/$_plat
 
        case $_plat in
-       pine64)
+       pine64|pinebook)
                dd if=$_mdec/u-boot-sunxi-with-spl.bin of=${_disk}c \
                    bs=1024 seek=8 >/dev/null 2>&1
                ;;
Index: distrib/arm64/ramdisk/list
===================================================================
RCS file: /cvs/src/distrib/arm64/ramdisk/list,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 list
--- distrib/arm64/ramdisk/list  22 Aug 2017 23:20:00 -0000      1.5
+++ distrib/arm64/ramdisk/list  31 Aug 2017 08:23:18 -0000
@@ -125,5 +125,6 @@ COPY        /usr/local/share/raspberrypi-firmwa
 COPY   /usr/local/share/u-boot/rpi_3/u-boot.bin usr/mdec/rpi/u-boot.bin
 
 COPY   /usr/local/share/u-boot/pine64_plus/u-boot-sunxi-with-spl.bin 
usr/mdec/pine64/u-boot-sunxi-with-spl.bin
+COPY   /usr/local/share/u-boot/pinebook/u-boot-sunxi-with-spl.bin 
usr/mdec/pinebook/u-boot-sunxi-with-spl.bin
 
 TZ
Index: etc/etc.arm64/disktab
===================================================================
RCS file: /cvs/src/etc/etc.arm64/disktab,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 disktab
--- etc/etc.arm64/disktab       11 Jan 2017 17:05:29 -0000      1.1
+++ etc/etc.arm64/disktab       31 Aug 2017 08:23:18 -0000
@@ -2,9 +2,9 @@
 
 # Leave nc=16; adjust size using: ns
 rdroot|ramdiskroot|RAM-disk root FS image:\
-       :dt=rdroot:se#512:nc#16:nt#2:ns#480:\
-       :ta=4.2BSD:oa#0:pa#15360:fa#512:ba#4096:\
-       :ob#0:pb#0:oc#0:pc#15360:
+       :dt=rdroot:se#512:nc#16:nt#2:ns#576:\
+       :ta=4.2BSD:oa#0:pa#18432:fa#512:ba#4096:\
+       :ob#0:pb#0:oc#0:pc#18432:
 
 miniroot:\
        :dt=rdroot:se#512:nc#9:nt#16:ns#256:\
Index: sys/arch/arm64/conf/RAMDISK
===================================================================
RCS file: /cvs/src/sys/arch/arm64/conf/RAMDISK,v
retrieving revision 1.35
diff -u -p -u -p -r1.35 RAMDISK
--- sys/arch/arm64/conf/RAMDISK 28 Aug 2017 11:16:04 -0000      1.35
+++ sys/arch/arm64/conf/RAMDISK 31 Aug 2017 08:23:18 -0000
@@ -30,7 +30,7 @@ option                NO_PROPOLICE
 option         BOOT_CONFIG
 
 option         RAMDISK_HOOKS
-option         MINIROOTSIZE=15360
+option         MINIROOTSIZE=18432
 
 option         FFS
 option         FFS2




-- 
"Wrong," said Renner.

"The tactful way," Rod said quietly, "the polite way to disagree with
the Senator would be to say, `That turns out not to be the case.'"

Reply via email to