联想Y430P 下为 Ubuntu 安装无线网络

在Lenovo Y430P上安装 UbuantuKylin 14.04之后,发现无线网络无法使用。需要安装无线驱动程序

但估计以下步骤适用于大多数Linux。


1, 查看当前的网卡类型

# sudo lshw -c network

可以发现当前的网卡设备是  product: BCM43142

也就是Broadcom的网卡

2, 从Broadcom 官方网站下载驱动程序

http://www.broadcom.com/support/802.11/linux_sta.php

3, 严格按照网站README的文档进行驱动安装

http://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt

我遵循了其中的 Fresh installation步骤。注意所有命令要用sudo获取权限

Fresh installation:
------------------
1: Remove any other drivers for the Broadcom wireless device.

There are several other drivers (besides this one) that can drive 
Broadcom 802.11 chips. These include b43, brcmsmac, bcma and ssb. They will
conflict with this driver and need to be uninstalled before this driver
can be installed.  Any previous revisions of the wl driver also need to
be removed.

Note: On some systems such as Ubuntu 9.10, the ssb module may load during
boot even though it is blacklisted (see note under Common Issues on how to
resolve this. Nevertheless, ssb still must be removed
(by hand or script) before wl is loaded. The wl driver will not function 
properly if ssb the module is loaded.

# lsmod  | grep "brcmsmac\|b43\|ssb\|bcma\|wl"

If any of these are installed, remove them:
# rmmod b43
# rmmod brcmsmac
# rmmod ssb
# rmmod bcma
# rmmod wl

To blacklist these drivers and prevent them from loading in the future:
# echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist brcmsmac" >> /etc/modprobe.d/blacklist.conf

2: Insmod the driver.

Otherwise, if you have not previously installed a wl driver, you'll need
to add a security module before using the wl module.  Most newer systems 
use lib80211 while others use ieee80211_crypt_tkip. See which one works for 
your system.

# modprobe lib80211 
  or 
# modprobe ieee80211_crypt_tkip

If your using the cfg80211 version of the driver, then cfg80211 needs to be
loaded:

# modprobe cfg80211

Then:
# insmod wl.ko

wl.ko is now operational.  It may take several seconds for the Network 
Manager to notice a new network driver has been installed and show the
surrounding wireless networks.

无线网络应该几分钟后就会出现在又上方的提示图标中


4, 但是这样并不完全,因为重新启动之后无线网络配置有没有了,这就要修改启动镜像文件initrd.img

1)备份一下镜像文件

#sudo cp /boot/initrd.img-`uname -r` YourDirectoryName

2)按照当前配置更新initrd.img

#sudo update-initramfs -u

3)将驱动从程序拷贝到driver相应的目录下面

#sudo cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless sudo depmod -a

4)接着把wl模块加入到启动模块中,即在/etc/modules文件最后加入wl

#sudo cp wl.ko /etc/modules

5)重新生成一下模块依赖

#sudo depmod -a

这样就可以了。


参考文档:

http://jingyan.baidu.com/article/ed2a5d1f3e0ed209f7be1779.html







你可能感兴趣的:(linux,安装,网络,ubuntu,网卡驱动)