Please help me recover my RasPi 3B+ install

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Please help me recover my RasPi 3B+ install

Postby motoko » Wed Apr 17, 2024 2:17 am

Hello all,

Over a year ago, I did an update on my Raspi running Arch for ARM and it failed to boot properly. I think one of the firmware updates from AUR was the cause of the disaster.

After rebooting, I could not access the keyboard and I could not SSH into it. It was basically a brick. It basically boots to login prompt but there's nothing you can do: no keyboard, no ssh, no way to log back in. I unplugged it and forgot about it because I got a RasPi 4 soon after.

I would like to recover my install. I can mount the microSD card just fine on my Arch x86-64 but I'm not sure how to proceed.
Is there a way to recover this install somehow? I'd really like to avoid reformatting and reinstalling process.

Thank you so much!
motoko
 
Posts: 8
Joined: Tue Jan 30, 2018 7:12 am

Re: Please help me recover my RasPi 3B+ install

Postby InFerNo » Sun Jun 02, 2024 8:23 pm

If you are able to attach the disk (sd card?) to a computer with Arch Linux, then you can run pacman to downgrade packages from there.

You need to override the defaults from your pacman.conf by passing the variables as parameters to pacman.

For example, if you [i][b]know[/b][/i] a package caused the issue, you can downgrade it by running this command, after editing the /mountpointoftheSDcard/etc/pacman.conf file to match a few altered paths, so you don't have to pass them everytime (change them back afterwards):

[code]sudo pacman -U /mountpointoftheSDcard/var/cache/pacman/pkg/systemd-253.7-1-armv7h.pkg.tar.xz --arch armv7h --verbose --config /mountpointoftheSDcard/etc/pacman.conf[/code]

If you have downloaded the package to your Downloads folder (also different architecture example):

[code]sudo pacman -U /home/user/Downloads/raptor-2.0.15-19-aarch64.pkg.tar.xz --root /mountpointoftheSDcard --arch aarch64 --verbose --config /mountpointoftheSDcard/etc/pacman.conf[/code]

You can pass multiple packages as well, or specify to use the pacman.conf file of the host machine (look at its contents first to determine how this would affect the target system).

[code]sudo pacman -U /home/user/Downloads/raptor-2.0.15-19-aarch64.pkg.tar.xz /home/user/Downloads/openssl-1.1.1.o-1-aarch64.pkg.tar.xz /home/user/Downloads/icu-71.1-1-aarch64.pkg.tar.xz "/home/user/Downloads/freerdp-2 2.7.0-1-aarch64.pkg.tar.xz" /home/user/Downloads/harfbuzz-icu-4.3.0-1-aarch64.pkg.tar.xz /home/user/Downloads/gspell-1.10.0-2-aarch64.pkg.tar.xz --root /mountpointoftheSDcard --arch aarch64 --verbose --config /home/user/pacman.conf[/code]

*note, example packages used, use the correct ones instead!
InFerNo
 
Posts: 18
Joined: Sat Jan 03, 2015 12:35 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 2 guests