Raspberry Pi 3 / 4 - 3 possible ways of operating

This is for ARMv8 based devices

Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby ufo6000 » Mon Jan 31, 2022 7:12 pm

I see often some confusion about the 3 possible ways of operating a Pi 3/4,

This is what I took from the installation page + repo:

a) ARMv7 Installation :
rpi foundation kernel
ArchLinuxARM-rpi-armv7-latest.tar.gz
Package: linux-rpi + raspberrypi-bootloader

b) AArch64 Installation :
vanilla mainline kernel (aarch64 only)
ArchLinuxARM-rpi-aarch64-latest.tar.gz
Package: linux-aarch64, uboot-tools, uboot-raspberrypi

c)
This 3rd way is what I'm missing, a) linux-rpi can be operated either with Architecture aarch64 or armv7h according to the repo.
So an installer image with linux-rpi and aarch64 Architecture is missing?
Or is swiching linux-rpi armv7h --> aarch64 on-the-fly possible ?


These switching methods I found so far:

# linux-aarch64 --> linux-rpi
should work: viewtopic.php?f=65&t=15708&p=68174#p68174

# Method to switching armv7 to aarch64
could break: viewtopic.php?f=65&t=15699&start=10&hilit=Method+to+switching+armv7+to+aarch64

Thanks ufo6000
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby tokenize » Fri Feb 04, 2022 12:01 pm

With Raspberry Pi OS now officially released with 64 bit support doesn't it mean we can do the same with Arch?

Even though, I thought that 64 bit support would only come with kernel 5.15 but Raspberry Pi OS 64 bit is using 5.10.
tokenize
 
Posts: 9
Joined: Wed Jun 10, 2015 6:08 pm

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby graysky » Fri Feb 04, 2022 12:28 pm

We have been providing a 64-bit kernel and userland for years... has nothing to do with rpi-5.15.y or with other distros.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby tokenize » Fri Feb 04, 2022 1:07 pm

Maybe I got confused then. It was my understanding that to use aarch64 we had to use the mainline kernel which was something I was avoiding. I've been waiting for a a way to run aarch64 with linux-rpi kernel which I understood was not possible, which is point c) in OP.
tokenize
 
Posts: 9
Joined: Wed Jun 10, 2015 6:08 pm

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby ufo6000 » Fri Feb 04, 2022 3:18 pm

c) is possible, only the installer is missing. After switching:

$this->bbcode_second_pass_code('', '
$ uname -a
Linux p3 5.10.95-2-rpi-ARCH #1 SMP PREEMPT Wed Feb 2 15:31:24 UTC 2022 aarch64 GNU/Linux

$ file /usr/bin/bash
/usr/bin/bash: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2311233f2deeeebc08ef3fad740ca2a0cb1bcccf, for GNU/Linux 3.7.0, stripped
')

is running fine :-)
An installer with rpi foundation kernel and aarch64 Architecture would be great :-)
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby tokenize » Fri Feb 04, 2022 3:22 pm

Ah, so you installed aarch64 installer and then switched to linux-rpi? Why is this not the standard installer then? What would be the advantage of running the mainline kernel instead?
tokenize
 
Posts: 9
Joined: Wed Jun 10, 2015 6:08 pm

Re: Raspberry Pi 3 / 4 - 3 possible ways of operating

Postby ufo6000 » Fri Feb 04, 2022 3:41 pm

Yes, I started some time ago with aarch64 installer.
Due to recent issues I now switched to linux-rpi.

I made an updated guide:
https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15850
feedback is welcome.
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 3 guests