The config-file setting of /etc/network/interfaces for a nfs service on iMX6q suffering eth0 not working

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

The config-file setting of /etc/network/interfaces for a nfs service on iMX6q suffering eth0 not working

3,854 Views
yooliang
Contributor II

The config-file setting of /etc/network/interfaces for a nfs service on iMX6q,the platform sabre-auto can't start a eth0 when power in

and the commond $ifconfig typing it will return nothing.

root@imx6qsabreauto:~# ifconfig

root@imx6qsabreauto:~#

setting of /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.3.106

        netmask 255.255.255.0

        gateway 192.168.3.1

# 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

when I input ifconfig eth0 up

root@imx6qsabreauto:/etc/network# ifconfig eth0 up

fec 2188000.ethernet eth0: no PHY, assuming direct connection to switch

libphy: PHY fixed-0:00 not found

fec 2188000.ethernet eth0: could not attach to PHY

ifconfig: SIOCSIFFLAGS: No such device

and ifconfig eth0

root@imx6qsabreauto:/etc/network# ifconfig eth0  

eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:BC:A9 

          BROADCAST MULTICAST  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)

please tell me what shuold I change in this file.

Regard!

0 Kudos
7 Replies

1,801 Views
jimmychan
NXP TechSupport
NXP TechSupport

Would you tell me what you want to do?

Booting the board from NFS? if yes, please read the chapter 4.7.5 "Running the Linux image from NFS" in i.MX Linux User's guide.

0 Kudos

1,801 Views
yooliang
Contributor II

BSP

L3.14.52_1.1.0-ga

0 Kudos

1,801 Views
yooliang
Contributor II

hi jimmychan

I want to communicat the host and the board and in this paper I just would like to kown why the commond

$ ifconfig etn0 up

returns errors:

root@imx6qsabreauto:~# ifconfig eth0 up

fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_ad)

IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

and

root@imx6qsabreauto:~# ifconfig

what let ifconfig dont work

and

root@imx6qsabreauto:~# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:BC:A9 

          UP BROADCAST MULTICAST  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)

what should I do to finish ping

Regards!

0 Kudos

1,801 Views
jimmychan
NXP TechSupport
NXP TechSupport

Are you using a right image on the sabre-AI board? What BSP or board images are you using? Normally, the enet on sabre-AI board will work when you connect it to a router or any host.

0 Kudos

1,800 Views
yooliang
Contributor II

现在我仍然会遇到这个问题,没有解决正确的或者说正常的步骤应该怎样的,ping通主机的话.

如果能够给予解答,不胜感谢

0 Kudos

1,800 Views
jimmychan
NXP TechSupport
NXP TechSupport

how you connect your board and the host? if no DHCP, have you try to set an IP on your board manually?

0 Kudos

1,800 Views
yooliang
Contributor II

当然。

有时可以设置eth0

有时设置eth0:ifconfig eth0 192.168.3.15

就会出现

ifconfig: SIOCGIFFLAGS: No such device

或者

使用ifconfig eth0 up出现

fec 2188000.ethernet eth0: no PHY, assuming direct connection to switch

libphy: PHY fixed-0:00 not found

fec 2188000.ethernet eth0: could not attach to PHY

ifconfig: SIOCSIFFLAGS: No such device

0 Kudos