littlekernel / lk

LK embedded kernel
MIT License
3.17k stars 621 forks source link

initial port of little-kernel to vc4 #259

Open cleverca22 opened 4 years ago

cleverca22 commented 4 years ago

some parts are copy/pasted from https://github.com/cleverca22/rpi-open-firmware which itself is a fork of https://github.com/christinaa/rpi-open-firmware

what works: network booting lk.elf on an rpi4 (just rename to start4.elf and host over tftp) the full console with line editing and history serial over pl011 (but no serial init, relies on previous bootloader stage) reboot command irq handling for timer compare and uart one-shot timer reporting cpu exceptions such as divide by zero