How to easily run aarch64 on RPi4

This is for ARMv8 based devices

Re: How to easily run aarch64 on RPi4

Postby Forge » Mon Mar 23, 2020 5:29 am

Thanks for making this available, I just flipped my RPi4 to aarch64 thanks to your work.

Just a heads up, the 03-08 rootfs tarball wouldn't boot on my 4. I tried two different good SDs and unpacked a half dozen times trying other things. Finally grabbed the 01-18, used that, and it booted the first time. Installed all updates, no problem. Once I can get a micro-HDMI cable, I'll troubleshoot a bit more for you. Thanks again!
Forge
 
Posts: 1
Joined: Mon Mar 23, 2020 5:21 am

Re: How to easily run aarch64 on RPi4

Postby andre » Mon Mar 30, 2020 11:40 am

$this->bbcode_second_pass_quote('graysky', '')$this->bbcode_second_pass_quote('andre', 'I')t seems this image does not set the nameserver through dhcp, even though it did set the ip address.
Had to set the nameserver manually in /etc/resolv.conf


Yes, there is a small bug in the image. You need to:
$this->bbcode_second_pass_code('', '
# rm /etc/resolv.conf
# ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
')


/run/systemd/resolve does not exist. Do I need to install or enable something else to make this work?

Apart from that, I've been running this image for a while.It runs fine and it seems the pi remains cooler then it would on the 32 bit image.
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: How to easily run aarch64 on RPi4

Postby graysky » Mon Mar 30, 2020 11:43 am

$this->bbcode_second_pass_quote('andre', '')$this->bbcode_second_pass_quote('graysky', '')$this->bbcode_second_pass_quote('andre', 'I')t seems this image does not set the nameserver through dhcp, even though it did set the ip address.
Had to set the nameserver manually in /etc/resolv.conf


Yes, there is a small bug in the image. You need to:
$this->bbcode_second_pass_code('', '
# rm /etc/resolv.conf
# ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
')


/run/systemd/resolve does not exist. Do I need to install or enable something else to make this work?

Apart from that, I've been running this image for a while.It runs fine and it seems the pi remains cooler then it would on the 32 bit image.


Are you using systemd-resolved? It creates that file.
My AUR packagesMy zsh configsStreamzap remote config
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000
Top

Re: How to easily run aarch64 on RPi4

Postby andre » Mon Mar 30, 2020 11:58 am

I am using the configuration as it was in the image. Indeed systemd-resolved.service was disabled.
I've enabled it and now it works, thanks!
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: How to easily run aarch64 on RPi4

Postby graysky » Mon Mar 30, 2020 2:14 pm

$this->bbcode_second_pass_quote('andre', 'I') am using the configuration as it was in the image. Indeed systemd-resolved.service was disabled.
I've enabled it and now it works, thanks!


There is another thread pointing out this small "bug" in the image.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000
Top

Re: How to easily run aarch64 on RPi4

Postby itajackass » Wed Apr 01, 2020 11:40 am

Hi, i've create my microSD for RPi4 using official guide and change rootfs url from step 5 of the guide with latest here: https://olegtown.pw/Public/ArchLinuxArm/RPi4/rootfs/

Now I have problem with mirror host...but I see it is a already reported bug here....

Next step... how to install a desktop? (of course light, for rpi4)
itajackass
 
Posts: 1
Joined: Wed Apr 01, 2020 11:03 am

Re: How to easily run aarch64 on RPi4

Postby andre » Wed Apr 01, 2020 4:27 pm

Personally, I prefer xfce.

To install a desktop, you need an X server (xorg) and a desktop environment (eg xfce) . If you like to have a graphical login, you need a display manager like lightdm. If you prefer a terminal login, you can start xfce with startxfce4 instead.

Something like
$this->bbcode_second_pass_code('', '
# pacman -S xfce4 xfce4-goodies xorg-apps xorg xorg-drivers lightdm
# systemctl enable lightdm
')
should do the trick.

For further information, look at the ArchLinux wiki
For the packages I mentioned:
https://wiki.archlinux.org/index.php/Xorg
https://wiki.archlinux.org/index.php/Xfce
https://wiki.archlinux.org/index.php/LightDM

Generic information:
https://wiki.archlinux.org/index.php/De ... nvironment
https://wiki.archlinux.org/index.php/Display_manager
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: How to easily run aarch64 on RPi4

Postby krapapock » Fri Apr 10, 2020 8:08 am

I'm trying run k8s, runc, cri-o, ... on the aarch64 rpi4 kernel provided by moonman.
But it fails because the cpu.cfs_period_us is missing in cgroups.
Probably because "# CONFIG_CFS_BANDWIDTH is not set" in kernel config.

Before i try to recompile the kernel with this option i would like to know if there's any reason to not have set it ?
krapapock
 
Posts: 1
Joined: Wed Apr 01, 2020 4:54 pm

Re: How to easily run aarch64 on RPi4

Postby moonman » Sat Apr 11, 2020 7:57 am

$this->bbcode_second_pass_quote('krapapock', 'I')'m trying run k8s, runc, cri-o, ... on the aarch64 rpi4 kernel provided by moonman.
But it fails because the cpu.cfs_period_us is missing in cgroups.
Probably because "# CONFIG_CFS_BANDWIDTH is not set" in kernel config.

Before i try to recompile the kernel with this option i would like to know if there's any reason to not have set it ?


I've uploaded new kernel with this config option set.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am
Top

Re: How to easily run aarch64 on RPi4

Postby Kicker0429 » Tue Apr 14, 2020 3:33 am

Has anyone tried the vc4-kms-v3d-pi4 overlay with a 5.x kernel? I tried moonman's PKGBUILD and I receive the following error messages:

Apr 03 05:28:23 RASPI4 kernel: [drm:vc5_hdmi_init_resources [vc4]] ERROR Failed to get HDMI state machine clock
Apr 03 05:28:23 RASPI4 kernel: vc4-drm gpu: failed to bind fef00700.hdmi (ops vc4_hdmi_ops [vc4]): -517
Apr 03 05:28:23 RASPI4 kernel: vc4-drm gpu: master bind failed: -517
Kicker0429
 
Posts: 1
Joined: Tue Apr 14, 2020 3:29 am

PreviousNext

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 7 guests