$ git clone git://github.com/tonyg/pi-nothing.git
$ make
$ cp kernel.img /PATH/TO/YOUR/RASPBERRY/PI/SDCARD
Boot the Raspberry Pi.
Alternatively,
$ make versatilepb.img
$ ./run-kernel
This command compiles the ARM disassembler disarm
, copyright Gareth
McCaughan:
$ make -C disarm
This command compiles the kernel source from kernel.nothing
into
kernel.img
:
$ racket main-arm.rkt --start $(cat kernel.startaddr) kernel
This command compiles versatilepb.nothing
into versatilepb.img
:
$ racket main-arm.rkt --start $(cat versatilepb.startaddr) versatilepb
This command fires up qemu-system-arm
with versatilepb.img
:
$ ./run-kernel
The graphical output is disabled at present. You're interacting with
the kernel via the emulated board's serial UART. Type characters at
it, and it will echo them. When you get bored of this, press C-a x
to quit qemu
.
Note that versatilepb.nothing
polls the UART for input at present,
so qemu
will take 100% of your CPU while it's running!