嵌入式爱好者

查看: 20094|回复: 2

[Linux] 网卡eth0无法启用

[复制链接]

2

主题

3

帖子

20

积分

XX18通行证

扫一扫,手机访问本帖
发表于 2021-5-26 15:24:54 | 显示全部楼层 |阅读模式
本帖最后由 XLTX 于 2021-5-26 15:24 编辑

首先我查看网络信息发现eth0并未启动
# ifconfig
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:16436  Metric:1
          RX packets:130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:421536 (411.6 KiB)  TX bytes:421536 (411.6 KiB)
尝试查看所有的网卡信息
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 1E:C6:7C:5C:64:25
          inet addr:192.168.1.163  Bcast:192.168.1.255  Mask:255.255.255.0
          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)
          Interrupt:48

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
          NOARP  MTU:1452  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:16436  Metric:1
          RX packets:130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:421536 (411.6 KiB)  TX bytes:421536 (411.6 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

尝试启动eth0
# ifconfig eth0 up
[ 1715.953000] eth0: device MAC address 1e:c6:7c:5c:64:25
[ 1716.047000] nxpmac_hw_setup: DMA engine initialization failed
[ 1716.053000] stmmac_open: Hw setup failed
ifconfig: SIOCSIFFLAGS: Device or resource busy
@飞凌-chongzi @飞凌-peacelove



我应该如何解决?


回复

使用道具 举报

0

主题

123

帖子

214

积分

发表于 2021-6-10 11:37:03 | 显示全部楼层
看信息是mac损坏了
点评回复 支持 反对

使用道具 举报

2

主题

3

帖子

20

积分

XX18通行证

 楼主| 发表于 2021-6-13 16:33:14 | 显示全部楼层
我送售后了,发现是核心板和底板接触不良
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-9-8 10:21

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表