Skip to content

i386, x86_64, ARMv7 assembler/linker; Nothing-like mid-level language; Linear-scan register allocator; Operating system for Raspberry Pi

License

Notifications You must be signed in to change notification settings

juanfra684/pi-nothing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming language, compiler, and operating system for bare-metal ARM

Quickstart

$ 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

Details

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

Using qemu-system-arm instead of the Raspberry Pi

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!

About

i386, x86_64, ARMv7 assembler/linker; Nothing-like mid-level language; Linear-scan register allocator; Operating system for Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Racket 70.6%
  • Scheme 15.6%
  • C 12.2%
  • Other 1.6%