This is compilation of Labs completed by LynxLine (http://lynxline.com/projects/labs-portintg-inferno-os-to-raspberry-pi/) into the source code repository.
We started a small and exciting project just for fun as “Porting Inferno OS to Raspberry Pi”. Of course we would like to run it there as native, not hosted. It was always declared that this OS is very simple for porting to new platforms, so let’s just research this and reach new distilled experiences of system programming. Also this OS is very small, simple and easy to tweak for research purposes.
We decided to organize it as some set of small labs with very detailed steps of what is done to reach results and make everything easy to reproduce.
Season 1: Road to boot…
- Lab 1, Compiler
- Lab 2, Hardware
- Lab 3, R-Pi Booting process
- Lab 4, Loading kernel
- Lab 5, Hello World
- Lab 6, Compile something
- Lab 7, linking, planning next
- Lab 8, memory model
- Lab 9, coding assembler part
- Lab 10, Bss, memory pools, malloc
- Lab 11, _div, testing print
- Lab 12, interrupts, part 1
- Lab 13, interrupts, part 2
- Lab 14, interrupts, part 3
- Lab 15, Eve, Hello World from Limbo!
Season 2: Close to hardware…
- Lab 16, Adding clocks, timers, converging to 9pi codes
- Lab 17, mmu init
- Lab 18, we have a screen!
- Lab 19, keyboard through serial, fixes to get Ls
- Lab 20, devusb, usbdwc and firq, first step to usb
- Lab 21, porting usbd, fixed in allocb, see usb in actions
- Lab 22, Usb keyboard
- Lab 23, hard disk or SD card
- Lab 24, network, part 1
- Lab 25, network, part 2
- Lab 26, floating point
Downloads:
Installation:
- Download latest zip package from Downloads
- Pepare SD card with first DOS partition for boot (about 100MB, there is a problem with
dossrv
and large partitions) - Unzip all files to SD (boot.scr, kernel.bin, ... should in root of SD)
- Boot Raspberry Pi
- By default it starts
styxlisten -A tcp!*!564 export /
, so you can mount it on other host bymount -A tcp!10.0.56.101!564 /n/remote/rpi
(-A means no auth, IP is for example, see what it got by DHCP)
Special thanks:
- Charles Forsyth
- Richard Miller
- Peter D. Finn