kernel 启动后没有eth0
来源:互联网 发布:中昌数据股票千股千评 编辑:程序博客网 时间:2024/05/16 17:57
最近做视频电话项目,用mx515 CPU,以前编译的kernel启动从来问题,
可进来发现,启动之后ifconfig 发现没有eth0,执行以下命令:
#ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:280 (280.0 B) TX bytes:280 (280.0 B)
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
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)
Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:455 (455.0 B) TX bytes:455 (455.0 B)
很是郁闷,回头看看fec启动log信息,发现:
FEC ENET Version 0.2
fec: PHY @ 0x2, ID 0x0007c0f1 -- LAN8710
eth0: ethernet 00:00:00:00:00:00
原来是MAC地址为0所致,解决方法可以在kernel下用命令:
方法1:
# ifconfig eth0 hw ether 00:04:9f:00:ea:09
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1855 (1.8 KiB) TX bytes:1855 (1.8 KiB)
# ifconfig eth0 up
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9F:00:EA:09
UP BROADCAST RUNNING 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)
Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2030 (1.9 KiB) TX bytes:2030 (1.9 KiB)
#
已经可以了。
方法2:
在uboot启动时设置mac 地址,下面是针对FEC的MAC地址,
vdphone U-Boot > set fec_addr 00:04:9f:00:ea:09
vdphone U-Boot > save
- kernel 启动后没有eth0
- CentOS6.0安装后没有eth0网卡
- ubuntu早期版本克隆后没有eth0
- gentoo启动后不显示网卡eth0
- 移植完linux-3.4.2内核,启动系统后使用命令ifconfig -a查看网络配置,没有eth0
- ubuntu12.04克隆后没有cannot find device eth0
- ifconfig eth0 后开发板没有显示ip地址
- 虚拟机安装完成后,ifconfig,没有显示eth0网卡
- Linux Minimal安装后没有找到网卡eth0
- Linux VMware 克隆后无法启动eth0网卡
- Linux kernel起来后Android启动过程
- Oracle8i启动后数据库没有启动
- hadoop集群启动后没有启动namenode
- ubuntu 没有eth0怎么办
- linux没有 eth0
- ifconfig没有eth0解决办法
- ifconfig 没有eth0
- virtualbox 中没有eth0
- 用jQuery实现图片预加载和等比例缩小,大图可以点击关闭
- 五年经验跳槽历程
- C++操作符重载
- c++的引用和指针
- x264源代码分析
- kernel 启动后没有eth0
- TOJ 1009. Sticks 【搜索+剪枝】
- NO.6:VBS--识别你的电脑性别
- 又见方大同
- VC6.0 安装 与 IMSCUI.DLL 冲突
- 一些小知识点
- Java与模式:适配器模式
- 将数转化成西方数的表示形式
- 李嘉诚先生给年轻人的忠告