AnsweredAssumed Answered

eth0 not working on SABRE-SD

Question asked by Alvaro Martinez on Jul 6, 2015
Latest reply on Oct 4, 2016 by Hanseung Lee

Dear all,

I can not communicate via ethernet with the iMX6 SABRE for Smart Devices. I have been working with some other iMX6 boards before and I am following the same procedure:

In my laptop running ubuntu 14.04 I have a static IP address 192.168.0.50

and the /etc/network/interfaces file in the iMX6 board is:

 

root@imx6qsabresd:~# cat /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

 

# The loopback interface

auto lo

iface lo inet loopback

 

# Wireless interfaces

#iface wlan0 inet dhcp

#       wireless_mode managed

#       wireless_essid any

#       wpa-driver wext

#       wpa-conf /etc/wpa_supplicant.conf

 

#iface atml0 inet dhcp

 

# Wired or wireless interfaces

auto eth0

iface eth0 inet static

        address 192.168.0.30

        netmask 255.255.255.0

        gateway 192.168.0.1

 

#iface eth1 inet dhcp

 

# Ethernet/RNDIS gadget (g_ether)

# ... or on host side, usbnet and random hwaddr

#iface usb0 inet static

#       address 192.168.7.2

#       netmask 255.255.255.0

#       network 192.168.7.0

#       gateway 192.168.7.1

 

# Bluetooth networking

#iface bnep0 inet dhcp

 

 

As you can see, I have disabled everything except for the eth0 configuration, just to be sure there are no additional conflicts.However, after rebooting, the ifconfig config doesn't recognize the eth0 setting in /etc/network/interfaces:

 

root@imx6qsabresd:~# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:9F:FD

          inet addr:169.254.193.228  Bcast:169.254.255.255  Mask:255.255.0.0

          inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:9835 (9.6 KiB)

 

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:10 errors:0 dropped:0 overruns:0 frame:0

          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

 

If I do configure it manually, eth0 link is not working properly:

 

root@imx6qsabresd:~# ifconfig eth0 down

root@imx6qsabresd:~# IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

 

root@imx6qsabresd:~# ifconfig eth0 192.168.0.30 netmask 255.255.255.0 up

fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)

root@imx6qsabresd:~# IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

libphy: 2188000.ethernet:01 - Link is Up - 1000/Full

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

 

root@imx6qsabresd:~# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:9F:FD

          inet addr:192.168.0.30  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:21095 (20.6 KiB)

 

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:10 errors:0 dropped:0 overruns:0 frame:0

          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

 

Any suggestion? It is really weird for me (I am not a linux expert at all!)

I don't know what I am missing ....

 

Thank you very much for your feedback!

 

Mensaje editado por: Alvaro Martinez

Outcomes