[How-To] Install Arch on Raspberry Pi 5b

Guides written by the community, for the community, and only guides!

Re: [How-To] Install Arch on Raspberry Pi 5b

Postby alllexx88 » Sat May 04, 2024 10:21 am

Hello and thank you for the guide!

I made the initial setup as per make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://kiljan.org/2023/11/24/arch-linux-arm-on-a-raspberry-pi-5-model-b', '', ' class="postlink"'), which has already been mentioned here. However, I also used an aarch64 nvidia jetson running Ubuntu to arch-chroot to the SD card ("arch-chroot" script is available from arch-install-scripts Ubuntu package) to do follow-up configuration, install a full DE etc.. Later I also discovered it's easy to chroot to the SD card from an amd64 Arch machine too, using qemu-user-static emulation, so the follow-up config can also be done on an amd64 Arch. It is also possible to modify the instructions from this topic to bootstrap from amd64. Notice I haven't tried to boot it, only verified that it works to create an image.

Use original tutorial steps with the following modifications:

0. First install qemu-user-static and qemu-user-static-binfmt packages with [code]pacman -S qemu-user-static qemu-user-static-binfmt[/code]

1. At step 4a we will need a custom pacman config and modify the pacstrap command: [code]pacstrap -C /etc/pacman-aarch64.conf -G -M -K root base archlinuxarm-keyring f2fs-tools dosfstools iwd openssh[/code] with /etc/pacman-aarch64.conf being: make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://pastebin.com/8RyiC0ay', '', ' class="postlink"')

2. Before step 4d we need to copy qemu-aarch64-static to the chroot with [code]cp -af /usr/bin/qemu-aarch64-static root/usr/bin/qemu-aarch64-static[/code]

3. After 4d install the linux-* packages in the chroot (I omitted them from the pacstrap command, it gave strange errors for me): [code]pacman -Suy linux-rpi linux-firmware raspberrypi-bootloader firmware-raspberrypi[/code]
alllexx88
 
Posts: 12
Joined: Sat May 04, 2024 9:16 am

Re: [How-To] Install Arch on Raspberry Pi 5b

Postby hmeyer » Sun May 05, 2024 8:51 pm

graysky » Should work fine from 3B --> 5B so long as you are using linux-rpi
...works !
took the micro-SD-card from my old RPi3/arm64/linux-rpi installation, put it into the new RPi5 - and launched OK !
Only, as already was mentioned several times, had to add this:
# /etc/X11/xorg.conf.d/99-vc4.conf
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
hmeyer
 
Posts: 25
Joined: Fri Jul 31, 2015 8:17 am

Re: [How-To] Install Arch on Raspberry Pi 5b

Postby alllexx88 » Tue May 07, 2024 8:30 am

[quote="hmeyer"]as already was mentioned several times, had to add this:
# /etc/X11/xorg.conf.d/99-vc4.conf
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection[/quote]

Lol, and I missed this one. Wiki make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://archlinuxarm.org/wiki/Raspberry_Pi', '', ' class="postlink"') says to install xf86-video-fbdev or xf86-video-fbturbo-git. The former doesn't work, complains some undefined symbol, the latter is missing from the repos, but I compiled it manually, and it works!
alllexx88
 
Posts: 12
Joined: Sat May 04, 2024 9:16 am

Previous

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 2 guests