ClearFog LX2162A 1G Ethernet not working

Hi,

I have followed the instructions here to bring up my ClearFog LX2162A board https://solidrun.atlassian.net/wiki/spaces/developer/pages/199131187/ClearFog+LX2162A+Quick+Start+Guide, and flashed the pre-built image on the SD card (lx2162a_rev2_som_clearfog_2000_650_2900_18_9_0-b6c6923.img.xz).

I’ve connected an Ethernet cable to the top-left RJ45 port of 8x 1GbE RJ-45 ports (routed to Marvell Octal PHY). The Quick-start guide says this port is connected to dpmac.16. The ls-listni suggests it is eth9 interface in Linux:
dprc.1/dpni.2 (interface: eth9, end point: dpmac.16)

When I try to bring up this interface (ifconfig eth9 up) I am getting the following error in dmesg:

[   22.712849] fsl_dpaa2_eth dpni.2 eth9: configuring for phy/sgmii link mode
[   25.786932] fsl_dpaa2_eth dpni.2 eth9: phy_set_mode_ext() = -95
[   25.792878] mdio_bus 0x0000000008c43000:00: USXGMII only supports in-band AN for now
[   25.800635] fsl_dpaa2_eth dpni.2 eth9: pcs_config failed: -EOPNOTSUPP
[   25.814114] fsl_dpaa2_eth dpni.2 eth9: Link is Up - 1Gbps/Full - flow control off
[   25.814165] IPv6: ADDRCONF(NETDEV_CHANGE): eth9: link becomes ready

I’m not sure this port is working correctly then, for example running dhclient eth9 doesn’t succeed

This appears to be a bug in the latest BSP. We are looking into it and will get back to you.

Thanks for the answer! Could you explain please what is the problem here?
It seems like dpaa2_eth driver tries to use out-of-band link configuration. Could it be fixed by adding managed = “in-band-status”; for dpmac16 in the device-tree.

Thanks

Sorry for the delay, just started looking at this. It seems like a regression from our previous BSP and I am working on bisecting what is missing. Will just need another day or two and I will get back with a patch and answer. Thanks for your patience.

1 Like

Hey jnettlet! Has there been any updates to this issue? Its a major blocker for our integration with the ClearFog LX2162A board. Is there maybe an older image which is know to be working? Thanks!

i am facing the same issue. i tried multiple images, from the pre build repo. and i ended up with the issue in each one of them.

I have the exact same issue with a brand new board when I used lx2162a_rev2_som_clearfog_2000_650_2900_18_9_0-fd60614.img. Hoping for some input on recommended image to use to get things going.

Link seems to come up, but DHCP does not complete.
‘’’
root@localhost:~# ethtool eth9
Settings for eth9:
Supported ports: [ ]
Supported link modes: 10baseT/Full
100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Full
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/Half 1000baseT/Full
Link partner advertised pause frame use: No
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: 9
Transceiver: external
MDI-X: off (auto)
Link detected: yes
root@localhost:~# ifconfig eth9
eth9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::d263:b4ff:fe05:109c prefixlen 64 scopeid 0x20
ether d0:63:b4:05:10:9c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 5382 (5.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
‘’’