]> rtime.felk.cvut.cz Git - novaboot.git/blob - doc/README.rpi.md
nix: Update flake inputs
[novaboot.git] / doc / README.rpi.md
1 # Using Novaboot with Raspberry Pi
2
3 This document describes how to use Novaboot with Raspberry Pi 4B
4 (RPi).
5
6 > :warning: This is work in progress.
7
8 First, you need to setup the hardware – connect a serial line and
9 remote reset. A possible setup can be seen in the figure below.
10
11 ![RPi setup](./rpi.jpg)
12
13 - You need to enable serial port in the bootloader (U-Boot).
14
15   Update rpi-eeprom to the newest version
16
17   Run `rpi-eeprom-config --edit`.
18
19   Change `BOOT_UART` to `1`.
20
21 <!-- // Add BOOT_ORDER=0xf12 (see https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER) -->
22
23 - Connect USB-TTL-UART converter to the connector pins 8, 9, 10 (TXD0, GND, RXD0).
24
25 - Put U-Boot bootloader to the SD card
26
27   Compile U-Boot:
28
29         make rpi_arm64_defconfig
30         make CROSS_COMPILE=aarch64-unknown-linux-gnu- -j8
31         cp u-boot.bin ...
32
33    config.txt - add to `[pi4]` section:
34
35         kernel=u-boot.bin
36         arm_64bit=1
37         enable_uart=1
38
39 - Remote reset (and power on/off) can be controlled with an
40   USB-controlled relay connected to pins RUN and GLOBAL_EN.