portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Pi won't boot after firmware update

Sun Jun 30, 2013 6:45 am

When my OS is on an external drive, my Pi won't boot after any firmware update via rpi-update or apt-get upgrade. But only if I change /etc/fstab like tutorials show. My method:

write raspbian to SD and USB drive
edit cmdline.txt to point to sda2
edit fstab to point to sda2

At this point everything works and I can reboot fine. But if I apt-get upgrade and it pulls in new firmware it takes a much longer time than normal and my Pi won't boot after. Just the red power light comes on and the green OK light flashes briefly. And the SD and USB drive seem to be completely unharmed. boot partition isn't corrupted and contains all necessary files. If I omit the last step and leave fstab's defaults the update will go fine. My fstab:

Code: Select all

proc            /proc           proc    defaults           	0       0
/dev/mmcblk0p1  /boot           vfat    defaults              	0       2
/dev/sda2    	/   		ext4    defaults,noatime,async	0       1
#/dev/mmcblk0p2  /               ext4    defaults,noatime   	0       1

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

Re: Pi won't boot after firmware update

Sun Jun 30, 2013 8:27 am

I had the same problem yesterday (not tried it today). Although I don't have an external drive, I do have a custom image, so I use

Code: Select all

sudo SKIP_KERNEL=1 rpi-update
and I get the same result as you - no longer able to boot the pi.
Hope it's just a temporary blip...
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
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Pi won't boot after firmware update

Sun Jun 30, 2013 3:17 pm

When this happens to me it usually is the /boot is missing files or corrupt. If you have a second card copy its boot files.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

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

Re: Pi won't boot after firmware update

Sun Jun 30, 2013 3:26 pm

Well maybe, but it's done it twice in a row for me. You shouldn't have to copy files over, so I will wait until it's fixed or someone else reports either it worked for them......or not.

Cheers,
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

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: Pi won't boot after firmware update

Sun Jun 30, 2013 6:02 pm

Lob0426 wrote:...usually is the /boot is missing files or corrupt. If you have a second card copy its boot files.
Tried that, same thing happens. Seems the issue has something to do with the ext4. Maybe kernel files aren't copied correctly somehow?

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

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 7:56 am

It would be useful if someone (anyone) ran rpi-update and found it also broke boot-up. Obviously make a backup beforehand..........
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
rpdom
Posts: 14742
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 8:26 am

I ran an apt-get update/apt-get dist-upgrade on my Pi with root filesystem on USB disk yesterday and it is still booting ok.

Perhaps there has been a kernel change and one of the USB drivers has been made into a module instead of built in to the kernel?

If that is the case, perhaps if people who have been affected could run a lsusb command to see what USB<->disk adaptor they have?

Mine reports as

Code: Select all

Bus 001 Device 004: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge

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

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 8:51 am

Just to be clear, apt-get update/upgrade isn't breaking my system - rpi-update is.
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
rpdom
Posts: 14742
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:13 am

texy wrote:Just to be clear, apt-get update/upgrade isn't breaking my system - rpi-update is.
Texy
Ok, I will backup my system and run rpi-update and see what happens. I'll report back when I've done it.

User avatar
rpdom
Posts: 14742
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:49 am

rpi-update done. No problems.

As fstab has been mentioned, my line for the root filesystem is

Code: Select all

LABEL=RASPI_ROOT     /               ext4   defaults        0       2
Although this gives an error during boot, as labels don't seem to be supported at that stage on the Pi. Everything seems to be running ok.

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

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:52 am

Thanks for that. I will give it another go later.
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

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

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 6:47 pm

It all seems to be working today :D
cheers,
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

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

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:34 pm

texy wrote:It would be useful if someone (anyone) ran rpi-update and found it also broke boot-up. Obviously make a backup beforehand..........
Texy
Hi

It's happened to me everytime I have used rpi-update so I don't bother anymore and just wait for the fixes to get applied to the main repository.

Cheers

Paul
Procrastination - The Thief of Time.

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:35 pm

Strange, it happens to me even with main repository firmware updates.

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: Pi won't boot after firmware update

Mon Jul 01, 2013 9:37 pm

texy wrote:It all seems to be working today :D
There have been no updates to the firmware since my original post, so I don't know why it would start working all of a sudden. I'll check mine today.

Return to “Troubleshooting”