Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Bricked my RPi running rpi-update

Sun Sep 09, 2012 1:37 pm

First, let me clarify that I don't know for a fact that rpi-update bricked my RPi. It could just be coincidence that running it last night just happened at the time that the device decided it no longer wanted to work.

I had my RPi working for the past week. Last night, I ran the following commands.

#sudo apt-get update
#sudo apt-get upgrade
#sudo rpi-update

Everything worked great before the reboot. When I rebooted the device, I only have a red LED. There is no HDMI, ethernet or USB output. Power supply test fine. I even tried an alternate one.

I have re-installed wheezy on the SD card to the base install in an attempt to bring it back to life, but nothing has worked. Does the rpi-update flash on-board chips, or only the files on the SD card? I am at a loss to figure out how to get it back. I am assuming at this point that if rpi-update flashes a chip on-board, it must have flashed improperly. Not saying whether that is hardware or software.

Before someone harasses me for it, yes I have searched the forums. I see where some have bricked their's, but the result is that they send them back for replacement. I would prefer to figure out how to get this working.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 1:52 pm

rpi-update only updates files on the SD card.
Does the PWR light flash a number of times ?
Do you have a linux computer that can read the SD card ?
Try zeroing out the SD card and then re-writing the image ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 2:57 pm

Thanks. I thought that might be the case because there is no flashable component on the board that I am aware of.

That RPi LED comes on steady red and stays steady. No other LEDs flash. The SD is readable on another linux distro (BackTrack 5r3). I have completely wiped the card and re imaged using dd following the steps at http://elinux.org/RPi_Easy_SD_Card_Setup.

I have grabbed an alternate SD card and formatted it as well. There is no change in the status of the device. It is always a solid red LED. It looks like there might be just a hint of green coming out of the end LED next to the red, but with the brightness, it is hard to tell. I also verified that the board is not shorted out. It is sitting on a plastic table. Even suspended from the ethernet cable yields no positive results.

Are there any reset jumpers on the board that might be crossed to reset something?

Just finding it hard to determine why it would have suddenly died when it has been running well for a week - unless it was some heat issue, but it was 70 degrees Fahrenheit here yesterday, so I doubt that is it.

Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:12 pm

Woah! Just left it unplugged for about 15 minutes with all devices removed. Reformatted the original SD card again. Now everything seems to work again.

I would love to know what I did to it though. But I guess we can't have everything.

Time to go back through aptitude and get everything current and try rpi-update again.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:23 pm

MAGIC !
Also, if you want to update the whole system, the following command does it
apt-get -u dist-upgrade
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:29 pm

Yep. I knew about that one. Good pointer for anyone reading this forum though. I just often forget to use it. ;-)

Fortunately I documented every commend the last time I built this, so I should be able to get back where I was. I had stripped out the xorg features successfully so that I could shrink the image size and maximize memory for apps. My initial hope was a kismet box so I could keep an eye on devices connecting to my network; however, the Belkin N300 (while it does work with the RPi) is not a supported NIC for Kismet. Darn! But that is another thread. I have digressed too much.

Thanks for your help, patience and support. Time to spend another day in a command shell and not getting much accomplished. :D

User avatar
Burngate
Posts: 6333
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:31 pm

So it did work, then it didn't, now it does.

It could have been a whole row of things, but my guess wuld be one of the following from most to least likely

