On Mon, Aug 28, 2017 at 11:54:48AM +1000, Jonathan Gray wrote: > On Sun, Aug 27, 2017 at 09:54:07PM +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? > > This does not include distrib/arm64/ramdisk/list changes to actually > include it. > > The install.md changes will also break the installer for all arm64 > platforms. > > The second case statement should be > > pine64|pinebook)
It is unfortunate that while it is possible to put u-boot in spi flash on this and some other systems as described in: http://git.denx.de/?p=u-boot.git;a=blob_plain;f=board/sunxi/README.sunxi64;hb=HEAD The boot rom in the soc will see the header from the pine64 u-boot on the miniroot and boot that as spi flash is tried after micro sd and emmc. Though if u-boot recent enough to have efi were on spi flash these ramdisk parts wouldn't be required as long as the dtb didn't use pine64 for a model. Booting off usb as well as sd card/emmc should be possible in that configuration as well. > > > > > Index: distrib/arm64/ramdisk/Makefile > > =================================================================== > > RCS file: /cvs/openbsd/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 27 Aug 2017 19:48:36 -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/openbsd/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 27 Aug 2017 19:44:28 -0000 > > @@ -40,6 +40,7 @@ md_installboot() { > > > > case $(sysctl -n hw.product) in > > *Pine64*) _plat=pine64;; > > + *Pinebook*) _plat=pinebook;; > > *'Raspberry Pi'*) _plat=rpi;; > > esac > > > > @@ -53,6 +54,7 @@ md_installboot() { > > > > case $_plat in > > pine64) > > + pinebook) > > dd if=$_mdec/u-boot-sunxi-with-spl.bin of=${_disk}c \ > > bs=1024 seek=8 >/dev/null 2>&1 > > ;; > > > > > > -- > > The reader this message encounters not failing to understand is > > cursed. > > >