MochaBin WAN interface and systemd-networkd boot issue

This is for ARMv8 based devices

MochaBin WAN interface and systemd-networkd boot issue

Postby technosf » Fri Jun 02, 2023 3:45 am

I'm looking for ideas on having the MochaBin RJ45 WAN interface (mvpp2 f2000000.ethernet eth2) work happily with systemd-networkd.

I found that this interface 'switches off' if there is a systemd-networkd '.network' file matching on 'eth2' at boot - the link light is on during boot and then off and stays off once systemd-networkd startup occurs. Once this happens, I can't get the eth2 link up: I've tried removing its .network file, restarting systemd-networkd, and bringing the interface down and back up etc. I have to remove the .network file and reboot.

What does work, is to boot with no eth2.network file. The link light stays on. I can then add the eth2.network file and restart systemd-networkd, and everything works fine.

How do I get eth2 to be configured at boot, or is there an easy and non-kludgy way to automate adding it in once boot has completed?

This is how eth2 looks without systemd-networkd configuring it:
$this->bbcode_second_pass_code('', 'Settings for eth2:
Supported ports: [ TP AUI MII FIBRE BNC Backplane ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
1000baseKX/Full
1000baseX/Full
100baseT1/Full
1000baseT1/Full
100baseFX/Half 100baseFX/Full
10baseT1L/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Half
Auto-negotiation: off
Port: MII
PHYAD: 0
Transceiver: internal
Link detected: no')

This is how eth2 looks if systemd-networkd configures it after network startup:
$this->bbcode_second_pass_code('', 'Settings for eth2:
Supported ports: [ TP MII FIBRE ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
Link detected: yes')

I'm am running with @lynix 6.1.30 lts kernel

Thanks!
[size=85] MochaBin 5G || NSA325 [/size]
technosf
 
Posts: 130
Joined: Sat Jan 08, 2011 10:54 pm

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 5 guests