Linux 网卡 Can't load firmware
2015-04-27 by dongnan
环境
操作系统: RHEL 6.2 amd64
服务器型号: Dell R410
网卡型号: 板载集成 BCM5716
问题描述
重启服务器后无法启动网络,网络配置文件正确、查看网卡状态与驱动模块提示错误。
排错过程
只有回环IP地址
ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
网络配置文件正确
cat /etc/sysconfig/network-scripts/ifcfg-em1
重启网络无效
/etc/init.d/network restart
Device em1 does not seem to be present, delaying initialization
网卡状态与驱动无效
ethtool em1
ethtool -i em11
网卡类型
lspci | grep -i eth
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
驱动模块信息
modinfo bnx2 | head -n6
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/bnx2.ko
firmware: bnx2/bnx2-rv2p-09ax-6.0.17.fw
firmware: bnx2/bnx2-rv2p-09-6.0.17.fw
firmware: bnx2/bnx2-mips-09-6.2.1b.fw
firmware: bnx2/bnx2-rv2p-06-6.0.15.fw
firmware: bnx2/bnx2-mips-06-6.2.3.fw
重启系统
提示不能载入firmware "Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw" "
系统日志
Apr 21 15:40:23 P11 kernel: bnx2 0000:01:00.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36
Apr 21 15:40:23 P11 kernel: bnx2 0000:01:00.0: firmware: requesting bnx2/bnx2-mips-09-6.2.1b.fw
Apr 21 15:40:23 P11 kernel: bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"
解决办法
- 到相同的服务器拷贝
firmware
文件。 - 挂载U盘,
mount /dev/sdc1 /mnt/
- 拷贝文件,
cd /lib/firmware/bnx2 && cp /mnt/bnx2-mips-09-6.2.1b.fw .
- 重启系统,
sync && reboot
验证
网络恢复
ip addr show em1
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 84:2b:2b:70:21:fe brd ff:ff:ff:ff:ff:ff
inet 172.27.244.X/24 brd 172.27.244.255 scope global em1
inet6 fe80::862b:2bff:fe70:21fe/64 scope link
valid_lft forever preferred_lft forever