LS1021A TWR Network issues

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

LS1021A TWR Network issues

2,194 Views
marcuscarlberg
Contributor I

Trying to set up a new LS1021A at the moment, however cant seem to get the network device working properly.


I tested on the link up and got:


mdio list

FSL_MDIO:

0 - AR8031/AR8033 <--> eTSEC2

1 - AR8031/AR8033 <--> eTSEC3

2 - AR8031/AR8033 <--> eTSEC1

Which seems fine. If i read on the interface i get:

=> mdio read eTSEC1 1

mdio read eTSEC1 1

Reading from bus FSL_MDIO

PHY at address 2:

1 - 0x796d

=> mdio read eTSEC2 1

mdio read eTSEC2 1

Reading from bus FSL_MDIO

PHY at address 0:

1 - 0x7949

=> mdio read eTSEC3 1

mdio read eTSEC3 1

Reading from bus FSL_MDIO

PHY at address 1:

1 - 0x7949

Which tells me that all the ports are online.

However when I try to make a ping I can't reach the host.

ping -c 2 192.168.0.1

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

From 192.168.0.55 icmp_seq=1 Destination Host Unreachable

From 192.168.0.55 icmp_seq=2 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---

2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1014ms

pipe 2

My ethernet configuration looks like this for eth0:

4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

    link/ether 00:04:9f:03:63:7d brd ff:ff:ff:ff:ff:ff

    inet 192.168.0.55/24 brd 192.168.0.255 scope global eth0

       valid_lft forever preferred_lft forever

    inet6 fe80::204:9fff:fe03:637d/64 scope link

       valid_lft forever preferred_lft forever


Am I missing something, to me everything looks like it should work?

Labels (1)
Tags (1)
7 Replies

1,309 Views
sumithvojini
Contributor I

Hello Marcus,

Can you please check if SW3[5] is ON. If this is ON The serdes lane is given to SATA port and eTSEC1 wont be available.

Sumith

0 Kudos

1,309 Views
marcuscarlberg
Contributor I

SW3[5] is off, if I change it to on the card won't boot at all.

However I have gotten eth2 (eTSEC3) to work properly, would only be nice to have all network interfaces functional.

Marcus

0 Kudos

1,309 Views
tafthorne
Contributor III

I think I am seeing something quite similar to this.  

I seem to have eth1 working happily under a recent build of the fsl community code.  When I try to use eth0 and eth2 they do not seem to send or receive any packets.  I must have a weird bit of config somewhere causing this.  

I can use ifconfig to assign IP addresses to any interface.  I can take eth1 and eth2 up and down and see messages such as (when a cable is connected): 

root@ls1021atwr:/# ifconfig eth2 up
root@ls1021atwr:/# libphy: mdio@2d24000:01 - Link is Up - 1000/Full

Remove cable from eth2 and plug it into eth1

libphy: mdio@2d24000:01 - Link is Down
libphy: mdio@2d24000:00 - Link is Up - 1000/Full

Remove cable from eth1 and plug into eth0

# libphy: mdio@2d24000:00 - Link is Down
libphy: mdio@2d24000:02 - Link is Up - 1000/Full

I have checked that SW3[5] is off.  

0 Kudos

1,309 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Thomas Thorne,

Please check whether eTSEC1, eTSEC2 and eTSEC3 can work under u-boot?

If no, please provide u-boot log including RCW.

If yes, please provide Linux Kernel git adress(commit ID), dts and Kernel configuration file.

Do you use LS1021 CPU 1.0 or 2.0?

It's better to create new thread to describe your problem more clearly.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,309 Views
tafthorne
Contributor III

As request I have opened https://community.nxp.com/message/835324  to further discuss my particular problem. 

0 Kudos

1,309 Views
bastian_schick
Contributor IV

Same here: ETH1 and ETH2 (eTSEC2, eTSEC3) work. ETH0 does auto-negotiate but no ping.

0 Kudos

1,309 Views
paulhickman
Contributor I

Did you ever manage to resolve this issue and get eTSEC1 working again? As i'm having a similar problems...

Paul

0 Kudos