AnsweredAssumed Answered

imx6ul eth work abnormal

Question asked by zhangbin.eos@foxmail.com on Apr 16, 2019
Latest reply on Apr 19, 2019 by Rakesh Patel

hi,

my board is imx6ul-14x14-evk, BSP is L4.1.15_2.0.0

 

I did not modify the hardware and device tree,but when I use the ETH0 and ETH1,there are some problems.

No1. my default ip  as follow: 

root@imx6ulevk:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:91:FC:66
inet addr:192.168.1.39 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fe91:fc66%1995724496/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2640 (2.5 KiB) TX bytes:586 (586.0 B)

eth1 Link encap:Ethernet HWaddr 00:04:9F:04:EE:F9
inet addr:192.168.2.39 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::204:9fff:fe04:eef9%1995724496/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2640 (2.5 KiB) TX bytes:586 (586.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%1995724496/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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)

In PC, 

ping 192.168.1.39  is ok

ping 192.168.2.39  is ok

 

when insert eth0 ,unplug eth1,in pc :

ping 192.168.1.39  is ok

ping 192.168.2.39  is ok

when unplug eth0 ,insert eth1,in pc :

ping 192.168.1.39  is error

ping 192.168.2.39  is error

 

No2.

When I set eth0/eth0 up and down ,print as follow,

root@imx6ulevk:~# ifconfig eth0 down

root@imx6ulevk:~# ifconfig eth0 up
fec 20b4000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
root@imx6ulevk:~# fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx


root@imx6ulevk:~# ifconfig eth1 down
root@imx6ulevk:~# ifconfig eth1 up
fec 2188000.ethernet eth1: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:02, irq=-1)
root@imx6ulevk:~# fec 2188000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx

 

Is there a bug in the network in this version(4.1.15_2.0.0), and is replacing the new version helpful to this problem?

Outcomes