[Solved] RPi 2 won't boot after spring cleanup

This forum is for discussion about general software issues.

[Solved] RPi 2 won't boot after spring cleanup

Postby WildOrangutan » Tue Mar 26, 2019 9:00 pm

Hello!

I've been doing some cleanup of supposedly unused packages and it seems like I've removed a bit too much. This is exact output of what I executed:

$this->bbcode_second_pass_code('', '[root@rpi ~]# pacman -Rs $(pacman -Qtdq)
checking dependencies...

Packages (12) jsoncpp-1.8.4-2 libuv-1.27.0-1 raspberrypi-bootloader-20190324-1 rhash-1.3.8-1
shared-mime-info-1.12-1 cmake-3.14.0-1 idnkit-1.0-4 libidn-1.35-1
libtxc_dxtn-1.0.1-6 python-werkzeug-0.14.1-3 raspberrypi-bootloader-x-20190324-1
raspberrypi-firmware-examples-20161209-1
Do you want to remove these packages? [Y/n] y')

Any suggestions how to recover from this?

Thanks in advance!
Last edited by WildOrangutan on Sat Mar 30, 2019 7:04 pm, edited 1 time in total.
WildOrangutan
 
Posts: 3
Joined: Tue Mar 26, 2019 8:45 pm

Re: RPi 2 won't boot after spring cleanup

Postby TheSaint » Wed Mar 27, 2019 3:37 am

Just use the list of the removed packages and reinstall them.
Their names are without the trailing numbers.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: RPi 2 won't boot after spring cleanup

Postby DanSman » Thu Mar 28, 2019 9:10 pm

Well, it's actually written and very clear that you'll need those packages again:

$this->bbcode_second_pass_code('', 'raspberrypi-bootloader-20190324-1
raspberrypi-bootloader-x-20190324-1
raspberrypi-firmware-examples-20161209-1')

It's good to have a backup solution all the time with Arch. raspiBackup (https://github.com/framps/raspiBackup) is a very simple solution.
You might be able to chroot into your sd card.
DanSman
 
Posts: 9
Joined: Wed Jan 30, 2019 7:09 pm

Re: RPi 2 won't boot after spring cleanup

Postby WildOrangutan » Sat Mar 30, 2019 12:48 pm

Thanks for the replies, but obviously I know that I need to install them back. What I don't know is how :) Maybe I should be a bit more specific in my post.

From another x86_64 system, I've managed to install missing packages, but my arm still won't boot. What I did was:

$this->bbcode_second_pass_code('', 'pacman -S qemu qemu-user-static
mount /dev/sdc1 /mnt/rpi
cp /usr/bin/qemu-arm-static /mnt/rpi/usr/bin
arch-chroot /mnt/rpi qemu-arm-static /bin/bash
pacman -S all-removed-packages (except raspberrypi-firmware-examples and libtxc_dxtn)')

As mentioned, I couldn't find "raspberrypi-firmware-examples" from repos and "libtxc_dxtn" was incompatible for ARM. I guess those two should not be required?

Any more ideas what I should do/check?
WildOrangutan
 
Posts: 3
Joined: Tue Mar 26, 2019 8:45 pm

Re: RPi 2 won't boot after spring cleanup

Postby WildOrangutan » Sat Mar 30, 2019 7:03 pm

Ok, got it working :) The thing was I had my /boot partition on SD card, other stuff was on HDD. When I chroot-ed into my HDD I forgot to also mount my boot. After properly mounting boot, I've reinstalled bootloader packages again and it started working.
WildOrangutan
 
Posts: 3
Joined: Tue Mar 26, 2019 8:45 pm

Re: [Solved] RPi 2 won't boot after spring cleanup

Postby DanSman » Sun Mar 31, 2019 8:44 pm

Thanks for the solution!
DanSman
 
Posts: 9
Joined: Wed Jan 30, 2019 7:09 pm


Return to General

Who is online

Users browsing this forum: No registered users and 4 guests