I have a board and it has the same hardware between mac9 and mac10.mac9 is fine,but mac10's Autonegotiation has a problem which doesn't work when network interface is connected,and it shows link up,but ping is failed,but ifconfig fm1-mac10 down,ifconfig fm1-mac10 up,mac10 is ok.
how to modify code to solve this probelm?
Hello siyao qi,
Which version LSDK are you using? I use LSDK 1906, didn't reproduce your problem.
Please refer to my following procedure.
root@localhost:~# ifconfig fm1-mac10 100.10.1.9
Connect MAC10 Ethernet interface to the server PC
b25805@star:/home/addon_4T/tftpboot/nxa22585/ls1046$ bft map -m 'LS1046ARDB-6_XFI2,lan10g' -c
Mapped: LS1046ARDB-6_XFI2 -> lan10g (resource)
name: LS1046ARDB-6 | ip: 192.168.2.162 | mac: 00:e0:0c:00:8e:xx
LS1046ARDB-6_RGMII1 MRV6_1:17
LS1046ARDB-6_RGMII2 MRV6_1:18
LS1046ARDB-6_SD SanDisk_16G
LS1046ARDB-6_SGMII1 MRV6_1:19
LS1046ARDB-6_SGMII2 MRV6_1:20
LS1046ARDB-6_Slot2_PCIe_NIC NW_1:27
LS1046ARDB-6_USB1 KingSton_16GB(USB3.0)
LS1046ARDB-6_USB2 KingSton_16GB(USB3.0)
LS1046ARDB-6_XFI1 LS1046ARDB-2_XFI1
LS1046ARDB-6_XFI2 bf-tg01_eth-10g-0
LS1046ARDB-6_serial0 OG_3:8
Ping PC server successfully.
root@localhost:~# ping 100.10.1.1
PING 100.10.1.1 (100.10.1.1): 56 data bytes
64 bytes from 100.10.1.1: icmp_seq=0 ttl=64 time=0.508 ms
64 bytes from 100.10.1.1: icmp_seq=1 ttl=64 time=0.285 ms
64 bytes from 100.10.1.1: icmp_seq=2 ttl=64 time=0.283 ms
Thanks,
Yiping
Hello,yiping:
I solve it,I write mac10's device tree as mac9,mac10 works as i say,mac9 works normally.
but mac10 works normally when i delete the function phy_start_machine.
but I don't know why it is .can you tell me why it is ?
Hello siyao qi,
On LS1046ARDB, interface ethernet@f2000 is 10G SFP (phy-less) port.
The dts should be defined as the following.
ethernet@f2000 { /* 10GEC2 */
fixed-link = <0 1 1000 0 0>;
phy-connection-type = "xgmii";
};
Thanks,
Yiping