eth0 not showing up in linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

eth0 not showing up in linux

3,056 次查看
ponguru_s
Contributor III

In the morty image for i.MX6q board, ifconfig is not showing eth0.

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:7376 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560480 (547.3 KiB)  TX bytes:560480 (547.3 KiB)

When I use ifconfig eth0 up, the following is the log I'm getting.

eth0      Link encap:Ethernet  HWaddr 00:04:9f:03:5a:80  
          inet6 addr: fe80::204:9fff:fe03:5a80/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2508 (2.4 KiB)  TX bytes:2284 (2.2 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:8336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:633440 (618.5 KiB)  TX bytes:633440 (618.5 KiB)

This is not listing any ip address. I want to configure my device to another address of the range 10.18.*.*. Using ifconfig eth0 10.18.0.123, I'm able to set the IP address. But, I'm unable to ping google.com.

Also, there is no /etc/network/interfaces available. I've gone through certain links which mentioned about /etc/udev/rules.d/70-persistent stuff. But I couldn't find such file.

Please tell me how to set an IP, with which I can access the internet, within 10.18.*.* range.

0 项奖励
回复
3 回复数

2,159 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Surendranath,

are you using a custom board, this may be caused by the device tree or the driver not matching the hardware.

Carlos

0 项奖励
回复

2,159 次查看
ponguru_s
Contributor III

Hi Carlos,

I'm using the evaluation board of i.MX6Q.

BTW, can you please provide the steps to build morty image, if possible?

Thank you,

Surendranath.

0 项奖励
回复

2,159 次查看
Carlos_Musich
NXP Employee
NXP Employee

Please note that there are BSPs for i.MX processors developed by NXP and there are also BSPs created by a community external to NXP such as the one you are referring to.

You can find the NXP BSPs releases here: git.freescale.com > fsl-arm-yocto-bsp.git

On the other hand the BSPs releases developed by the external community can be found here: https://github.com/Freescale/

NXP provides support of the BSPs developed by NXP, but unfortunately the releases of the external community are out of our scope.

If you need support on any of the community's releases you may subscribe the FSL Community BSP mailing list at freescale.github.io to talk directly with the developers and other users meta-freescale Info Page 

Regards,

Carlos

0 项奖励
回复