]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
doc: Add preliminary Raspberry Pi guide
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 3 Apr 2022 08:26:09 +0000 (10:26 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Apr 2022 22:46:11 +0000 (00:46 +0200)
README.md
doc/README.rpi.md [new file with mode: 0644]
doc/rpi.jpg [new file with mode: 0644]

index 65a0dd0fa6db0a19fd48e4c53e6ef8d85aaad774..0be003eaa888fd7a70e43603c5aa0e45a4779e44 100644 (file)
--- a/README.md
+++ b/README.md
@@ -41,3 +41,7 @@ possible.
 
 - [novaboot-shell](server/novaboot-shell.pod)
 - [adduser-novaboot](server/adduser-novaboot.pod)
+
+### Hardware guides
+
+- [Raspberry Pi](./doc/README.rpi.md) (work-in-progress)
diff --git a/doc/README.rpi.md b/doc/README.rpi.md
new file mode 100644 (file)
index 0000000..58b0335
--- /dev/null
@@ -0,0 +1,40 @@
+# Using Novaboot with Raspberry Pi
+
+This document describes how to use Novaboot with Raspberry Pi 4B
+(RPi).
+
+> :warning: This is work in progress.
+
+First, you need to setup the hardware – connect a serial line and
+remote reset. A possible setup can be seen in the figure below.
+
+![RPi setup](./rpi.jpg)
+
+- You need to enable serial port in the bootloader (U-Boot).
+
+  Update rpi-eeprom to the newest version
+
+  Run `rpi-eeprom-config --edit`.
+
+  Change `BOOT_UART` to `1`.
+
+<!-- // Add BOOT_ORDER=0xf12 (see https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER) -->
+
+- Connect USB-TTL-UART converter to the connector pins 8, 9, 10 (TXD0, GND, RXD0).
+
+- Put U-Boot bootloader to the SD card
+
+  Compile U-Boot:
+
+        make rpi_arm64_defconfig
+        make CROSS_COMPILE=aarch64-unknown-linux-gnu- -j8
+        cp u-boot.bin ...
+
+   config.txt - add to `[pi4]` section:
+
+        kernel=u-boot.bin
+        arm_64bit=1
+        enable_uart=1
+
+- Remote reset (and power on/off) can be controlled with an
+  USB-controlled relay connected to pins RUN and GLOBAL_EN.
diff --git a/doc/rpi.jpg b/doc/rpi.jpg
new file mode 100644 (file)
index 0000000..c8af2af
Binary files /dev/null and b/doc/rpi.jpg differ