AnsweredAssumed Answered

i.MX6 Ethernet not working, but acts like it is

Question asked by jsmith883 on Dec 14, 2016
Latest reply on Dec 15, 2016 by jsmith883

Hello,

 

We have a custom board that was copied from the sabresd board.  Ethernet appears to be working, the interface is created, but dhcp does not work.  After a few seconds, it assigns a strange default IP address, so using connman I set a static IP address to match our network.  I am unable to ping anything, but ifconfig tells me that there are no errors or dropped packets, and are a lot of received packets as well.

 

The ethernet section of the device tree is identical to the sabresd.dtsi file, so I don't think that it's that.  If I unplug the ethernet cable, it recognizes that it's unplugged, and when I plug it back in it sees that too.  The only thing that I can think of is that the first line says the supply phy was not found, using dummy regulator.  Do I need to set this somewhere?  Any thoughts on what might be wrong?  Thanks!

 

root@linux:~# dmesg | grep eth
[ 1.962677] 2188000.ethernet supply phy not found, using dummy regulator
[ 1.973282] fec 2188000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00
[ 1.980977] fec 2188000.ethernet (unregistered net_device): Using random MAC address: 16:ed:bf:c6:e0:f1
[ 2.073272] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
[ 2.084442] fec 2188000.ethernet eth0: registered PHC device 0
[ 11.152787] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 13.223638] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
[ 13.234979] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 46.223241] libphy: 2188000.ethernet:01 - Link is Up - 1000/Full
[ 46.227988] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

 

root@linux:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 16:ed:bf:c6:e0:f1
inet addr:10.10.10.60 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::14ed:bfff:fec6:e0f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:4593 errors:0 dropped:0 overruns:0 frame:0
TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1150695 (1.0 MiB) TX bytes:14330 (13.9 KiB)

Outcomes