cashaw
Posts: 71
Joined: Tue Mar 06, 2012 8:32 pm

rpi-update

Tue May 29, 2012 9:58 am

OK, slowly getting there with getting my Rpi up and running.

But, when installing and running rpi-update for the first time, I am getting the below error.
I've done a google and can find no mention of it, so does anyone have any ideas ?

[email protected]:/usr/bin# rpi-update
Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
Performing self-update
Using ARM/GPU memory split of 192MB/64MB
We're running for the first time
Setting up firmware (this will take a few minutes)
Using SoftFP libraries
/opt/vc/sbin/vcfiled: error while loading shared libraries: libvchiq_arm.so: cannot open shared object file: No such file or directory
If no errors appeared, your firmware was successfully setup
A reboot is needed to activate the new firmware

cashaw
Posts: 71
Joined: Tue Mar 06, 2012 8:32 pm

Re: rpi-update

Tue May 29, 2012 10:01 am

OK, not sure what the root cause of the problem is but typing 'ldconfig' solved the issue for me.

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: rpi-update

Tue May 29, 2012 10:03 am

There is at least one other thread that discusses this. Look towards the bottom of the thread.

http://www.raspberrypi.org/phpBB3/viewt ... led#p84715

User avatar
piglet
Posts: 909
Joined: Sat Aug 27, 2011 1:16 pm

Re: rpi-update

Tue May 29, 2012 10:09 am

I think the message is just saying that it couldn't find the file to check the timestamp. The end result was good - in my case that was the particular file I needed to run the edid parser, and after the update it was present.

cashaw
Posts: 71
Joined: Tue Mar 06, 2012 8:32 pm

Re: rpi-update

Tue May 29, 2012 10:44 am

Thanks all !!!

Everything seems to be working fine. In fact I am amazed that within an hour, I have setup VNC, setup a wifi adaptor and it is doing exactly what I ask of it!

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Thu May 31, 2012 10:48 pm

Sorry to hijack the thread: I'm having the exact same issue as the OP - the console output of rpi-update is exactly as above. Every time I run the updater on Debian, the result is a card which no longer boots, no OK light or anything. Running ldconfig prior to rpi-update doesn't seem to achieve anything in my case, and the libvchiq_arm.so is indeed missing, though its .a relative is present. Anyone got any ideas?

User avatar
RaTTuS
Posts: 10460
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: rpi-update

Thu Jun 07, 2012 1:29 pm

I can confirm that as from nowish - running this will result in a unbooting sd card on debian
replacing the boot partition with the previous one will get it back working .
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
RaTTuS
Posts: 10460
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: rpi-update

Thu Jun 07, 2012 4:02 pm

and it's now working again
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Thu Jun 07, 2012 4:06 pm

Isn't much of the firmware stored in the boot partition? Is there any benefit at all from running rpi-update and then restoring the older boot partition?
two × B rev 1 // four × B rev 2 // three × B+ // two × 2 B // one × A // two × A+ // eleven × Zero // one × Zero W

mrlinux2u
Posts: 213
Joined: Sat Sep 24, 2011 8:38 pm

Re: rpi-update

Thu Jun 07, 2012 4:57 pm

Also ran the rpi-update today and it resulted in a non-booting sd card, but I also found the /boot partition had become read-only for some reason.

The only way to fix it was to copy a backup /boot image to the sd card and all was well again.

Any ideas why /boot went read-only and is this cause of the non-booting?

Threlkeld
Posts: 26
Joined: Thu Jun 07, 2012 4:25 pm

Re: rpi-update

Thu Jun 07, 2012 4:59 pm

Just to say that I got this message and the update rendered my card unbootable also. Next time, I'll make sure I have a backup card ready before I start trying to update the one I'm using!
Or, if it is read-only, exactly how do I copy a backup boot image?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5331
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: rpi-update

Thu Jun 07, 2012 5:04 pm

RaTTuS wrote:and it's now working again
Well, the files haven't changed in the last couple of days, so it must be something wasn't written properly in the update procedure.
You can see when things change:
https://github.com/Hexxeh/rpi-update/commits/master
https://github.com/Hexxeh/rpi-firmware/commits/master

I have just tried an rpi-update (on raspian) and it worked fine.

So, when it fails make a note of what distribution you are running. How old the previous firmware was, and ideally take a copy of file in boot partition when it doesn't boot and again when you get it working and do a diff of the files.
Possibly a file is not getting written by the script, or it is getting corrupted.

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Thu Jun 07, 2012 5:16 pm

