[SOLVED] Updating the latest aarch64 archive breaks on RPI

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

Re: [RPI] Updating the latest aarch64 archive breaks the sys

Postby robg » Fri Jul 08, 2022 7:55 pm

$this->bbcode_second_pass_quote('Antiz', 'H')i @robg,

Sorry for the late answer... I've been busy those days :?

I'm not sure to know what you're referencing as "uboot config". Are those the "dtb" files ?

If so, here's the result :
/boot/dtbs/broadcom/bcm2837-rpi-3-b-plus.dtb --> differs between the faulty and the working installs
/boot/bcm2710-rpi-3-b-plus.dtb --> Are the same between the faulty and the working installs

If you didn't referencing those "dtb" files, what should I look for ?


No worries, we all have our obligations.

Personally, I run the raspberrypi kernel, and therefore don't have uboot installed. But I have downloaded the package and examined its contents. The .dtb files are binary devicetree files that describe the hardware to the kernel; I don't expect these to be the source of the problem, but I am nevertheless surprised (and suspicious) to read that the file contents differ across your devices, with the packages supposedly the same. I suggest you do the following:

After running `pacman -Syu` on your fresh install of ALARM, copy the latest uboot-raspberrypi package from a working device (found in /var/cache/pacman/pkg), and install it. Then, double-check (by comparing sha256sums) that all installed files (as listed by `pacman -Ql uboot-raspberrypi`) are the same on the two devices. Finally, reboot the device. This should either confirm or rule out uboot as the culprit. Also, could you kindly check if, on any of your working instances of ALARM, there are .pacsave or .pacnew files in the /boot directory?
robg
 
Posts: 194
Joined: Tue Jan 05, 2021 8:22 am

Re: [RPI] Updating the latest aarch64 archive breaks the sys

Postby Antiz » Sat Jul 16, 2022 10:20 am

Hi robg,

$this->bbcode_second_pass_quote('robg', ' ')I suggest you do the following:

After running `pacman -Syu` on your fresh install of ALARM, copy the latest uboot-raspberrypi package from a working device (found in /var/cache/pacman/pkg), and install it. Then, double-check (by comparing sha256sums) that all installed files (as listed by `pacman -Ql uboot-raspberrypi`) are the same on the two devices. Finally, reboot the device. This should either confirm or rule out uboot as the culprit.


Unfortunately, I couldn't find the uboot-raspberrypi package in pacman's cache on a working install.
I'm quite sure I cleaned the pacman's cache at some point for some reason on my working installs, and as the package hasn't been updated in about a year, I did not get any other version of this package in my pacman's cache since the day I cleaned it.
Anyway, I still compared the sha256sums of all the files involved in the uboot-raspberrypi package between the working and the fresh faulty install (with `for i in $(pacman -Ql uboot-raspberrypi | awk '{print $2}'); do sha256sum $i 2>/dev/null ; done`) and they're all the same.
I reinstalled the uboot-raspberrypi package by grabbing the .tar.xz file directly from the Arch Linux ARM repo on the faulty install just to make sure the sha256sums we're still the same after that, and they were. I know it doesn't make much sense to reinstall it as the sha256sums we're already good before but... I rebooted the raspberrypi after that and, strangely, it worked this time ! It didn't fall to the U-Boot screen like it did the numerous times before.

The only thing I did differently compared to the last times is that I reinstalled the uboot-raspberrypi package after updating the system and rebooting.
I'm gonna try to reproduce this today by rebooting with and without reinstalling the uboot-raspberrypi package before. I'll edit this post with the results as soon as I can.

$this->bbcode_second_pass_quote('', 'A')lso, could you kindly check if, on any of your working instances of ALARM, there are .pacsave or .pacnew files in the /boot directory?


There's no .pacsave or .pacnew files in the /boot on my working instances :
$ sudo updatedb && sudo locate .pacsave ; sudo locate .pacnew
/etc/sudoers.pacnew
/etc/pihole/dhcp.leases.pacnew
/etc/postfix/main.cf.pacnew
/etc/systemd/resolved.conf.pacnew

Edit :

I'm confused... I tried to reproduced the behavior I described earlier in this post but, for an unknown reason, everything is working well now.

I'm sure I did as I always did though :
Fresh install following the guide (https://archlinuxarm.org/platforms/armv ... berry-pi-3) with no extra steps or modifications whatsoever + updating the system (`pacman -Syy && pacman -Syu`).

I thought that I needed to reinstall uboot-raspberrypi after performing an update for some reason (according to what I wrote earlier in this post), but I didn't even had to do it this time. I could reboot after an update without any issue.

I've check the uboot-raspberrypi package and it didn't had an update recently (nor the latest aarch64 archive).
My guess it that there was something causing this issue inside one of the packages marked for update after a fresh install that has been patched since my previous test ? Otherwise, I have no clue why it didn't work then and why it works now...

I wish I could figure this out and help more but this issue seems it has resolved itself somehow.
I'm a bit confused to be honest :lol: Anyway, it seems to be working now at least :D
Antiz
 
Posts: 7
Joined: Sat Jun 04, 2022 1:00 pm
Location: Rouen, France
Top

Re: [RPI] Updating the latest aarch64 archive breaks the sys

Postby robg » Mon Jul 18, 2022 1:27 am

$this->bbcode_second_pass_quote('Antiz', 'I')'ve check the uboot-raspberrypi package and it didn't had an update recently (nor the latest aarch64 archive).
My guess it that there was something causing this issue inside one of the packages marked for update after a fresh install that has been patched since my previous test ? Otherwise, I have no clue why it didn't work then and why it works now...

I wish I could figure this out and help more but this issue seems it has resolved itself somehow.
I'm a bit confused to be honest :lol: Anyway, it seems to be working now at least :D


Hard to investigate without a backup of the faulty state. But glad to hear that things are working now!

Just one final thought: It is unlikely that any package other than uboot (or the kernel) would trigger an error this early in the boot chain. Also, as you wrote in an earlier post, you did have different files on the (non-)working installation (with the uboot package being the same). I would thus suggest to double-check if the SD card is working properly (some standard read/write tests will do.)
robg
 
Posts: 194
Joined: Tue Jan 05, 2021 8:22 am
Top

Re: [RPI] Updating the latest aarch64 archive breaks the sys

Postby Antiz » Sun Jul 24, 2022 7:26 pm

$this->bbcode_second_pass_quote('', '
')Just one final thought: It is unlikely that any package other than uboot (or the kernel) would trigger an error this early in the boot chain. Also, as you wrote in an earlier post, you did have different files on the (non-)working installation (with the uboot package being the same). I would thus suggest to double-check if the SD card is working properly (some standard read/write tests will do.)


You're right, unlikely it is indeed.
And yup, I did have one different file but it wasn't listed as a "uboot-raspberry" package's file by `pacman -Ql uboot-raspberrypi`.

I double-checked the SD card and it works good... Anyway, the problem is solved (somehow) !
I just re-did an arch ARM installation the exact same way (just to make sure) and everything went well once again.

I clearly don't know what happened... But hey ! It works again :mrgreen:

At that point, I'm just gonna mark this topic as "solved". Sadly we won't get clear explanations, but it works now.
Also, as it looks like I'm the only one that has been able to (re)produce this issue and report it (since it looks like there's no other people complaining about that problem) I assume it was probably just a weird issue on my side (potentially the SD card, as you mentioned).

Thanks a lot for taking the time to investigate with me anyway @robg !
Antiz
 
Posts: 7
Joined: Sat Jun 04, 2022 1:00 pm
Location: Rouen, France
Top

Previous

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 27 guests