ref: 9467dcc29ccacadfb18175627ecd365abc6c8094
parent: 0c29e324c5d02fcba4448fb12a4eafdb230db6e8
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Jan 15 16:23:25 EST 2023
MNT Reform
--- /dev/null
+++ b/mnt-reform.md
@@ -1,0 +1,21 @@
+MNT Reform
+==========
+
+## Making 9front boot from EMMC, without an SD card
+
+*NO REFUNDS*
+
+First, make sure to run the latest (dated 2023-01-15, at least) kernel.
+
+The guide assumes you have NVME connected, in which case internal EMMC
+should be showing as `/dev/sdO0`, `/dev/sdO1` and `/dev/sdO2`. The
+first one is "user" range, where by default the Linux recovery
+partition is situated. The other two are "boot" partitions, where
+U-Boot resides (`/dev/sdO1` specifically).
+
+1) install [ext4srv](https://git.sr.ht/~ft/ext4srv)
+2) mount EMMC linux partition: `ext4srv && mount -c /srv/ext4 /n/emmc /dev/sdO0/linux`
+3) copy `plan9.ini`, `9reform.u` and 9front's `/sys/src/boot/reform/boot.scr` to `/n/emmc/`
+4) download U-Boot build with early screen enabled: `hget https://ftrv.se/_/mntre-flash-20230115.bin > /tmp/flash.bin`, `md5sum /tmp/flash.bin`, you should get `63025b864faf596dc74e3a1677ad3f59`
+5) update U-Boot: `dd -if /tmp/flash.bin -of /dev/sdO1/data -bs 1024 -oseek 33 -trunc 0 -conv sync`
+6) the jumper under the heatsink should be positioned to booting from EMMC, this is not the default when the laptop is purchased