MrEngman
Posts: 3844
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

rpi-update error

Thu Nov 29, 2018 12:54 pm

Just tried updating to Raspbian 4.14.83 using rpi-update and got the following error.

Code: Select all

 *** 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
#############################################################
This update bumps to rpi-4.14.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=197689
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    360      0 --:--:-- --:--:-- --:--:--   372
100 53.0M  100 53.0M    0     0   352k      0  0:02:33  0:02:33 --:--:-- 44798
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.83+
 *** depmod 4.14.83-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
cp: cannot stat ‘//root/.rpi-firmware/vc/sdk/*’: No such file or directory
Got it first on a Pi 0 and then on a Pi 1B+. Obviously a minor issue with // at the start of the directory tree but checking the directory I got

Code: Select all

pi@Pi-0-d:~ $ sudo ls -Al //root/.rpi-firmware/vc/
total 4
drwxrwxr-x 3 root root 4096 Nov 29 11:29 hardfp
So no sdk directory as it says.

Is this an error with rpi-update or something else?

I usually update a variety of Pi to the latest firmware version using rpi-update to check wifi drivers I compile and don't usually see any errors
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

christiantf
Posts: 4
Joined: Sun Feb 22, 2015 1:03 pm

Re: rpi-update error

Thu Nov 29, 2018 1:26 pm

Confirm the problem with two Rasperry Pi 2 today.
Yesterday, on a Pi 3B+ it worked.

The download size on the Pi2 was 53.0M in size, on the Pi3+ it was 56.1M.


Pi 3 (yesterday - OK):

Code: Select all

 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.82+
rpi-update *** depmod 4.14.82-v7+

Pi 2 (today - NOK):

Code: Select all

 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.83+
 *** depmod 4.14.83-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
cp: cannot stat '//root/.rpi-firmware/vc/sdk/*': No such file or directory

MrEngman
Posts: 3844
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: rpi-update error

Thu Nov 29, 2018 1:31 pm

Had a look at rpi-update and found this line in the code

Code: Select all

SKIP_SDK=${SKIP_SDK:-0}
Added SKIP_SDK=1 to the rpi-update command and the error no longer appeared. e.g.

Code: Select all

sudo SKIP_SDK=1 rpi-update
Would be helpful if someone can explain the initial issue I had with the sdk directory not existing.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
HawaiianPi
Posts: 4534
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: rpi-update error

Thu Nov 29, 2018 8:33 pm

The rpi-update command loads the Testing branch kernel and firmware, which may by buggy or unstable. Unless you actually want to test possibly buggy and unstable software to report errors, don't rpi-update.

The proper way to upgrade Raspbian to the latest stable kernel and firmware is:

Code: Select all

sudo apt update && sudo apt full-upgrade -y
If you DO want to test the newest firmware and report bugs, see here:
https://www.raspbian.org/RaspbianBugs
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: rpi-update error

Thu Nov 29, 2018 8:47 pm

christiantf wrote:
Thu Nov 29, 2018 1:26 pm
Confirm the problem with two Rasperry Pi 2 today.
Yesterday, on a Pi 3B+ it worked.

The download size on the Pi2 was 53.0M in size, on the Pi3+ it was 56.1M.


Pi 3 (yesterday - OK):

Code: Select all

 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.82+
rpi-update *** depmod 4.14.82-v7+

Pi 2 (today - NOK):

Code: Select all

 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.83+
 *** depmod 4.14.83-v7+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
cp: cannot stat '//root/.rpi-firmware/vc/sdk/*': No such file or directory
rpi-update installs the very latest bootloader which may be unstable and buggy.

You can install the latest stable bootloader files for the Pi.

To do this directly on the Pi:

Code: Select all

wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20181112-1_armhf.deb
sudo dpkg -i raspberrypi-bootloader_1.20181112-1_armhf.deb
To do this on another PC:

Code: Select all

sudo mount /dev/mmcblk0p2 /mnt
sudo mount /dev/mmcblk0p1 /mnt/boot
wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20181112-1_armhf.deb
sudo dpkg-deb -x raspberrypi-bootloader_1.20181112-1_armhf.deb /mnt
sudo umount /mnt/boot
sudo umount /mnt
Replace /dev/mmcblk0 with the device name of the microSD card, which can be found out by running sudo fdisk -l
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

MrEngman
Posts: 3844
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: rpi-update error

Thu Nov 29, 2018 9:17 pm

HawaiianPi wrote:
Thu Nov 29, 2018 8:33 pm
The rpi-update command loads the Testing branch kernel and firmware, which may by buggy or unstable. Unless you actually want to test possibly buggy and unstable software to report errors, don't rpi-update.

The proper way to upgrade Raspbian to the latest stable kernel and firmware is:

Code: Select all

sudo apt update && sudo apt full-upgrade -y
If you DO want to test the newest firmware and report bugs, see here:
https://www.raspbian.org/RaspbianBugs
I am well aware of the use of rpi-update and the problems that could occur. I have been using it since it was first introduced years ago and I always update my Pi's with it whenever a new update is available. I use rpi-update to update the kernel to allow me to test the wifi drivers I compile with the latest kernel versions.

This was a rather different problem than what I would normally expect. If there is a problem using rpi-update I would normally expect it to occur after updating the kernel and rebooting, not while actually running rpi-update itself.

Anyway all is fixed now. Seems the kernel updates were missing some relevant data.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Troubleshooting”