Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

rpi-update fails with "$1 ist nicht gesetzt" #267

Closed gicking closed 6 years ago

gicking commented 6 years ago

recent FW update of my NAS via "sudo rpi-update" fails with error message

/usr/bin/rpi-update: Zeile 364: $1 ist nicht gesetzt. (translates to "line 364: $1 undefined" or so)

Line 364 in rpi-update reads:

local REPO_API=${REPO_URI/github.com/api.github.com\/repos}/commits/$1

Last time everything worked fine, and in the meantime I only performed some upgrade / dist-upgrade via apt. Reboot didn't help and internet search didn't give any useful result.

The configuration is a Pi3 running Raspbian Stretch (4.14.71-v7+) and some NAS services. Nothing fancy, no low level tinkering.

Any idea what goes wrong? Thanks a lot in advance!

popcornmix commented 6 years ago

can you report output of:

ls -l /boot/.firmware_revision
cat -l /boot/.firmware_revision
gicking commented 6 years ago

ls -l /boot/.firmware_revision --> -rwxr-xr-x 1 root root 0 Okt 27 10:56 /boot/.firmware_revision

cat -l /boot/.firmware_revision --> no output (file has 0 bytes, see above)

I guess that is not correct...

gicking commented 6 years ago

Following popcornmi's comment I restored file /boot/.firmware_revision from a backup of the SD-card. That solved the above issue.

Thanks a lot!