RPi3B fails to boot with linux-aarch64 5.15.5-1

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

RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby graysky » Mon Jan 03, 2022 10:10 am

$this->bbcode_second_pass_quote('plerner', 'd')id not yet use your testing kernel.


I deleted your reply in the other thread and created this one for you. Why would you reply to a thread specifically for a different kernel to post something unrelated? Please start a new thread in the future.

$this->bbcode_second_pass_quote('plerner', 'J')ust for your information … the current update for mainline kernel linux-aarch64 5.15.5-1 made my rpi3b fail to boot. it’s not a rpi3b “plus” … power on resulted in a rainbow screen.

Copying over the /boot/* files from the latest install image with mainline kernel 5.15.0 made it boot again.


Was linux-aarch64 the only package you updated that caused breakage or did others get updated as well? The correct way to debug this is to downgrade suspect packages in a chroot to figured out which one(s) are to blame. If you suspect the kernel for example, downgrade it, and report back.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby vladimirpriort » Mon Jan 03, 2022 11:19 am

I think the packages was broken my archinux arm on rpi3b:

    raspberrypi-bootloader
    raspberrypi-bootloader-x

Y copy old versión and boot ok.
vladimirpriort
 
Posts: 1
Joined: Mon Jan 03, 2022 11:14 am

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby alphonce » Mon Jan 03, 2022 7:00 pm

I can confirm that the package "raspberrypi-bootloader" version 20220101-1 breaks the install.

From a fresh install, doing a system update with rasperrypi-bootloader held back, the system boots just fine.
alphonce
 
Posts: 1
Joined: Mon Jan 03, 2022 6:53 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby cbc02009 » Mon Jan 03, 2022 7:55 pm

Same issue here with raspberrypi-bootloader. blacklisted it in pacman for now.
cbc02009
 
Posts: 12
Joined: Wed May 05, 2021 12:58 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby keithspg » Mon Jan 03, 2022 10:15 pm

I was not able to make that work.
I have the version from December that worked:
-rw-r--r-- 1 root root 3508520 Dec 7 10:16 raspberrypi-bootloader-20211207-1-any.pkg.tar.xz
-rw-r--r-- 1 root root 1976528 Dec 7 10:16 raspberrypi-bootloader-x-20211207-1-any.pkg.tar.xz

I took an image that would not boot and copied the files in these archives to /boot and still get the same result. 7 flashes and a rainbow screen.

I made a fresh image and put both packages in the /etc/pacman.conf to 'ignore'

$this->bbcode_second_pass_code('', 'IgnorePkg = raspberrypi-bootloader raspberrypi-bootloader-x')

and was able to update to the current kernel and it boots. I was also able to update to the current linux-rpi and it booted there as well.

I do note that the latest aarch64 image has only this:
$this->bbcode_second_pass_code('', '[root@alarm alarm]# pacman -Q | grep raspberry
firmware-raspberrypi 20211222-1
raspberrypi-bootloader 20211116-1')
so maybe I have to grab an even older bootloader file?
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby keithspg » Mon Jan 03, 2022 11:27 pm

Something strange is going on. I have a 'build image' which is aarch64 that I updated today as well. It has all the packages I need to build with. If I query what is installed on this image, I get:
$this->bbcode_second_pass_code('', '[aarch64 alarm@build64 /boot]$ pacman -Q | grep bootloader
raspberrypi-bootloader 20220101-1
raspberrypi-bootloader-x 20220101-1
[aarch64 alarm@build64 /boot]$ uname -a
Linux build64 5.10.89-2-rpi-ARCH #1 SMP PREEMPT Mon Jan 3 13:06:33 UTC 2022 aarch64 GNU/Linux')

but the files in /boot are all dated 'Dec 7 2021' except the new kernel.
$this->bbcode_second_pass_code('', '-rwxr-xr-x 1 root root 52460 Dec 7 10:15 bootcode.bin
-rwxr-xr-x 1 root root 3144 Dec 7 10:15 fixup4cd.dat
-rwxr-xr-x 1 root root 5352 Dec 7 10:15 fixup4.dat
-rwxr-xr-x 1 root root 8354 Dec 7 10:15 fixup4db.dat
-rwxr-xr-x 1 root root 8354 Dec 7 10:15 fixup4x.dat
-rwxr-xr-x 1 root root 3144 Dec 7 10:15 fixup_cd.dat
-rwxr-xr-x 1 root root 7221 Dec 7 10:15 fixup.dat
-rwxr-xr-x 1 root root 10199 Dec 7 10:15 fixup_db.dat
-rwxr-xr-x 1 root root 10197 Dec 7 10:15 fixup_x.dat
-rwxr-xr-x 1 root root 21938184 Jan 3 07:05 kernel8.img
-rwxr-xr-x 1 root root 799164 Dec 7 10:15 start4cd.elf
-rwxr-xr-x 1 root root 3736744 Dec 7 10:15 start4db.elf
-rwxr-xr-x 1 root root 2239616 Dec 7 10:15 start4.elf
-rwxr-xr-x 1 root root 2991656 Dec 7 10:15 start4x.elf
-rwxr-xr-x 1 root root 799164 Dec 7 10:15 start_cd.elf
-rwxr-xr-x 1 root root 4808648 Dec 7 10:15 start_db.elf
-rwxr-xr-x 1 root root 2963872 Dec 7 10:15 start.elf
-rwxr-xr-x 1 root root 3715368 Dec 7 10:15 start_x.elf
')
My production image was updated with the new files today and it failed to reboot with the 7 flashes. I thought I had a bad SD card. I made an image from a backup and updated it and got the same result, 7 flashes and no boot. I buiolt an image frem scratch (ArchARM install docs) and update it and it failed the same way. I updated my build image, though, which is built the same, way but with more packages in order to build custom packages, and it updated and rebooted fine. I have been just pacman -Syu-ing periodically on it and never have had a problem.
Any idea what might be going on? According to pacman it is up to date. It is strange that only 1 aarch64 image will reboot after the update.

When I took the advice of @alphonce and kept pacman from updating those bootloader packages, I was able to build a new image and fully update it... I'm confused.
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby trustnt » Tue Jan 04, 2022 5:23 am

Is there a way to recover the image after updating? Because it's a hassle to reinstall and configure everything again.
trustnt
 
Posts: 12
Joined: Wed Sep 22, 2021 4:03 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby streckus » Tue Jan 04, 2022 2:01 pm

$this->bbcode_second_pass_quote('trustnt', 'I')s there a way to recover the image after updating? Because it's a hassle to reinstall and configure everything again.

I was able to downgrade the image for my Raspberry Pi via my PC's pacman by mounting the SD card:
$this->bbcode_second_pass_code('', '
mkdir rpi
sudo mount /dev/sdd2 rpi
sudo mount /dev/sdd1 rpi/boot
')

I then first made a backup of this mounted rpi folder using rsync -a in case I break something.

Afterwards, I changed into that directory and called the following pacman command to downgrade using a cached version of raspberrypi-bootloader:
$this->bbcode_second_pass_code('', '
cd rpi
sudo pacman -U var/cache/pacman/pkg/raspberrypi-bootloader-20211207-1-any.pkg.tar.xz -r . --config etc/pacman.conf --gpgdir etc/pacman.d/gnupg/ --arch aarch64 -v
')
The extra flags set the root directory, config file and gpg directory to the ones mounted from the Pi's SD card, specify the architecture to aarch64 in my case and -v enables verbose output (to see if the paths were set correctly).
Afterwards, the modification times in rpi/boot were back to Dec 12, 2021 and I was able to boot using the SD card in my Raspberry Pi again.

Pacman did output the following errors (translated from German) in the command above which are probably due to aarch64 binaries not being able to run on a x64 machine:
$this->bbcode_second_pass_code('', '
Could not call execv (Error in Program File format)
Error: Command could not be executed correctly.
')
As far as I can tell, the downgrade still seems to work though.
streckus
 
Posts: 1
Joined: Wed Jan 17, 2018 12:43 pm
Top

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby andiling » Tue Jan 04, 2022 2:52 pm

The 20220101-1 bootloader is based on the 5.10 kernel (see https://github.com/archlinuxarm/PKGBUIL ... bootloader) and thus it's no surprise the device does not boot if you install the package.
Since bootloader and firmware are built out of kernel sources the relevant packages need to be blacklisted for updates (IgnorePkg in pacman.conf) if you use a different kernel tree (in this case 5.15.y) and you need to build those packages by your own along with the kernel or use the packages provided with the other kernel if any.
andiling
 
Posts: 68
Joined: Sun Mar 06, 2016 8:34 pm

Re: RPi3B fails to boot with linux-aarch64 5.15.5-1

Postby keithspg » Tue Jan 04, 2022 3:10 pm

ignore my posts. I did not read closely enough. I was getting a failure to boot with 5.10.87 not 5.15.x. Repeatedly. Only was able to fix it by reverting by copying the 'raspberrypi-bootloader' package. When the 'raspberrypi-bootloader-x' package was installed it still would not boot. When these files were deleted, I could get it to boot then was able to pacman install the raspberrypi-bootloader package and it would reboot.
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 10 guests