imx6ul网口不能通讯

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

imx6ul网口不能通讯

1,992 Views
longbin
Contributor II

NXP朋友好!

板子上有两个网口

在启动后ping不同电脑。我的电脑ip是192.168.0.48.我只是改动了dts文件,如下:
~JIIN{AYWT0ZB)Y%(09-14-08-44-37).png
改动前(能ping通):
3HL`L1C7@A~W`VTI(09-14-08-44-37).png
 
ifconfig信息:
eth0      Link encap:Ethernet  HWaddr 00:04:9f:04:46:b8  
          inet addr:192.168.0.150  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f02e:64ff:fe3a:501/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:29882 (29.1 KiB)

eth1      Link encap:Ethernet  HWaddr 00:04:9f:04:46:b9  
          inet addr:192.168.0.151  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1484 (1.4 KiB)  TX bytes:1484 (1.4 KiB)

root@imx6ul7d:~# fec 20b4000.ethernet eth0: Link is Down
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
fec 2188000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx
IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    
root@imx6ul7d:~# ping 192.168.0.48
PING 192.168.0.48 (192.168.0.48) 56(84) bytes of data.
From 192.168.0.150 icmp_seq=1 Destination Host Unreachable
From 192.168.0.150 icmp_seq=2 Destination Host Unreachable
From 192.168.0.150 icmp_seq=3 Destination Host Unreachable
0 Kudos
3 Replies

1,299 Views
longbin
Contributor II

非常感谢:Wigros Sun。我明白了。

0 Kudos

1,299 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi, longbin,

   On i.mx6ul, PHY1's ID(address) is 2; and PHY2's ID(addrees) is 1. In device tree, reg = <2> means PHY's ID is 2. So the value of reg is determined by hardware design of ethernet phy, see below:

PHY1: ID is 2. PHYADD[2:0]=010

pastedImage_1.png

PHY2: ID is 1. PHYAD[2:0]=001

pastedImage_23.png


Have a great day,
TIC  Weidong Sun

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

1,299 Views
longbin
Contributor II

这个板子是i.MX 6UltraLite EVK

0 Kudos