Installing 9front on a Raspberry Pi

This guide has only been tested on the Raspberry Pi 4.

You need:
Boot the Raspberry Pi from the USB drive.

Before installing determine your hardware and planned OS configuration. Although hjfs is the recommended filesystem for running Plan 9 on the Raspberry Pi, it is possible to use cwfs with some modifications. At some point Ori had said that for drives over 32 GB cwfs may be a better choice. If you want to use cwfs follow the steps at kvik's site except for the preppart step.

Before install, run disk/fdisk /dev/sdM0/data to edit the DOS partition table. If it produces errors read prep(8) and try the other commands as necessary.

Add 2 DOS partitions:
Next run disk/prep /dev/sdM0/plan9 to edit the Plan 9 partition table.

Add 2 Plan 9 partitions:
Your disk should now be correctly partitioned. Next modify /bin/inst/prepdisk and change the line if(! test -f /dev/sd*/9fat) to if(! test -f /dev/sd*/fs). If using cwfs instead of hjfs, instead replace with if(! test -f /dev/sd*/fsmain). This change will remain in your installed /bin/inst/prepdisk and you may want to change it back once you boot.

Next run inst/start. Installation should proceed without issue. During the partdisk and prepdisk steps make sure to quit out of the partitioning tools it puts you in since you've already partitioned.

After inst/start finishes installing you need to copy the Pi DOS partition files, which are required to boot on the Raspberry Pi. To copy the files:
If the install was successful you should now be able to reboot from the SD card.

Notes: