aarch64 kernel on Raspberry Pi 4 - instructions

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

aarch64 kernel on Raspberry Pi 4 - instructions

Postby esotericnonsense » Sat Nov 16, 2019 7:15 am

Hi all,

I put together an AUR package to build the standard config with minimal tweaks for aarch64.

https://git.sr.ht/~esotericnonsense/lin ... i4-aarch64

I've also put together a blog post explaining how to use it

https://esotericnonsense.com/blog/rpi-chroot.html

It's likely that some of the steps in that guide can be skipped - it may be possible to just boot the aarch64 image directly with some tweaks - but I haven't tried it because I'm using my rpi as a desktop and only have the one.

Cheers!

~ esotericnonsense / Daniel Edgecumbe
esotericnonsense
 
Posts: 3
Joined: Sat Nov 16, 2019 7:11 am

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby graysky » Sat Nov 16, 2019 11:35 am

graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby esotericnonsense » Tue Nov 19, 2019 4:45 pm

Thanks for the link! I realised independently that you could just use the aarch64 mainline image and replace the kernel + install those packages.

The problem was that initially I was trying to build the kernel on the rpi itself via cross-compilation to aarch64, similar to the old Arch guide of making the 32-64 transition.

However, because alarm doesn't have multilib repos (at least, not that I know of) I broke the system halfway through once 32bit glibc was gone. Hence the way in which I arrived at my system being this roundabout 32 to 64 conversion.

If you use another machine then indeed you can just start out by compiling the kernel and using the aarch64 userland to begin with which is far simpler indeed.
esotericnonsense
 
Posts: 3
Joined: Sat Nov 16, 2019 7:11 am

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby moonman » Wed Nov 20, 2019 2:38 am

I didn't actually uyse generic aarch64 to create the rootfs.
pacstrap + chroot is more efficient and cleaner.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby lvml » Fri Nov 22, 2019 5:45 pm

For those who have not compared the 32bit and 64bit modes on the Pi 4 themselves yet, can you describe in a few words what benefits one might expect from the 64bit mode?

For x86_64 CPUs, almost everyone today knows about the richer instruction set, more registers, and the larger usable address space.

But is there a tangible benefit feature/performance wise also from the ARM v8 instruction set?
lvml
 
Posts: 6
Joined: Tue Nov 12, 2019 4:18 pm

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby vap0rtranz » Tue Nov 26, 2019 4:53 am

$this->bbcode_second_pass_quote('lvml', 'o')r those who have not compared the 32bit and 64bit modes on the Pi 4 themselves yet, can you describe in a few words what benefits one might expect from the 64bit mode?


Good question.

Looks like they added virtualization extensions, double float (and per spec), hardware crypto (AES, SHA, CRC), etc. I recall crypto being one change folks were really after, like Pfense offering their software on aarch64 gear so that AES was doable in hardware, and so I bought one :)

https://en.wikipedia.org/wiki/ARM_architecture#ARMv8-A

So yes, many features that x86_64 chips have had.
vap0rtranz
 
Posts: 5
Joined: Sat Mar 02, 2019 2:16 am

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby WebReflection » Tue Jan 28, 2020 4:09 pm

AFAIK Linux 5.5 brought in support for the Raspberry Pi 4, and I wonder if any of this is needed anymore or if it's planned to provide an aarch64 version of ArchLinux ARM for the Pi 4 (IIRC Manjaro has been there for few months now).

Does anyone have any clue what's the current path forward regarding Pi4?

Thanks in advance for any sort of hint/link/insight
WebReflection
 
Posts: 104
Joined: Tue Apr 02, 2013 6:49 pm

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby lategoodbye » Tue Jan 28, 2020 5:50 pm

$this->bbcode_second_pass_quote('', '
')AFAIK Linux 5.5 brought in support for the Raspberry Pi 4, and I wonder if any of this is needed anymore or if it's planned to provide an aarch64 version of ArchLinux ARM for the Pi 4 (IIRC Manjaro has been there for few months now).


There is a big misunderstanding.

What the kernel developers say: There is initial Raspberry Pi 4 support in Linux 5.5
What the bloggers say: There is Raspberry Pi 4 support in Linux 5.5
What the users think: There is full Raspberry Pi 4 support in Linux 5.5

AFAIK Manjaro doesn't use the mainline kernel, they use the Raspberry Pi tree or a fork of it.

$this->bbcode_second_pass_quote('', '
')Does anyone have any clue what's the current path forward regarding Pi4?


Please look at this here, to get any idea what the current status of Raspberry Pi 4 in mainline:
https://github.com/lategoodbye/rpi-zero/issues/43
lategoodbye
 
Posts: 124
Joined: Sat Dec 29, 2018 1:24 am
Top

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby WebReflection » Tue Jan 28, 2020 7:08 pm

Thanks to sum it up, and yes, most posts around this look like misleading indeed, but it's also easy to misunderstand these summaries:
https://www.cnx-software.com/2020/01/27 ... itectures/

Although, pointing at a link that's about rpi-zero can also create great confusion, don't you think? :lol:

Anyway, my question was rather related to the fact there are ways to have aarch64 ArchLinuxARM working on the Pi4, and seeing how many moving parts there are around this, I was hoping for some better information (which you actually provided).

Looking forward to the day rpi3 and rpi4 can both run on 64bit, but I guess, at this point, that day is at least few months further away.
WebReflection
 
Posts: 104
Joined: Tue Apr 02, 2013 6:49 pm

Re: aarch64 kernel on Raspberry Pi 4 - instructions

Postby WebReflection » Tue Jan 28, 2020 9:10 pm

FWIW, also another reason to ask for aarch64 :D
https://hackaday.com/2020/01/28/raspber ... s-64-bits/
WebReflection
 
Posts: 104
Joined: Tue Apr 02, 2013 6:49 pm

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 4 guests