raspberrypi / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
132 stars 18 forks source link

Error when specifying specific version #16

Closed mpfj closed 9 months ago

mpfj commented 9 months ago

I'm trying to update a CM4 to kernel version 6.1.41 for testing purposes. I have completed this in the past (maybe 2 months ago) but when I try it now, I get the following error:-

pi@raspberrypi:~ $ sudo rpi-update 5292d2d50791843252458366d686d206271f070f
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
FW_REV:
WANT_32BIT:1 WANT_64BIT:1 WANT_PI4:1 WANT_PI5:0
 *** Downloading specific artifact revision (this will take a few minutes)
curl  -L https://builds.raspberrypi.com/github/linux/5292d2d50791843252458366d686d206271f070f/bcmrpi | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0

gzip: stdin: unexpected end of file
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
Invalid artifact specified. Response: 404.

Can anyone shed light on what the issue is ?

Cheers

pelwell commented 9 months ago

That's because you are supplying a hash from the raspberrypi/firmware repo (https://github.com/raspberrypi/firmware/commit/5292d2d50791843252458366d686d206271f070f) when what you need is the equivalent from the raspberrypi/rpi-firmware repo (https://github.com/raspberrypi/rpi-firmware/commit/d16fbf67c6761c443774f74ed93cb57c162e214d)

mpfj commented 9 months ago

Aha, silly me!! All working now ... Thank you :)