how to make mac10 work normal in ls1046ardb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to make mac10 work normal in ls1046ardb

697 Views
940785652
Contributor I

   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?

0 Kudos
3 Replies

609 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos

609 Views
940785652
Contributor I

Hello,yiping:

I solve it,I write mac10's device tree as mac9,mac10 works as i say,mac9 works normally.

2019-10-16 09-33-28屏幕截图.png

but mac10 works normally when i delete the function phy_start_machine.

2019-10-16 09-36-52屏幕截图.png

but I don't know why it is .can you tell me why it is ?

0 Kudos

609 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos