raspberrypi / rpi-eeprom

Installation scripts and binaries for the Raspberry Pi 4 and Raspberry Pi 5 bootloader EEPROMs
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-boot-eeprom
Other
1.26k stars 201 forks source link

Boot issues with RPi5 when moving/copying SD-cards between different units #602

Closed jofemodo closed 4 weeks ago

jofemodo commented 4 weeks ago

Describe the bug

I have 4 x RBPi5 over my desk, let's name them U1 to U4. U1 is my working unit and the rest are for testing. When moving a working SD-card from unit U1 to another one, most of times it doesn't boot. When re-plug the SD-card in U1 again, it works. The booting process breaks at the very beginning and the LED lights solid green. I got some info then booting without SD-card, waiting the extended info and then plug the SD-card. Then i can see this:

imagen

And after this, nothing. Silence.

If i re-plug the SD-card in the U1 unit, it always work. If i re-plug the SD-card in any RPi4, it always work.

I've tried all kind of combinations but i can't reproduce the error in a consistent way (yet). I wanted to open this issue in the rpi-eeprom repo, but it has closed the issue tracker, so i open here and perhaps someone can give me some guidance or explain if this "armstub8-2712.bin" file is related with the issue. I can't find this file anywhere.

FYI, the SD-image is based in the latest RaspberryPiOs, updated to the last. The customization is nothing special:

Steps to reproduce the behaviour

Device (s)

Raspberry Pi 5

System

Logs

See screen captures above. I could prepare a minimal customizing script to reproduce the issue.

Additional context

No response

popcornmix commented 4 weeks ago

I wanted to open this issue in the rpi-eeprom repo, but it has closed the issue tracker

Not sure what you mean - it has many open issues. I'll transfer it as this is not a linux issue (the linux kernel hasn't even been loaded at this point).

nbuchwitz commented 4 weeks ago

Afaik the bootloaders hands over to the Linux kernel in armstub ...

Edit: In https://github.com/zynthian/zynthian-sys/commit/b02222081b4427a5343aca2844337edee2db0727#diff-b0bb583397b992204dcb3c7952e87bf9640bcc35957191cb7fcf0f96c28d20e2 you pin the firmware to a certain release. Which version and what were the reasons?

jofemodo commented 4 weeks ago

Hi @nbuchwitz!

Thanks for your support.

No matter the firmware version, it always fails. I've tried the recovery image firmware, recent ones, etc. I observe the same behavior no matter the firmware version i use.

I've also tried to restore the original "vanilla" config.txt and cmdline.txt from a clean RaspberryPiOS image and the issue persists.

I can't find this "armstub8-2712.bin" file anywhere. Where is it supposed to be? In the boot/firmware directory?

I'm looking to boot with an UART cable to get more info about the boot process.

Thanks

popcornmix commented 4 weeks ago

There shouldn't be a armstub8-2712.bin - the bootload contains the default one embedded. If that file exists, then it will be used in preference, to allow custom stubs, but it's not present on a default RpiOS image.

jofemodo commented 4 weeks ago

OK! Understood. I think i've found the issue. It's my fault because i was not changing the root partition UUID when restoring the vanilla cmdline.txt. Now it boots with the vanilla config, so the issue is probably some problem with my custom config.txt.

I will close.

Thanks a lot for your support!