[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 code333 » Thu Dec 21, 2023 2:33 am

Hello

I'm at the part where i use pacstrap and getting this error message as root.
[code]
==> Creating install root at /mnt/root
==> Installing packages to /mnt/root
:: Synchronizing package databases...
core is up to date
extra is up to date
sublime-text is up to date
error: target not found: linux-rpi
error: target not found: raspberrypi-bootloader
error: target not found: firmware-raspberrypi
error: target not found: archlinuxarm-keyring
==> ERROR: Failed to install packages to new root
[/code]

Any ideas of why? Thank you
A.R
code333
 
Posts: 1
Joined: Thu Dec 21, 2023 2:29 am

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

Postby eddygrinder » Sat Dec 30, 2023 11:36 pm

Hello,
I manage to install Arch Arm following this tutorial: [url]https://kiljan.org/2023/11/24/arch-linux-arm-on-a-raspberry-pi-5-model-b/[/url] but

I encounter a serious problem with gpiozero: why 'gpiozero' is not using its 'libgpiod' back-end / factory on a Pi 5 under Arch Arm and appears to be falling back to using an RPi.GPIO or '/dev/mem' back-end / factory which does not work on a Pi 5 - which uses [code]gpiochip0 gpiochip1 gpiochip2 gpiochip3 gpiochip4 gpiomem0 gpiomem1 gpiomem2 gpiomem3 gpiomem4[/code].

Anyone with the same problem?
eddygrinder
 
Posts: 4
Joined: Sat Dec 30, 2023 11:27 pm

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

Postby graysky » Sun Dec 31, 2023 11:38 am

Which kernel package are you using? Try linux-rpi or linux-rpi-16k for RPi5.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby eddygrinder » Sun Dec 31, 2023 1:18 pm

Linux-rpi, didn't try 16k
eddygrinder
 
Posts: 4
Joined: Sat Dec 30, 2023 11:27 pm

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

Postby graysky » Sun Dec 31, 2023 2:37 pm

The -16k shouldn't make a difference. Main point was that you're using a rpi specific kernel. I don't use gpiozero at least directly. Our kernel tracks very closely with the Foundation's defconfig options. I would be surprised if anything we do on top of that is to blame for what you're describing. Do you have a spare uSD? Can you test this behavior under RPiOS and report back? Alternatively, post your question on the rpi forums to see if the behavior is expected.
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://forums.raspberrypi.com/viewforum.php?f=29', '', ' class="postlink"')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby eddygrinder » Sun Dec 31, 2023 8:41 pm

[EDIT]

I've installed from here: [url]http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz[/url]

I have two sd cards: RaspOS works as supposed but arch don't. gpiozero on Arch falls back to /dev/gpiomem - I made a small test with gpiozero


RPi is not compatible with PI5
Last edited by eddygrinder on Mon Jan 01, 2024 11:55 pm, edited 1 time in total.
eddygrinder
 
Posts: 4
Joined: Sat Dec 30, 2023 11:27 pm

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

Postby graysky » Mon Jan 01, 2024 11:28 am

My RPi5B is running linux-rpi-16k and see the following. Is this what you expect to see?
[code]
% ls -l /dev/gpio*
crw------- 1 root root 254, 0 Jan 1 06:15 /dev/gpiochip0
crw------- 1 root root 254, 1 Jan 1 06:15 /dev/gpiochip1
crw------- 1 root root 254, 2 Jan 1 06:15 /dev/gpiochip2
crw------- 1 root root 254, 3 Jan 1 06:15 /dev/gpiochip3
crw------- 1 root root 254, 4 Jan 1 06:15 /dev/gpiochip4
crw------- 1 root root 234, 0 Jan 1 06:15 /dev/gpiomem0
crw------- 1 root root 238, 0 Jan 1 06:15 /dev/gpiomem1
crw------- 1 root root 237, 0 Jan 1 06:15 /dev/gpiomem2
crw------- 1 root root 236, 0 Jan 1 06:15 /dev/gpiomem3
crw------- 1 root root 235, 0 Jan 1 06:15 /dev/gpiomem4
[/code]
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby eddygrinder » Mon Jan 01, 2024 11:20 pm

I'm so sorry - I messed up big time.
Ok, I've made a fresh install with [b]linux-rpi-16k[/b] and the GPIO's are [u]correctly[/u] mapped.
However, I have an sd card with RaspOS that works fine with gpiozero (this is recommended)

However, when I install gpiozero on arch as it falls back to gpiomem which don't exist on PI5 I can't use this library.

So, for now I'm stuck with gpiod
eddygrinder
 
Posts: 4
Joined: Sat Dec 30, 2023 11:27 pm

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

Postby Mallalieu » Thu Jan 04, 2024 8:19 am

Thanks graysky, I'm using linux-rpi on my Pi 5.works great.
___________________
STEPPERMOTOR.FR has a wide range of motors, now available High temperature stepper motors, Pancake stepper motor and so on.
Mallalieu
 
Posts: 1
Joined: Thu Jan 04, 2024 8:03 am

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

Postby mattblack » Fri Jan 19, 2024 11:11 am

anybody was able to make the pci-e working? It seems attaching pci devices doesn't trigger anything, even when pci is enabled in config.txt
mattblack
 
Posts: 8
Joined: Fri Feb 11, 2022 11:36 am

PreviousNext

Return to Community Guides

Who is online

Users browsing this forum: No registered users and 3 guests