We’re using serdes1 = 14 (so having 100GE.1 in addition to the primary network interface).
we’ve added dpmac1 in addition to the existing dpmac17 inside u-boot’s fsl-lx2160a-cex7.dts:
&dpmac1 {
status = "okay";
phy-connection-type = "xgmii";
};
&dpmac17 {
status = "okay";
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-id";
};
U-boot boot logs seems promising:
Net: eth0: DPMAC1@xgmii, eth1: DPMAC17@rgmii-id [PRIME]
We’ve added a bunch of NIC entries to the EEPROM’s TLV:
# tlv_parser -b 3 -a 0x57
EEPROM Contents:
Product Name: LX2160A_CEX7
MAC Address base: fa:00:e7:00:ff:f8
MAC Size: 9
Manufacturer Country: IL
Vendor Name: Solidrun
CRC32: 70 32 9d 90
eth0 gets the 2nd NIC address as expected:
# ip a
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether fa:00:e7:00:ff:f9 brd ff:ff:ff:ff:ff:ff
but when we add eth1 we see it has a random mac address:
# ls-addni dpmac.1
[ 120.948293] fsl_mc_allocator dpbp.1: Adding to iommu group 3
[ 120.956261] fsl_mc_allocator dpmcp.53: Adding to iommu group 3
[ 120.964476] fsl_mc_allocator dpcon.31: Adding to iommu group 3
[ 120.971736] fsl_mc_allocator dpcon.30: Adding to iommu group 3
[ 120.979493] fsl_mc_allocator dpcon.29: Adding to iommu group 3
[ 120.987024] fsl_mc_allocator dpcon.28: Adding to iommu group 3
[ 120.994541] fsl_mc_allocator dpcon.27: Adding to iommu group 3
[ 121.000720] fsl_mc_allocator dpcon.26: Adding to iommu group 3
[ 121.007715] fsl_mc_allocator dpcon.25: Adding to iommu group 3
[ 121.015494] fsl_mc_allocator dpcon.24: Adding to iommu group 3
[ 121.022356] fsl_mc_allocator dpcon.23: Adding to iommu group 3
[ 121.030101] fsl_mc_allocator dpcon.22: Adding to iommu group 3
[ 121.036868] fsl_mc_allocator dpcon.21: Adding to iommu group 3
[ 121.043509] fsl_mc_allocator dpcon.20: Adding to iommu group 3
[ 121.051232] fsl_mc_allocator dpcon.19: Adding to iommu group 3
[ 121.058133] fsl_mc_allocator dpcon.18: Adding to iommu group 3
[ 121.065689] fsl_mc_allocator dpcon.17: Adding to iommu group 3
[ 121.073214] fsl_mc_allocator dpcon.16: Adding to iommu group 3
[ 121.081197] fsl_dpaa2_eth dpni.1: Adding to iommu group 3
[ 121.275258] fsl_dpaa2_eth dpni.1: Probed interface eth1
Created interface: eth1 (object:dpni.1, endpoint: dpmac.1)
# ip a
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether fa:00:e7:00:ff:f9 brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1e:76:f2:61:91:e5 brd ff:ff:ff:ff:ff:ff
any idea how to control the mac address of that eth1?