Dirty SD card connections (you've had it in and out several times)
Heat on F3 (though maybe this should be further down the list)
A lazy crystal oscillator.
Poor power connection.
A confluence of ley lines

Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:44 pm

Uhho. Not so fast. Bricked again after doing:

Code: Select all

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install git-core
sudo rpi-update
sudo reboot
It is in the exact same state. No video or other functioning components on the RPi. The only thing I did other than that listed above is the default configuration steps to prevent X from starting and setting up the timezone.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 3:55 pm

There should be a backup of the boot directory on the ext4 partition.
Restore that and see how you go ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Antimidas
Posts: 10
Joined: Sat Sep 01, 2012 1:59 am

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 4:26 pm

Sorry. Did not get to that yet. Re-imaged the SD, went through the initial config and only did the following this time.

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get dist-upgrade
sudo reboot
Everything worked great. I can reboot the device without any issues at all.

When I run the instructions at https://github.com/Hexxeh/rpi-update to get and perform rpi-update, it turns into a brick on the very first reboot.

I am not sure of the steps to restore the backup as you suggested. Where would I locate those?

This time I left out rpi-update and everything seems to be working fine. I am back to my initial thought that there must be something wrong with the current iteration of rpi-update. Though it appears to work properly, the device will never come back after a reboot once it is run.

Shall I duplicate the scenario to support my case?

User avatar
NickT
Posts: 276
Joined: Mon May 21, 2012 10:43 am
Location: UK

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 4:48 pm

I've just updated my Rapbian wheezy using rpi-update to:

Code: Select all

Linux thisismypi 3.2.27+ #114 PREEMPT Tue Sep 4 00:15:33 BST 2012 armv6l
It doesn't give me any problems doing a hard or soft reboot. I don't think there's anything wrong with rpi-update or what it installs at this particular time.

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 8:31 pm

Antimidas wrote:Uhho. Not so fast. Bricked again after doing:

Code: Select all

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install git-core
sudo rpi-update
sudo reboot
It is in the exact same state. No video or other functioning components on the RPi. The only thing I did other than that listed above is the default configuration steps to prevent X from starting and setting up the timezone.
Hi

Try running chkdsk with the /f option on your computer that you use to write the image. I have found that Rpi-update corrupts the boot partition on my card leading to the same symptoms you have.

Cheers

Paul
Procrastination - The Thief of Time.

kyelo
Posts: 64
Joined: Sun Oct 23, 2011 6:31 pm

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 8:38 pm

I have had to re-image the 2012-08-16-wheezy-raspbian.img several times, and have had the bricking experience on 2 or 3 occasions. I am not sure why it occurred (I just figured that I had done something wrong).

Read this: http://blog.pixelami.com/2012/06/raspbe ... n-squeeze/ and see if it helps. I know it says it is for Debian Squeeze, but I think it has helped me on Raspbian as well.

Do as you did before, except do not reboot immediately. Enter "sudo ldconfig" at the command line, then enter again "sudo rpi-update" at the command line. This time through rpi-update it discovers that in fact things are up to date.

NOW try a "sudo reboot". It worked for me.

Good luck.

technician4
Posts: 2
Joined: Sun Sep 09, 2012 8:27 pm

Re: Bricked my RPi running rpi-update

Sun Sep 09, 2012 8:40 pm

not sure if this will help, but i arrived here having visited this discussion first:

https://github.com/Hexxeh/rpi-update/issues/22

Wendo
Posts: 142
Joined: Sun Jun 10, 2012 8:27 pm

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 5:59 am

Can I ask why you're using rpi-update?

Raspbian will update the firmware and kernel happily using apt. If you want to be bleeding edge you can add the untested branch to your apt sources and then you'll be using the latest kernel and firmware just like you would with rpi-update

obcd
Posts: 917
Joined: Sun Jul 29, 2012 9:06 pm

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 9:53 am

Can I ask why you're using rpi-update?
Can I ask why not?
Most people don't know where to find and change the apt sources.
How can we figure out what kernel we should expect from a normal apt-get update & upgrade, from a bleeding edge one and from the rpi-update one? For debian experts, it's probably all very logical, but for linux newbies, it's very confusing. A dog wouldn't find it's puppies back on github.

Ettore_M
Posts: 26
Joined: Sun Apr 08, 2012 10:48 am

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:16 am

kyelo wrote:I have had to re-image the 2012-08-16-wheezy-raspbian.img several times, and have had the bricking experience on 2 or 3 occasions. I am not sure why it occurred (I just figured that I had done something wrong).

Read this: http://blog.pixelami.com/2012/06/raspbe ... n-squeeze/ and see if it helps. I know it says it is for Debian Squeeze, but I think it has helped me on Raspbian as well.

Do as you did before, except do not reboot immediately. Enter "sudo ldconfig" at the command line, then enter again "sudo rpi-update" at the command line. This time through rpi-update it discovers that in fact things are up to date.

NOW try a "sudo reboot". It worked for me.

Good luck.
Newbie here! :|
I just tried to update my Pi using the method from pixelami, but it didn't work. After reboot, Pi doesn't boot. :( The red "power" led stays on and the green "OK" led blinks slowly..
Is there a solution to get my Pi working again without burning a new image on the SD card? I don't want to lose all the installed programs.

Thanks.

Hector

User avatar
RaTTuS
Posts: 10565
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:20 am

just replaceing the files in the dos partition should be good enough
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

Ettore_M
Posts: 26
Joined: Sun Apr 08, 2012 10:48 am

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:26 am

RaTTuS wrote:just replaceing the files in the dos partition should be good enough
Thanks for the answer! That was quick..
But how do I do that? Sorry if it sounds silly...

pholy
Posts: 46
Joined: Sun Jun 24, 2012 11:29 pm

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:31 am

I think the problem is caused because the rpi-update script doesn't include a sync command at its end. rpi-update does a lot of writing to the flash card, and it uses standard linux file i/o. This means the writes are buffered and finished whenever the kernel gets around to it, or when a sync command forces the buffers to be written immediately.

I always issue a sync before the reboot command, and I haven't had any problems (unless I forget).

User avatar
RaTTuS
Posts: 10565
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:35 am

Ettore_M wrote:
RaTTuS wrote:just replaceing the files in the dos partition should be good enough
Thanks for the answer! That was quick..
But how do I do that? Sorry if it sounds silly...
have you got linux on another machine you can check the dos partition on ?
or
stuff it in a windows machine and copy the files off the dos partition
then copy armstart128.elf to start.elg
then try again in the RPi
or in the same windows machine
format the drive [just format not re-partition]
and copy them back.
how many green flashes do you get
try another sd card from scratch
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
Licaon_Kter
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:36 am

go https://github.com/Hexxeh/rpi-firmware -> download -> put sdcard in main PC-> put arm128_start.elf, arm192_start.elf, arm224_start.elf, arm240_start.elf, bootcode.bin, kernel.img, kernel_cutdown.img, kernel_emergency.img, loader.bin to the first partition of the card ( the small one ), overwrite all, and also copy arm192_start.elf to start.elf, unmount/eject card in system, then get it out of the card reader, retest on the Pi
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)

obcd
Posts: 917
Joined: Sun Jul 29, 2012 9:06 pm

Re: Bricked my RPi running rpi-update

Mon Sep 10, 2012 10:40 am

the dos partition is the /boot location on the raspberry. It's the only visible partition when you connect the sd card to a windows machine. It contains the firmware and the kernel files. So you could place a fresh image on another sd card. If you insert that card in windows, the partition and all it's files is what you need to transfer to the other sd card. The kernel modules in the lib folder aren't erased during an update, so those should already be on the no longer working sd card.

Ettore_M
Posts: 26
Joined: Sun Apr 08, 2012 10:48 am

Re: Bricked my RPi running rpi-update

Tue Sep 11, 2012 3:38 pm

I loaded the latest image on the SD card and tried again for an rpi-update. This time it worked. I guess it was because I ran "sudo apt-get update" and "sudo apt-get upgrade" before the rest of the commands (as seen on pixelami). Now I'll know how to do it properly.
To everyone who posted about this subject, you've been a great help! Thank you!

Hector

Return to “Troubleshooting”