[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 graysky » Sun Mar 03, 2024 8:45 am

Should work fine from 3B --> 5B so long as you are using linux-rpi. When on 5B consider linux-rpi-16k which uses 16k the larger page size.
graysky
Developer
 
Posts: 1737
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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: 2
Joined: Sat May 04, 2024 9:16 am

Previous

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 1 guest