From: Michal Sojka Date: Sun, 3 Apr 2022 08:26:09 +0000 (+0200) Subject: doc: Add preliminary Raspberry Pi guide X-Git-Tag: 20220425~2 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/3e0fd946995ce0387ccf25dcfef926f712d93061 doc: Add preliminary Raspberry Pi guide --- diff --git a/README.md b/README.md index 65a0dd0..0be003e 100644 --- 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 index 0000000..58b0335 --- /dev/null +++ b/doc/README.rpi.md @@ -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`. + + + +- 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 index 0000000..c8af2af Binary files /dev/null and b/doc/rpi.jpg differ