[solved] rpi4 aarch64 networking

This is for ARMv8 based devices

[solved] rpi4 aarch64 networking

Postby Schlunze » Sun Sep 27, 2020 6:37 pm

Hello,

can someone give me a hint to get systemd-networkd working in alarm aarch64?

What ive tried so far...
added module pcie_brcmstb in mkinitcpio.conf
chroot sd card / pacman -Syu
delayed start of daemon with /etc/systemd/system/systemd-networkd.service.d/override.conf

nothing worked, i cant set up network with systemd-networkd in alarm aarch64.

thanks in advance for your help
Last edited by Schlunze on Sat Oct 03, 2020 4:57 am, edited 1 time in total.
Schlunze
 
Posts: 10
Joined: Tue Aug 20, 2019 3:27 pm

Re: rpi4 aarch64 networking

Postby Schlunze » Mon Sep 28, 2020 5:55 pm

Im not sure if this is hw or sw issue, maybe it is a user issue :)
Have anyone systemd-networkd with static ip @ eth0 running with aarch64 image?
Kernelmessages contains many network errors "..ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable..."
$this->bbcode_second_pass_code('', '
...
Sep 22 01:03:13 rpi4arch kernel: ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
...
Sep 22 01:03:13 rpi4arch systemd[1]: Starting Network Service...
Sep 22 01:03:13 rpi4arch systemd[298]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Control process exited, code=exited, status=200/CHDIR
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Sep 22 01:03:13 rpi4arch systemd[1]: Failed to start Network Service.
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 1.
Sep 22 01:03:13 rpi4arch systemd[1]: Stopped Network Service.
Sep 22 01:03:13 rpi4arch systemd[1]: Starting Network Service...
Sep 22 01:03:13 rpi4arch systemd[301]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Control process exited, code=exited, status=200/CHDIR
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Sep 22 01:03:13 rpi4arch systemd[1]: Failed to start Network Service.
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 2.
Sep 22 01:03:13 rpi4arch systemd[1]: Stopped Network Service.
Sep 22 01:03:13 rpi4arch systemd[1]: Starting Network Service...
Sep 22 01:03:13 rpi4arch systemd[307]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Control process exited, code=exited, status=200/CHDIR
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Sep 22 01:03:13 rpi4arch systemd[1]: Failed to start Network Service.
Sep 22 01:03:13 rpi4arch systemd-udevd[302]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Sep 22 01:03:13 rpi4arch systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 3.
Sep 22 01:03:13 rpi4arch systemd[1]: Stopped Network Service.
Sep 22 01:03:14 rpi4arch systemd[1]: Starting Network Service...
Sep 22 01:03:14 rpi4arch systemd[308]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Sep 22 01:03:14 rpi4arch systemd[1]: Finished Flush Journal to Persistent Storage.
Sep 22 01:03:14 rpi4arch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journal-flush comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
...
')
ip a
$this->bbcode_second_pass_code('', '
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether dc:a6:32:0a:67:88 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether dc:a6:32:0a:67:89 brd ff:ff:ff:ff:ff:ff
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries Device 2711 (rev 10)
01:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
')
thanks in advance for your support with this issue
Schlunze
 
Posts: 10
Joined: Tue Aug 20, 2019 3:27 pm

Re: rpi4 aarch64 networking

Postby manti7 » Wed Sep 30, 2020 6:38 am

I have it running on the current image:

$this->bbcode_second_pass_code('', '
Linux ###### 5.8.9-2-ARCH #1 SMP Tue Sep 15 00:48:59 UTC 2020 aarch64 GNU/Linux
')

In the directory /etc/systemd/network/ I deleted all files and replaced them with /etc/systemd/network/eth.network

$this->bbcode_second_pass_code('', '
Match]
Name=eth*

[Network]
Address=192.168.0.220/24
Gateway=192.168.0.1
DNS=192.168.0.1
')

After the reboot everything works as expected
manti7
 
Posts: 3
Joined: Wed Sep 30, 2020 6:21 am

Re: rpi4 aarch64 networking

Postby Schlunze » Wed Sep 30, 2020 5:56 pm

thank you manti. Just for the record, you used the rpi4 image from
$this->bbcode_second_pass_code('', 'http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz')
not the generic alarm aarch64 right?

eth0.network looks right
$this->bbcode_second_pass_code('', '
[Match]
Name=eth0

[Network]
Address=192.168.2.7/24
Gateway=192.168.2.1
#DNS=10.1.10.1
DNS=192.168.2.1
')
Schlunze
 
Posts: 10
Joined: Tue Aug 20, 2019 3:27 pm

Re: rpi4 aarch64 networking

Postby manti7 » Thu Oct 01, 2020 7:33 am

Hello Schlunze,

You are right I use ArchLinuxARM-rpi-aarch64-latest.tar.gz and you obviously use ArchLinuxARM-aarch64-latest.tar.gz

Can you show us the output of the following commands:

$this->bbcode_second_pass_code('', '
systemctl status systemd-networkd
')

$this->bbcode_second_pass_code('', '
networkctl
')

manti7
manti7
 
Posts: 3
Joined: Wed Sep 30, 2020 6:21 am

Re: rpi4 aarch64 networking

Postby Schlunze » Sat Oct 03, 2020 4:56 am

Hi, looks like i messed up something. After reinstallation
of ArchLinuxARM-rpi-aarch64-latest.tar.gz systemd-networkd
work like expected.

Thank you manti
Schlunze
 
Posts: 10
Joined: Tue Aug 20, 2019 3:27 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 18 guests