r/raspberry_pi 9h ago

Troubleshooting Bug in rpi-update (wrong github url to download firmware)?

When I run rpi-update on an rpi4b-2gb I get:

If you are unsure, test if your system boots with initramfs options disabled from config.txt
Would you like to proceed? (y/N)
Github API request failed with HTTP 422: https://api.github.com/repos/raspberrypi/rpi-firmware/commits/0

Respond of the link is

{
  "message": "No commit found for SHA: 0",
  "documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit",
  "status": "422"
}

What happened here and can you reproduce the bug?

0 Upvotes

8 comments sorted by

5

u/KingofGamesYami Pi 3 B 8h ago

Firmware updates have been distributed through apt for a while now. rpi-update is only used for testing experimental firmware patches. Are you sure you want to run rpi-update?

1

u/jodkalemon 8h ago edited 8h ago

Oh, didn't know that. Thought this is needed for the eeprom to be updated.

Edit:

So I just run rpi-eeprom-update which installs the current safe eeprom image which came through apt?

2

u/KingofGamesYami Pi 3 B 8h ago

Edit: So I just run rpi-eeprom-update which installs the current safe eeprom image which came through apt?

No. You run sudo apt update and sudo apt upgrade to update normally. Do not run rpi-eeprom-update.

If you've already run rpi-update in the past and currently have experimental firmware installed, follow the instructions in the section "Downgrade firmware to the last stable release".

https://www.raspberrypi.com/documentation/computers/os.html

After that, you won't need to do anything special in the future.

2

u/jodkalemon 7h ago

Will do that. Thanks for clarification. Always thought it was weird that an update process touched kernels from the repository.

-1

u/dovyp 8h ago

That SHA 0 is a dead giveaway the script is stale. Grab a fresh rpi-update, the firmware URL on their end moved.

4

u/saint-lascivious 7h ago

Alternatively, don't, since there are approximately zero reasons for Johnny Homeuser to be running bleeding edge firmware.

-11

u/[deleted] 8h ago

[removed] — view removed comment