Skip to content

Commit

Permalink
add instructions for running kernel in hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaoskari committed Nov 20, 2024
1 parent ae826f4 commit f8395c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,24 @@ python conf.py
then build with `ninja`

## launch

### inside qemu
use `run.sh` to launch the kernel in qemu

### with raspi4b
setup the raspi4b with jtag connection.

install openocd.

`sudo pacman -S openocd`

launch openocd with `openocd -f interface/jlink.cfg -f board/rpi4b.cfg`

connect with `aarch64-none-elf-gdb kernel8.elf`

set the target to the bcm2711.cpu0 `(gdb) target extended-remote :3333`

load the kernel8.elf to the raspi4b `(gdb) load kernel8.elf`

start debugging!

0 comments on commit f8395c8

Please sign in to comment.