How to easily run aarch64 on RPi4

This is for ARMv8 based devices

Re: How to easily run aarch64 on RPi4

Postby lonaowna » Thu May 28, 2020 9:38 am

There's now an official 64-bit beta release of Raspbian for the Pi3 and Pi4 (now called
"Raspberry Pi OS"):
https://www.raspberrypi.org/forums/view ... a7e73ece3b

Hopefully this means that we'll have a full-featured Arch Linux ARM soon, too.
lonaowna
 
Posts: 3
Joined: Mon Sep 26, 2016 11:24 am

Re: How to easily run aarch64 on RPi4

Postby graysky » Thu May 28, 2020 10:05 am

$this->bbcode_second_pass_quote('lonaowna', 'T')here's now an official 64-bit beta release of Raspbian for the Pi3 and Pi4 (now called
"Raspberry Pi OS"):
https://www.raspberrypi.org/forums/view ... a7e73ece3b

Hopefully this means that we'll have a full-featured Arch Linux ARM soon, too.


Principally, this announcment is no different than moonman supplying his images.

$this->bbcode_second_pass_quote('announcement', '
')This is a beta test of the Raspberry Pi OS (64 bit)

We still recommend the 32 bit operating system for all Pis at this time, although have decided it is now time to begin the move toward a 64bit OS. For the moment this is a 'beta' program, the OS is in heavy flux and its functionality is likely to change significantly over the next few months.

Known issues
1) There is no hardware video acceleration in VLC or Chromium
2) libraspberrypi0, libraspberrypi-dev and libraspberrypi-doc have been moved out of /opt/vc/* and into /usr/* instead (making it more standard). Any code built against these libraries will require changing to refer to a more standard location (/usr/lib/ rather than /opt/vc/lib)
3) raspberrypi-bootloader and raspberrypi-kernel contain useless non-64bit binaries and is missing the work done to minimise the delay between files being deleted and installed to /boot
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to easily run aarch64 on RPi4

Postby DocSniper » Fri Jun 05, 2020 1:44 pm

For your information, Arch Linux ARM aarch64 now starts without changes on my RPi-4B.
My old configuration was an RPI-3B (without +) with the RPi-3 ALARM 64-bit system installed.
I kept testing whether I could boot my RPi-4B with this image, but with no luck.
Since the update to uboot-raspberrypi 2020.04-1 (released on Monday, June 1st) the RPi-4B has been booting correctly (my kernel is linux-aarch64 5.6.15-1).

But there seems to be at least one downside, the network sometimes seems to have problems.
Maybe it's this problem? https://github.com/lategoodbye/rpi-zero/issues/47
DocSniper
 
Posts: 3
Joined: Fri Jun 05, 2020 1:22 pm

Re: How to easily run aarch64 on RPi4

Postby lategoodbye » Sun Jun 07, 2020 1:14 pm

@DocSniper

Could you please name the kernel tree you are using (rpi-5.6 or linux-stable)?
What kernel config do you use?
What network problem do you see sometimes?
How often does they appear?
How do you reproduce them?
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: How to easily run aarch64 on RPi4

Postby DocSniper » Sun Jun 07, 2020 5:08 pm

@lategoodbye

I use this kernel: https://archlinuxarm.org/packages/aarch64/linux-aarch64

I haven't looked at the network problem in detail, but various network services are having problems or aren't working as expected.

For example, Samba on RPi4 sometimes has problems and throttles when I watch videos with Kodi on a FireTV. This happens after a while and is annoying, but basically Samba works and can provide files.


Another problem is, connections to mosquitto aren't sucessful, see this log:

Jun 07 18:15:29 RPi4 mosquitto[682]: 1591546529: New connection from 10.10.10.59 on port 1883.
Jun 07 18:15:29 RPi4 mosquitto[682]: 1591546529: New client connected from 10.10.10.59 as DVES_ABCDEF (p2, c1, k30, u'DVES_USER').
Jun 07 18:15:44 RPi4 mosquitto[682]: 1591546544: Socket error on client DVES_ABCDEF, disconnecting.
Jun 07 18:15:49 RPi4 mosquitto[682]: 1591546549: New connection from 10.10.10.59 on port 1883.
Jun 07 18:15:49 RPi4 mosquitto[682]: 1591546549: New client connected from 10.10.10.59 as DVES_ABCDEF (p2, c1, k30, u'DVES_USER').
Jun 07 18:16:04 RPi4 mosquitto[682]: 1591546564: Socket error on client DVES_ABCDEF, disconnecting.

If I use the same SD card in my Pi3B, everything works fine and these errors don't occur.
I'll try again when the Arch Linux aarch64 kernel 5.7 is available.
Last edited by DocSniper on Mon Jun 08, 2020 8:38 pm, edited 2 times in total.
DocSniper
 
Posts: 3
Joined: Fri Jun 05, 2020 1:22 pm

Re: How to easily run aarch64 on RPi4

Postby lategoodbye » Sun Jun 07, 2020 6:24 pm

Which network interface is affected (Gigabit ethernet, internal Wifi, network interface via USB)?
Can you provide "ip -s link show" from the Pi4 after the issue has occured?
Are you able to reproduce this issue with ICMP ping?
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: How to easily run aarch64 on RPi4

Postby DocSniper » Sun Jun 07, 2020 8:54 pm

I use the network interface gigabit eth0 (no WiFi, no USB network).
I'll try to gather more information and post it the next days ...

Edit: After some research, the "samba error" seems to be related to my Kodi, FireTV or the MP4/MKV-files. Because when this error occurs while playing video, I can copy the same video file to my computer without any problems.

With the mosquitto error I unfortunately cannot see an increasing number of errors with "ip -s link show dev eth0". The output doesn't show any new error, it is almost identical before and after:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether [...]
RX: bytes packets errors dropped overrun mcast
3785104919 3792655 0 92 0 1466
TX: bytes packets errors dropped carrier collsns
5319449067 4521645 0 0 0 0

-- Logs begin at Wed 2020-06-03 18:34:17 CEST. --
Jun 08 20:08:46 RPi4 mosquitto[686]: 1591639726: Socket error on client DVES_ABCDEF, disconnecting.
Jun 08 20:08:51 RPi4 mosquitto[686]: 1591639731: New connection from 10.10.10.59 on port 1883.
Jun 08 20:08:51 RPi4 mosquitto[686]: 1591639731: New client connected from 10.10.10.59 as DVES_ABCDEF (p2, c1, k30, u'DVES_USER').
Jun 08 20:09:06 RPi4 mosquitto[686]: 1591639746: Socket error on client DVES_ABCDEF, disconnecting.
[...]

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether [...]
RX: bytes packets errors dropped overrun mcast
3795080059 3805176 0 92 0 1533
TX: bytes packets errors dropped carrier collsns
5322404053 4533806 0 0 0 0
DocSniper
 
Posts: 3
Joined: Fri Jun 05, 2020 1:22 pm

Re: How to easily run aarch64 on RPi4

Postby WebReflection » Thu Jun 11, 2020 10:12 am

I can't get USB to run properly in there, anything I am overlooking? thanks!
WebReflection
 
Posts: 99
Joined: Tue Apr 02, 2013 6:49 pm

Re: How to easily run aarch64 on RPi4

Postby keithspg » Tue Jun 16, 2020 9:35 pm

Can this image be booted on a B3+? Can I modify some config or something? I just burned it and my B3+ does not boot. I was able to boot aarch64 image on the B3+, but that image, 5.7.2-1, has no overlays and is kind of useless to me like this. I am capable of building a kernel for the B3+, but need a bit of help to do so. I tried a few things but was unable to build anything useful. Any help accepted. Just interested in trying the 64 bit kernel on my b3+, but with overlays so I can use my i2s card and gpio...
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: How to easily run aarch64 on RPi4

Postby moonman » Thu Jun 18, 2020 7:59 pm

$this->bbcode_second_pass_quote('WebReflection', 'I') can't get USB to run properly in there, anything I am overlooking? thanks!

I boot off of USB SSD without SD card and everything works. Might just be a compatibility problem. Boot with something that you can boot off of and update the firmware - it might help. rpi-eeprom or rpi-eeprom-git in AUR.

$this->bbcode_second_pass_quote('keithspg', 'C')an this image be booted on a B3+? Can I modify some config or something? I just burned it and my B3+ does not boot. I was able to boot aarch64 image on the B3+, but that image, 5.7.2-1, has no overlays and is kind of useless to me like this. I am capable of building a kernel for the B3+, but need a bit of help to do so. I tried a few things but was unable to build anything useful. Any help accepted. Just interested in trying the 64 bit kernel on my b3+, but with overlays so I can use my i2s card and gpio...

You really only need RPI3 kernel compiled for aarch64, that's it, everything else is included.
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

PreviousNext

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 6 guests