by txomon » Thu Jan 04, 2024 11:51 pm
For anyone struggling to boot a rpi5, the steps I followed where the same as https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4 however using ArchLinuxARM-rpi-aarch64-latest.tar.gz (from http://ca.us.mirror.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz).
However, instead of step 6, I downloaded manually https://archlinuxarm.org/packages/aarch64/linux-rpi (Download link on the right), used tar xf on the file inside the root/ directory after removing the existing boot/ files, and removed old kernel troublesome things:
[code]
wget http://mirror.archlinuxarm.org/aarch64/core/linux-rpi-6.6.9-2-aarch64.pkg.tar.xz
cd root/
rm -rf boot/*
tar xf ../linux-rpi-6.6.9-2-aarch64.pkg.tar.xz
rm mnt/usr/share/libalpm/hooks/60-linux-aarch64.hook
rm mnt/etc/mkinitcpio.d/linux-aarch64.preset
[/code]
Just in case, if you get errors while uncompressing the linux-rpi package, you can uncompress it somewhere else and completely replace the root/boot directory.
Then, you can already boot arch in the rpi5, however your system will be mildly broken, because we have manually installed a package without the official means (pacman).
Now the next step is to fix the situation with pacman.
There are probably better ways, however the way I did it once logged into the system was:
[code]
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu --overwrite '*' linux-rpi
pacman -Syu --noconfirm # This command will complain about missing files
[/code]
Just in case, if by when you try this, you get a `WARNING: errors were encountered during the build. The image may not be complete.` error from the mkinitcpio -p linux-rpi, go to `/usr/lib/initcpio/install/kms` and comment the line with add_checked_modules_from_symbol