New Setup with Pi4 8GB - Will not seem to boot

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

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby peter75 » Sat Nov 12, 2022 4:42 pm

I did flash 32bit version (ArchLinuxARM-rpi-armv7-latest.tar.gz) and that one is working OK.

so problematic is ArchLinuxARM-rpi-aarch64-latest.tar.gz
see my previous comment
peter75
 
Posts: 9
Joined: Sat Nov 12, 2022 7:57 am

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby doragasu1 » Fri Nov 18, 2022 5:18 pm

I have the same problem :(

I have been running alarm on RPi boards for years. Today I did pacman -Syu and my setup broke. The board booted but eth0 was not detected anymore. I tried downgrading first the kernel, then systemd along with openssl, sudo and another library I do not remember, and then the system broke completely (kernel panic on boot because of a libcrypto mismatch).

So I decided to reinstall and found this problem, my Pi is stuck in the U-Boot bootloop shown in this thread :(.
doragasu1
 
Posts: 100
Joined: Sun Jun 03, 2012 3:52 pm

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby peter75 » Fri Nov 18, 2022 5:32 pm

I did also start another thread
viewtopic.php?f=65&t=16243
peter75
 
Posts: 9
Joined: Sat Nov 12, 2022 7:57 am

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby doragasu1 » Fri Nov 18, 2022 5:54 pm

Hum, retried the installation and now it's working. I'm a bit puzzled right now :?:

Maybe my problem was just an sdcard issue? Although I'm using the same card, on the first try after copying the root filesystem, it automatically remounted itself read only (but no error was reported, so I remounted it read/write and continued the installation). On the second attempt no weird problem occurred.
doragasu1
 
Posts: 100
Joined: Sun Jun 03, 2012 3:52 pm

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby pezz » Sat Nov 19, 2022 9:37 am

Just thought I'd add some notes about issues I had today after the updates.

Not sure if it's the bootloader or the new kernel that has changed this, but whatever the case, my eth0 is now end0 so it screwed my systemd-networkd config. Took me a while to work this out as I run a headless Pi4 and it's not easy for me to debug early boot stuff.

I decided to get the stock image booting and updated on another sdcard. The ArchLinuxARM-rpi-aarch64-latest.tar.gz image with U-Boot and the different kernel still do not work on my Pi4. I had to chroot using qemu on my main x86 Linux box to get linux-rpi etc installed (there's another thread about this, I might make a new post as it's easier to get an aarch64 chroot going now in Arch x86_64).

Once I got the stock image booting it allowed me to spot the interface name difference and fix my systemd config which lead to my main install being able to boot again (well, I guess it was booting ok just not reachable on the network).
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby graysky » Sat Nov 19, 2022 10:02 am

Yeah, the eth0 --> end0 was unexpected and annoying. See: viewtopic.php?f=15&t=16245
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby peter75 » Sat Nov 19, 2022 10:39 pm

@pezz, please can you write steps how to chroot on arch x86_64 to sd card with alarm and install rpi kernel, initram and boot image?
thanks
peter75
 
Posts: 9
Joined: Sat Nov 12, 2022 7:57 am

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby pezz » Sun Nov 20, 2022 1:35 am

Sure, this was originally shared with me by @tamjan (original post) but I've found there's no need for manually setting up the binfmt rules like in his original script.

Have these packages installed:
- arch-install-scripts (for arch-chroot)
- qemu-user-static (for qemu-aarch64-static)
- qemu-user-static-binfmt (bin format rules)

Then mount your card's root and boot like normal, e.g.
$this->bbcode_second_pass_code('', 'mount /dev/xxx2 /mnt/pi4root
mount /dev/xxx1 /mnt/pi4root/boot
')
Use arch-chroot and install whatever you need (if you're using a new image you'll have to init the pacman keyring as in the install steps etc):
$this->bbcode_second_pass_code('', 'arch-chroot /mnt/pi4root')
I usually run sync after I've logged out of the chroot.

Edit: Removed the part where the static qemu binary is copied into the root of the pi, it's not needed.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby graysky » Sun Nov 20, 2022 9:53 am

Why not just install to another uSD card (same architecture aarch64 or armv7h) and chroot from that? No need for qemu.
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: New Setup with Pi4 8GB - Will not seem to boot

Postby pezz » Sun Nov 20, 2022 10:09 am

The default aarch64 image from the install instructions has never booted on my Pi4 so I've needed a way to chroot and get linux-rpi on the card.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Previous

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests