Debian下安装Boardcom网卡驱动
2015-08-04 11:37:42 阿炯

Debian从第6版开始,内核便成为彻底自由软件,发行版本中不在包含闭源代码,所以硬件的驱动在使用上就不在那么顺利了。在安装时系统会提示插入包含对应驱动软盘或U盘。比如在dell r710的机器安装debian 8时,就会要求博通的网卡驱动:

firmware:failed to load bnx2/bnx2-mips-09-6.2.1b.fw (-2)

解决的方法有两种:

一、跳过直接安装,系统安装好后在解决。或者从debian网站上下载对应的软件包(http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/),放入u盘后继续安装。

驱动包:http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/jessie/current/firmware.tar.gz

将firmware.tar.gz解包放入u盘,安装程序会自动搜索并安装,或在安装好系统后挂载u盘调用dpkg进行安装。与此相应的办法还可以将原iso中的内核初始文件:initrd.gz进行修改,打入对应的驱动程序,可参考:Dell PowerEdge n950服务器下安装debian5 lenny解决Broadcom 57系列网卡驱动(bnx2)


二、使用包含了非开源硬件驱动镜像
Unofficial non-free images including firmware packages.

可以从这里进行下载,http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/

U盘安装 Debian
U盘资料备份好,iso文件准备好,确定U盘设备号,假定为/dev/sdc,则使用命令:
dd if=<file> of=/dev/sdc bs=4M; sync

(注意不是/dev/sdc1,否则会出现‘isolinux.bin missing or corrupt'错误)

参考命令:http://www.debian.org/CD/faq/index.en.html#write-usb

dd if=<file> of=<device> bs=4M; sync

参数说明:
<file> is the name of the input image, e.g. netinst.iso

<device> is the device matching the USB flash drive, e.g. /dev/sda, /dev/sdb. Be careful to make sure you have the right device name, as this command is capable of writing over your hard disk just as easily if you get the wrong one!

bs=4M tells dd to read/write in 4 megabyte chunks for better performance; the default is 512 bytes, which will be much slower.

The sync is to make sure that all the writes are flushed out before the command returns.

参考来源

Firmware