Page 1 of 1

Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 11:31 am
by pieterjandc
Hi,

I have a webserver with Raspbian Stretch running on my Raspberry Pi 3.
Yesterday I ran sudo rpi-update. At a certain point my SSH console disconnected and ever since my Raspberry Pi won't boot anymore.

How can I fix this? I need some of the files on my disk.

I already tried flashing a new image of the raspbian_latest on another SD-card and copying over the files in the boot partition, without success...

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 11:34 am
by fruitoftheloom
pieterjandc wrote:
Sun Jul 21, 2019 11:31 am
Hi,

I have a webserver with Raspbian Stretch running on my Raspberry Pi 3.
Yesterday I ran sudo rpi-update. At a certain point my SSH console disconnected and ever since my Raspberry Pi won't boot anymore.

How can I fix this?

I already tried flashing a new image of the raspbian_latest on another SD-card and copying over the files in the boot partition, without success...

Why did you run rpi-update which installs testing kernel / firmware ?

https://www.raspberrypi.org/documentati ... pdating.md

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:16 pm
by pieterjandc
Well to upgrade my firmware to the latest version?
Or is that a strange thing to do on a test environment...
Can you now please answer my question instead of asking other questions and referring to the documentation?

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:32 pm
by epoch1970
Well if you're testing you should not be surprised if things break.
I don't believe fruitoftheloom is obligated to answer your questions...
If you read the link provided there is a paragraph about rolling back to a working configuration.

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:33 pm
by pieterjandc
If you read the link provided there is a paragraph about rolling back to a working configuration.
Yes I read that. Too bad you can't execute bash commands when the system doesn't boot huh?

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:37 pm
by epoch1970
Yeah. That smells bad.
/boot has the firmware and kernel, rpi-update messed with that and you should bet able to extract ok files from a release
/lib/*, esp. /lib/modules on the second partition gets updated with the kernel. Try to rollback this directory to the released version.

I think that should be it. Good luck...

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:44 pm
by pieterjandc
Well yeah, I know It's Raspbian Stretch. I'll try flashing this version and copying this over.
We'll see if this works... Thanks for the useful answer.

Luckily you guys made the kernel/boot partition available for windows explorer :)

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 12:48 pm
by epoch1970
pieterjandc wrote:
Sun Jul 21, 2019 12:44 pm
Luckily you guys made the kernel/boot partition available for windows explorer :)
Hum. Debatable advantage if you ask me...
Warning: you must replace /lib on rootfs, the ext4 partition. Use a linux machine or a VM.

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 1:23 pm
by wildfire
pieterjandc wrote:
Sun Jul 21, 2019 11:31 am
How can I fix this? I need some of the files on my disk.
So a required setup then?
pieterjandc wrote:
Sun Jul 21, 2019 12:16 pm
Well to upgrade my firmware to the latest version?
Or is that a strange thing to do on a test environment...
Can you now please answer my question instead of asking other questions and referring to the documentation?
What test enviroment?
epoch1970 wrote:
Sun Jul 21, 2019 12:32 pm
Well if you're testing you should not be surprised if things break.
I don't believe fruitoftheloom is obligated to answer your questions...
If you read the link provided there is a paragraph about rolling back to a working configuration.
Exactly.

For others reading rpi-update is at best in the beta stage, in some cases I would classify it as at the alpha stage. do not use it unless you really need the fixes and never on a live system.

Re: Pi won't boot after rpi-update

Posted: Sun Jul 21, 2019 10:46 pm
by Imperf3kt
pieterjandc wrote:
Sun Jul 21, 2019 12:16 pm
Can you now please answer my question instead of asking other questions and referring to the documentation?
It is sometimes necessary to ask questions in order to understand the situation if such infirnation has been neglected by the Opening Poster.

Nobody here can mind read, so at best must either make an educated guess, or ask the obvious.

My science teacher used to ask us questions all the time when we answered unsatisfactorily. For example, if he asked how many electrons are in a copper atom, and received a reply of 29, he'd ask "29 what?"