Write image to RPI5 - oleksiimoisieiev/rpi5-knowledge-base GitHub Wiki

Start imager

Start the following command to install imager on ubuntu

sudo snap install rpi-imager

Run imager and start raspberry pi tool

https://www.raspberrypi.com/documentation/computers/getting-started.html

To start with the uart do the following changes to config.txt:

dtparam=uart0_console
enable_uart=1

This change should be done to config.txt on sd card

to see bootloader please add the following

uart_2ndstage=1

To start with custom kernel do the following changes to config.txt:

kernel=u-boot.bin

or

kernel=zephyr.bin

Start blinky on RPI5

checkout Zephyr from

[email protected]:tsnlab/zephyr.git

switch to branch:

rpi_5_serial

build blinky

west build -b rpi_5 samples/basic/blinky

follow instructions from https://github.com/tsnlab/zephyr/blob/rpi_5_serial/boards/raspberrypi/rpi_5/doc/index.rst

create config.txt:

kernel=zephyr.bin arm_64bit=1 dtparam=uart0_console enable_uart=1

Format flash sda1 to FAT32

https://lobotuerto.com/blog/format-a-usb-drive-as-fat32-in-linux

boot.