Skip to content

Enable EMAC3 for sa8540p-ride

Andrew Halaney requested to merge ahalaney/centos-stream-9:emac3-enablement into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2208309

Backport EMAC3 support for sa8540p-ride

Testing Instructions:

  1. Merge this MR and !2567 (merged) into main-automotive
  2. Build and load to a sa8540p-ride board
  3. Verify the interfaces show up:
[root@dhcp19-243-79 ~]# ls -lah /sys/class/net/
total 0
drwxr-xr-x.  2 root root 0 May 23 17:38 .
drwxr-xr-x. 61 root root 0 Mar 20 00:00 ..
lrwxrwxrwx.  1 root root 0 Feb  1  1970 eth0 -> ../../devices/platform/soc@0/23000000.ethernet/net/eth0
lrwxrwxrwx.  1 root root 0 Feb  1  1970 eth1 -> ../../devices/platform/soc@0/20000.ethernet/net/eth1
lrwxrwxrwx.  1 root root 0 Mar 20 00:00 lo -> ../../devices/virtual/net/lo
  1. Verify the fixed-link/mac2mac interface at 23000000.ethernet functions without manual intervention:
[root@dhcp19-243-79 ~]# ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    RX:  bytes packets errors dropped  missed   mcast           
          1896      24      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          1896      24      0       0       0       0 
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether e6:b9:c9:8d:54:06 brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
       1838804   29060      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
         56517     574      0       0       0       0 
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 3e:29:4c:81:76:bb brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
             0       0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
             0       0      0       0       0       0 
[root@dhcp19-243-79 ~]# 
  1. With ethtool you can verify the other interface as well (note that on some of the boards the phy on this interface is broken in hardware per vendor):
[root@dhcp19-243-79 ~]# wget https://kojihub.stream.centos.org/kojifiles/packages/ethtool/5.10/3.el9/aarch64/ethtool-5.10-3.el9.aarch64.rpm
[root@dhcp19-243-79 ~]# rpm -i ./ethtool-5.10-3.el9.aarch64.rpm
[root@dhcp19-243-79 ~]# ip -s link show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 3e:29:4c:81:76:bb brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         20185     300      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          1808      16      0       0       0       0 
[root@dhcp19-243-79 ~]#

Signed-off-by: Andrew Halaney ahalaney@redhat.com

Edited by Andrew Halaney

Merge request reports