Subject: Re: [9front] Free Carrots #5: MNT Reform
Date: Mon, 18 Jul 2022 10:46:10 +0200 [thread overview]
Message-ID: <99D55DF775BACC282DF091258BF36DBB@felloff.net> (raw)
the reform.img file is not a iso. it is a sdcard image containing the
flash.bin firmware stuff for the reform and a writable hjfs
root filesystem with 9front.
this gets you to bootargs prompt, where you then can choose between
a network fileserver, nvme, usb or the sdcard as your root filesystem.
> booting the kernel from anything besides sdcard requires more work nobody had done yet.
the reform boot currently works like this:
1) boot ROM checks the bootcfg switch to boot either from sdcard or emmc
2) load the flash.bin from offset 33*1k from sdcard or emmc
3) flash.bin contains trusted firmware, ddr init code and uboot
4) uboot runs and searches for a boot.scr file on sdcard or emmc
5) boot.scr loads plan9.ini from sdcard dos partition (NOT 9fat!)
6) boot.scr loads 9reform.u from sdcard dos partition (NOT 9fat!)
7) boot.scr starts the kernel
8) 9front kernel takes over, initializes display, nvme, usb, ethernet ...
until step 8, theres no way to access the nvme drive and everything
runs blind unless you have a serial cable hooked up to the board.
the reform will always boot from sdcard unless someone writes
the drivers for uboot to access pcie and nvme and usb. but even
then, uboot itself will always come from sdcard (or internal emmc)
as we cannot change the cpu's boot rom.
fixing uboot is alot of work and also makes for a complicated
setup to test this during development, potentially needing a
sdcard mux/emulator to be effective (costs over 100 euro).
once kernel is running, you can boot a different kernel file
using reboot!/path/to/9reform!method (which uses /dev/reboot
to start another kernel, skipping firmware).
to update the kernel, you can replace 9reform.u file in the sdcard
dos partition (NOT 9fat!).
you can also modify plan9.ini in the sdcard (NOT 9fat!) to set
bootargs= and user= to have different defaults.
also made a new image yesterday that has sigrids flickerfix
and makes inst/bootsetup stage not complain about not having
the latest torrent (i make a new one kind of every weekend)
is always this link:
next prev parent reply other threads:[~2022-07-18 8:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 1:40 sl
2022-07-16 23:12 ` william
2022-07-16 23:47 ` sl
2022-07-17 3:23 ` william
2022-07-17 20:31 ` james palmer
2022-07-18 1:56 ` william
2022-07-18 2:25 ` Stanley Lieber
2022-07-18 3:53 ` william
2022-07-18 4:59 ` ori
2022-07-18 5:12 ` william
2022-07-18 5:20 ` william
2022-07-18 5:49 ` william
2022-07-18 8:46 ` cinap_lenrek [this message]
2022-07-18 10:31 ` romi
2022-07-18 14:29 ` cinap_lenrek
2022-07-18 15:10 ` Alexander Shendi
2022-07-18 15:18 ` Sigrid Solveig Haflínudóttir
2022-07-18 15:42 ` Stanley Lieber
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).