How to install archlinux aarch64 on rpi4?

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

Re: How to install archlinux aarch64 on rpi4?

Postby graysky » Fri Sep 25, 2020 7:19 pm

I do not know about external SSDs. I only use it with the onboard microSD and it is fine.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to install archlinux aarch64 on rpi4?

Postby CaptainRage » Fri Sep 25, 2020 9:58 pm

Thanks for the feedback. The problem I had was that aarch64 wouldn't boot with the /boot partition on a microSD card and the / partition on an external SSD. Apparently there is a problem with USB devices getting detected early on in aarch64 on Raspberry Pi 4. Having the /boot partition on a microSD card and the root partition on an external USB drive works on the armv7 version without any problems.
CaptainRage
 
Posts: 19
Joined: Fri Mar 15, 2013 3:56 pm

Re: How to install archlinux aarch64 on rpi4?

Postby kernelpanic » Fri Sep 25, 2020 11:33 pm

I have managed to get this working this evening by following this thread:
https://archlinuxarm.org/forum/viewtopic.php?f=65&t=14672

I'm using the microSD card as /boot and a USB SSD as /
1. edit /etc/mkinitcpio.conf and add pcie_brcmstb to MODULES
i.e MODULES=(pcie_brcmstb)
2. run mkinitcpio -P
3. edit /boot/boot.txt and add the new root partition to root=
e.g. root=/dev/sda1
4. run ./mkscr

The problem I have now is that the ethernet rarely works, I have to reboot several times before It does...
kernelpanic
 
Posts: 4
Joined: Fri Sep 25, 2020 11:09 pm

Re: How to install archlinux aarch64 on rpi4?

Postby Czar » Sat Sep 26, 2020 12:25 pm

You can try setting delay to systemd-networkd service:
viewtopic.php?p=64514#p64514
Czar
 
Posts: 8
Joined: Sat Sep 05, 2020 9:20 am

Re: How to install archlinux aarch64 on rpi4?

Postby kernelpanic » Sun Sep 27, 2020 9:02 pm

@Czar: Perfect, thank-you, that works like a charm.
kernelpanic
 
Posts: 4
Joined: Fri Sep 25, 2020 11:09 pm

Re: How to install archlinux aarch64 on rpi4?

Postby graysky » Mon Sep 28, 2020 7:21 pm

@Schlunze - Please don't double post. You already asked that question in a thread elsewhere on these boards.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to install archlinux aarch64 on rpi4?

Postby omarmohamed » Mon Sep 28, 2020 8:14 pm

@graysky After following the instructions to install aarch64 I got the output mentioned in the question on the serial console, I don't know if the problem was in uboot or the kernel but after uboot printed 'starting kernel' there was '�f��~����`f��~����f...........'
@CaptainRage I'm using an sdcard not an external storage, even I think usb doesn't work on boot for me either
$this->bbcode_second_pass_code('', '
starting USB...
No working controllers found
')
Anyway If you haven't installed arch yet you may try this (I didn't try myself):
https://unix.stackexchange.com/questions/41889/how-can-i-chroot-into-a-filesystem-with-a-different-architechture
omarmohamed
 
Posts: 5
Joined: Wed Sep 23, 2020 1:04 pm

Previous

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 5 guests