From 6f7e4bf16a01c38b03d41d09e3e6d9b615ecee0c Mon Sep 17 00:00:00 2001 From: Calascibetta Romain Date: Sun, 12 Jan 2025 12:30:33 +0100 Subject: [PATCH] Add some docs --- doc/dev.md | 93 ++++++++++++++++++++++++++++++++++++++++ doc.txt => doc/memory.md | 3 ++ 2 files changed, 96 insertions(+) create mode 100644 doc/dev.md rename doc.txt => doc/memory.md (97%) diff --git a/doc/dev.md b/doc/dev.md new file mode 100644 index 0000000..830d596 --- /dev/null +++ b/doc/dev.md @@ -0,0 +1,93 @@ +The best way to iterate and try gilbraltar is to use the netboot and an +ethernet cable to update a folder containing everything needed for the +RaspBerry Pi 5 and restart the RaspBerry Pi to download this new version of the +Gilbraltar kernel. + +At least, this method is quicker than plugging and unplugging the SD card with +the new version of the kernel. + +This document explains how to test Gilbraltar directly on the RaspBerry Pi 5 +with the netboot. + +## Configuring the RaspBerry Pi 5 + +The first thing to do is to get an SD card and install another version of the +firmware that allows netboot. So you need to install `rpi-imager` and "Network +Book" ("Choose OS" -> "Misc Utility Images" -> "Bootloader (Pi 5 family)" -> +Network Boot"). + +Once installed on the SD card, you need to put the card on the RaspBerry Pi 5 +and plug in the power supply. The firmware will then be modified (to activate +the netboot) and if all goes well, the LED on the RaspBerry Pi 5 should blink +green. + +At this point, you no longer need the SD card. All you need now is an ethernet +cable. This needs to be connected between your RaspBerry Pi 5 and your computer +(directly, without going through a router). + +### Dnsmasq and Ethernet + +On your PC, you need to configure a `dnsmasq` service so that it is mounted on +the Ethernet interface and can communicate with the RaspBerry Pi 5. To mount +`dnsmasq` on the Ethernet interface, you need a properly configured virtual +bridge and "plug" your Ethernet interface into this bridge: +```shell +$ sudo ip link add name raspberrypi type bridge +$ sudo ip addr add 192.168.42.1/24 dev raspberrypi +$ sudo ip link set eth0 master raspberrypi +$ cat >>/etc/dnsmasq.conf </srv/tftp/config.txt <