Skip to content

Debug On Real Board

Berkus Decker edited this page Dec 20, 2025 · 1 revision

Debugging on real Raspberry Pi board:

  1. Build and flash chainboot onto an SD card.
  2. Insert SD card into Pi.
  3. Build kernel and chainofcommand
  4. Run chainofcommand with the kernel like this:
target/debug/chainofcommand /dev/tty.usb 115200 target/nucleus.bin

/dev/tty.usb is the device assigned to your raspi usb connection, 115200 is baud rate

  1. Boot raspi, it should boot your kernel and show console passthrough.

When you're ready to test a new version, build it and powerup Raspberry Pi again while chainofcommand is still running - it should pick up the new kernel binary and start it again.

Clone this wiki locally