It bricks 100% of the time for me. I've only ever done it on the 19/04 build of Debian, because I've only had my Raspi a couple of weeks. Out of curiosity I tried a vanilla image (as opposed to the one I've been fiddling around with) and running rpi-update on that straight away* and it still bricks. As I said above, I get the error about the libvchiq_arm.so file in both cases.

I haven't yet run a comparison between the before and after files, but will do so. Out of curiosity, would it be possible to unset the read-only status of /boot after the update?

* = well, after installing ca-certificates and git, since they're required.
two × B rev 1 // four × B rev 2 // three × B+ // two × 2 B // one × A // two × A+ // eleven × Zero // one × Zero W

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: rpi-update

Thu Jun 07, 2012 5:25 pm

I am also on Debian6 19-4-2012 and have been attempting to install and run rpi-upgrade.
In the end I had to do

git
ca-certificates
upgrade
update
(not necessarily in that order)
before rpi-update would install and run properly.
I now do not get any error messages.

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Thu Jun 07, 2012 5:30 pm

Interesting. My standard image has been updated & upgraded several times, as well as lots of other rubbish I've installed. But the result is always the same.
two × B rev 1 // four × B rev 2 // three × B+ // two × 2 B // one × A // two × A+ // eleven × Zero // one × Zero W

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: rpi-update

Thu Jun 07, 2012 8:20 pm

It also bricked my SD card today. It's the only time I've used it.
Back to debian19042012 for me.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: rpi-update

Thu Jun 07, 2012 8:22 pm

I am going for consistency at the moment and steering well clear of rpi-update
I shall wait for the next proven release - either via an update (using rpi-update) or a fresh build
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: rpi-update

Thu Jun 07, 2012 8:25 pm

I am not entirely sure what the rpi-update does but presumably it is just restricted to those few files in the FAT partition. If you copied fresh files to FAT, surely your remaining installation would remain intact. It would be interesting if someone could confirm that as it would save people a lot of time and effort.

User avatar
nick.mccloud
Posts: 804
Joined: Sat Feb 04, 2012 4:18 pm

Re: rpi-update

Thu Jun 07, 2012 8:39 pm

It also updates module files aka drivers plus the developer sdk files - your own files remain untouched and in theory if the update is borked it should still startup as all the important stuff is in the kernel.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: rpi-update

Thu Jun 07, 2012 9:49 pm

Is there a chance that the /boot partition is not being synced properly?

As far as I know, the only safe way to sync this partition is to reboot or halt. For the people who have a corrupted partition, how are you shutting down or rebooting? I hope you are not just pulling the power cable.

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Thu Jun 07, 2012 11:52 pm

Haha! A measure of success! I ran the updater again, same process as usual, and again got a non-booting card. I checked whether /boot was read-only, and it wasn't. Putting the card back in the Raspi and powering it up after it had been in another machine brought up the test pattern for some bizarre reason (never had that before). I compared the old and new versions of start.elf and noticed a filesize difference - 1.95MB for the updated one, 1.92MB for the old one. I overwrote start.elf with the original version and now it boots perfectly - issues I was having previously have been corrected by the update, and it's working better than ever.
two × B rev 1 // four × B rev 2 // three × B+ // two × 2 B // one × A // two × A+ // eleven × Zero // one × Zero W

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5331
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: rpi-update

Fri Jun 08, 2012 9:22 am

@beardy
Do you have a config.txt? If so can you post it's contents.
HDMI or composite? Can you download latest start.elf from GitHub and compare it to (failing) version on sdcard.

User avatar
beardy
Posts: 23
Joined: Sun May 27, 2012 5:41 am
Location: Retford, Nottinghamshire, UK

Re: rpi-update

Fri Jun 08, 2012 9:50 am

@dom - I do have a config.txt, and the contents are:
config_hdmi_boost=4
hdmi_force_hotplug=1
hdmi_drive=2
... though when I've tried running the update on a virgin install, the config.txt file has been blank/non-existent. As you might have guessed, I'm using HDMI. I no longer have the non-working start.elf files because... er... they weren't working. I'll see if I can retrieve them and compare them.
two × B rev 1 // four × B rev 2 // three × B+ // two × 2 B // one × A // two × A+ // eleven × Zero // one × Zero W

User avatar
piglet
Posts: 909
Joined: Sat Aug 27, 2011 1:16 pm

Re: rpi-update

Fri Jun 08, 2012 10:18 am

I did an update yesterday evening. No error messages. sudo restart left me with what appeared to be an unresponsive brick. (At which point I remembered this thread and said a rude word). Power off and back on again and it booted with no problems.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5331
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: rpi-update

Fri Jun 08, 2012 10:38 am

@beardy
It would be helpful if you could run rpi-update again.
I need to know if the new start.elf is incompatible with your setup, or whether sometimes start.elf gets corrupted when updating.

The start.elf you end up with should look identical to:
https://github.com/Hexxeh/rpi-firmware/ ... _start.elf
(assuming you were running with the 192M memory split originally).

You can download it for comparison if you click "view raw".

Return to “Beginners”