首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux中使用broadcom型号卡下网

2012-09-07 
linux中使用broadcom型号卡上网确认下网卡型号:sanshang@ubuntu:~$ lspci | grep -i network06:00.0 Netwo

linux中使用broadcom型号卡上网
确认下网卡型号:
sanshang@ubuntu:~$ lspci | grep -i network
06:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)

1、进入http://www.broadcom.com/support/802.11/linux_sta.php下载驱动,我选择的是32-bit driver;
新建目录,解压文件
# mkdir hybrid_wl
# cd hybrid_wl
# tar xzf /home/sanshang/Downloads/hybrid-portsrc-x86_32-v5.10.91.9.3.tar.gz

2. Build the driver as a Linux loadable kernel module (LKM):

# make clean   (optional)
# make

When the build completes, it will produce a wl.ko file in the top level
directory.

3: Remove any other drivers for the Broadcom wireless.

There are several open source drivers that are used to drive Broadcom 802.11
chips such as b43 and ssb. If any of these are present they need to be removed before this
driver can be installed.  Any previous revisions of the wl driver also need to
be removed.

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

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

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

4: Insmod the driver.

If you were already running a previous version of wl, you'll want to provide a
clean transition from the older driver. (The path to previous driver is usually
/lib/modules/<kernel-version>/kernel/net/wireless)

# rmmod wl
# mv <path-to-prev-driver>/wl.ko <path-to-prev-driver>/wl.ko.orig
# cp wl.ko <path-to-prev-driver>/wl.ko
# depmod
# modprobe wl

Otherwise, if you have not previously installed a wl driver do this:
如果没有,就直接执行下面的命令:
# modprobe lib80211
# 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.

按照readme中的步骤就可以安装完成,但是每次系统启动的时候不会自动加载,那么就需要将wl.ko拷贝到:
/lib/modules/2.6.31-14-generic/kernel/net/wireless/
目录,然后在/etc/rc.local加入:
modprobe -r ssb
modprobe wl
or
modprobe lib80211
insmod /lib/modules/2.6.31-14-generic/kernel/net/wireless/wl.ko
这样就可以了

激活网卡驱动
系统管理--硬件驱动--Broadcom STA无线驱动

解决QQ掉线
sudo gedit /usr/bin/qq
此为打开编辑命令,打开后显示:
#!/bin/sh
cd /usr/share/tencent/qq/
./qq
在中间加入一句即可
#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /usr/share/tencent/qq/
./qq

升级后启动不了的解决办法:
grub>ls
grub>ls (hd0,7)/             #找出WUBI安装的盘,里面有ubuntu/这个目录。
grub>insmod ntfs           #加载ntfs模块,因为WUBI将ubuntu安装到了我分的ntfs盘上
grub>set root=(hd0,7)    #这里(hd0,7)就是我找到的ubuntu安装的分区
grub>ls $Boot                   #找到我们BOOT分区的UUID,下一步要用到,我这里显示出来的是2250018e50016a3d
grub>search --no-floppy --fs-uuid --set f2250018e50016a3d    #这里的UUID就是上一定找出来的那个
grub>loopback loop0 /ubuntu/disks/root.disk   #设loop0,WUBI装ubuntu安装成了一个root.disk文件
grub>set root=(loop0)       #重设root
grub>linux /boot/vmlinuzxxxxxxxxx   (tab补全即可,有2个,14和19,补全14的那个,注意文件名要完整) root=/dev/sda7 loop=/ubuntu/disks/root.disk ro quiet splash    #加载内核,sda7对应就是(hd0,7)
grub>initrd /boot/initrd.imgxxxxxxxxxxxx(tab 补全即可,同样选14的那个)                    #不用说大家都知道
gurb>boot

ENTER就可以启动了。进入熟悉的系统,打开终端
代码:
首先切换到root用户,sudo -s -H
#update-grub2
#reboot

热点排行