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!
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!
当然。
有时可以设置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