siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.74k stars 538 forks source link

Support for rpi_5 #7978

Open etenzy opened 11 months ago

etenzy commented 11 months ago

When i try to start the rpi_generic version i get the following output:

Raspberry Pi 5 - 8GB
bootloader: 30de0ba5 2023/10/30
update-ts: 1699955031

board: d04170 797932e d8:3a:dd:xx:xx:xx
boot: mode USB-MSD 4 order f41 retry 0/128 restart 0/-1
SD: card detected 00035344534433324785594c22760176
part: 0 mbr [Oxee:00000001 0x00:00000000 0x00:00000000 0x00:000000001
power: supply: USB-PD 3000 mA CC1 PHIC: reset normal 0x0 usb_over_current=0
net: down ip: 0.0.0.0 sn: 0.0.0.0 gw: 0.0.0.0
tftp: 0.0.0.0 00:00:00:00:00:00
display: DISPO: HDMI HPD=1 EDID=ok #2 DISP1: HPD=0 EDID=none #0

usb_max_current_enable default 0 max-current 3000
Device-tree file "bcm2712-rpi-5-b.dtb" not found.

The installed operating system (OS) does not indicate support for Raspberry Pi 5
Update the OS or set os_check=0 in config.txt to skip this check.
Trying partition: 0
type: 32 1ba: 2048 'mkfs.fat' ' EFI • clusters 201618 (1)
Trying partition: 0
type: 32 1ba: 2048 'mkfs.fat' • EFI • clusters 201618 (1)
Read config.txt bytes 576 hnd 0x19759
usb_max_current_enable default 0 max-current 3000
Device-tree file "bcm2712-rpi-5-b.dtb" not found.

The installed operating system (OS) does not indicate support for Raspberry Pi 5
Update the OS or set os_check=0 in config.txt to skip this check.
Boot mode: USB-MSD (04) order f
wurmr commented 10 months ago

In the latest beta build v1.6.0-beta.1 it doesn't even get this far.

On a 4GB Pi 5 it never gets to the step of reading config.txt and keeps looping forever on the line type: 32 1ba: 2048 'mkfs.fat' • EFI • clusters 201618 (1)

rothgar commented 8 months ago

I just booted 1.6.4 and get the same error about os_check=0.

Based on the post here it might have to wait for 6.8 kernel to be supported.

AlexanderSkrock commented 7 months ago

Hi there,

as the mentioned Linux version 6.8 is released now, I would like to take the opportunity to ask whether there are any plans to support the Rasberry Pi 5 in the near future. I would be excited to get my newly purchased Rasberry Pi 5 up and running using Talos.

Kind regards Alexander Skrock

frezbo commented 7 months ago

There is no u-boot support yet, so it seems way far ahead

Toasterson commented 5 months ago

Any updates since? I am going with k3s at the moment but would love to testdrive Talos once it's ready.

rothgar commented 4 months ago

Based on some email list conversations I read it looks like uboot 2024.04 adds support for raspberry pi 5 booting from SD card (no USB or nvme)

If someone wants to try it out you would have to update the uboot version here https://github.com/siderolabs/sbc-raspberrypi/blob/main/Pkgfile#L12-L14 and build a docker image and push it to a registry

Then you can follow these steps to use imager to create a custom image that you should be able to dd to an SD card. https://www.talos.dev/v1.7/talos-guides/install/boot-assets/#example-raspberry-pi-overlay-with-imager

I'm leaving for vacation soon so I don't have time to try it but would love to hear back from anyone that does.

githubcdr commented 4 months ago

I tried compiling u-boot but it didn't work, the nvme patches seem to be required for compiling.

rothgar commented 4 months ago

The uboot patch says it only supports sd card right now. Did you try that?

githubcdr commented 4 months ago

I tried compiling without any patch and with patches, both failed for me.

githubcdr commented 4 months ago
38.13 make[1]: *** [scripts/Makefile.host:112: tools/image-sig-host.o] Segmentation fault (core dumped)
38.13 make[1]: *** Deleting file 'tools/image-sig-host.o'
38.13 make[1]: *** Waiting for unfinished jobs....
41.22 make[1]: *** [scripts/Makefile.host:112: tools/imx8image.o] Error 139
41.22 make[1]: *** Deleting file 'tools/imx8image.o'
41.22 make: *** [Makefile:1859: tools] Error 2
githubcdr commented 4 months ago

Good news! I have been able to boot Talos on rpi 5 using manually compiled uboot 2024.4, the ethernet port does not seem to be detected, probably some config.txt issues..

ruryx00 commented 4 months ago

Good news! I have been able to boot Talos on rpi 5 using manually compiled uboot 2024.4, the ethernet port does not seem to be detected, probably some config.txt issues..

I'm trying also could you explain better how you were able to do it. thanks

githubcdr commented 4 months ago

I first tried to build it via the bldr tool, but for some reason that gave me segfaults. What I did instead was manually compile uboot 2024.4 from source on a arm64 machine (rpi4) and then just place u-boot.bin file in the /boot partition :)

But as mentioned this will not work since the rpi firmware and the talos kernel must match if I understand correctly..

Maikusan commented 2 months ago

Are there any news regarding raspi 5 support?

pocket-pc commented 2 months ago

Should this be moved to siderolabs/sbc-raspberrypi for task tracking?