Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover broken SPI rom (Rpi5) #636

Open
nbuchwitz opened this issue Nov 26, 2024 · 8 comments
Open

Recover broken SPI rom (Rpi5) #636

nbuchwitz opened this issue Nov 26, 2024 · 8 comments

Comments

@nbuchwitz
Copy link
Contributor

nbuchwitz commented Nov 26, 2024

Describe the bug

I ran an apt upgrade on a RPi5. After power down the device won't boot and presents an LED error code as soon as I connect the power supply: According to https://www.raspberrypi.com/documentation/computers/configuration.html#led-warning-flash-codes it is SPI EEPROM error - Pi 4 and Pi 5 (3x long 1x short)

How can I recover the broken device?

Steps to reproduce the behaviour

  • sudo apt update
  • sudo apt upgrade (devices shuts down, might be unrelated to the actual update)

Device (s)

Raspberry Pi 5

Bootloader configuration.

Cannot provide this, as the device won't boot anymore

System

No response

Bootloader logs

No response

USB boot

No response

NVMe boot

No response

Network (TFTP boot)

No response

@pelwell
Copy link
Collaborator

pelwell commented Nov 26, 2024

@peterharperuk
Copy link
Collaborator

RPI imager has a menu "misc utility images" which has bootloader images which you can flash to a blank SD card to recover the bootloader.

@nbuchwitz
Copy link
Contributor Author

Thanks, already tried that but the device keeps blinking SOS. I will try some other sdcards later. First I will have to deal with the joy of pcie switch erratas ...

@pelwell
Copy link
Collaborator

pelwell commented Nov 26, 2024

usbboot/rpiboot should also work: rpiboot -d recovery5, I think.

@timg236
Copy link
Collaborator

timg236 commented Nov 26, 2024

Thanks, already tried that but the device keeps blinking SOS. I will try some other sdcards later. First I will have to deal with the joy of pcie switch erratas ...

Please could you try the SD-card result again and then power up the Pi without an SD-card or other boot-devices? It would be good to confirm whether the SD card update is failing or if it's immediately failing as a result of something on the SD-card.

Also, what size of SDRAM is it?

@timg236
Copy link
Collaborator

timg236 commented Nov 26, 2024

Boot UART output from the SD card rescue would also be really helpful if you could provide that.

@nbuchwitz
Copy link
Contributor Author

Unfortunately I already fixed it with another sd card and a durability test case is running. After this is over (probably end of this week), I can test again with the broken SD and provide uart logs.

btw: rpiboot -d recovery5 did not work, nothing was detected. Anything like the nrpiboot pin on cm?

@timg236
Copy link
Collaborator

timg236 commented Nov 26, 2024

On a Pi5 if you press and hold the power button before connecting the USB-C cable it will go into rpiboot mode.

The recovery.bin does a sha256 check of pieeprom.sig before flashing it, but if something was broken in the low-speed memory setup then that might cause this. However, APT update uses flashrom so I can't see how the initial problem occured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants