Skip to content

Files

Latest commit

7bb5776 · Mar 7, 2022

History

History
17 lines (10 loc) · 566 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 566 Bytes

An experiment in bare-metal programming using the Zig programming language on Raspberry Pi 3B+.

Untested on real hardware.

Running

To build (tested with Zig 0.9.0):

$ zig build

To run it in QEMU, you will need a compiled device tree (dtb) for the Raspberry Pi 3B+. One can be obtained from the Linux kernel source by running make ARCH=arm dtbs and having a look in arch/arm/boot/dts.

Then, run it, supplying the device tree:

$ qemu-system-aarch64 -M raspi3b -kernel zig-out/bin/kernel8.img -dtb bcm2837-rpi-3-b-plus.dtb