红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

Hoho~~~配置Ubuntu 2.6.35内核+BCM4312成功!

发布时间:2010-08-07 18:16:40来源:红联作者:rgwan
呵呵,编译内核成功进系统后,杯具了……………………、
一看NetworkManager,呵呵,无线认不到…………于是,跑到/usr/src/bcmwl-5.60.48.36+bdcom
然后make
但是事情没这么简单:
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-rgwan'
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/shared/linux_osl.o
gcc :linux/autoconf.h 没有这个目录或文件
make[2]: *** [ /usr/src/bcmwl-5.60.48.36+bdcom/src/shared/linux_osl.o] 错误 1
make[1]: *** [_module_/usr/src/bcmwl-5.60.48.36+bdcom] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-rgwan'
make: *** [all] 错误 2
然后find+cp大法。
root@rgwan-laptop:/usr/src# find . |grep autoconf.h
./linux-headers-2.6.32-24-generic/include/linux/autoconf.h
./linux-headers-2.6.35-rgwan/include/generated/autoconf.h
root@rgwan-laptop:/usr/src# cp ./linux-headers-2.6.35-rgwan/include/generated/*.h ./linux-headers-2.6.35-rgwan/include/linux/
呵呵,一次性解决所有问题,本以为OK了, 继续杯具……
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-rgwan'
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/shared/linux_osl.o
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.o
/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.c: In function ‘_wl_set_multicast_list’:
/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.c:1435: error: ‘struct net_device’ has no member named ‘mc_list’
/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.c:1435: error: ‘struct net_device’ has no member named ‘mc_count’
/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.c:1436: error: dereferencing pointer to incomplete type
/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.c:1442: error: dereferencing pointer to incomplete type
make[2]: *** [/usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.o] 错误 1
make[1]: *** [_module_/usr/src/bcmwl-5.60.48.36+bdcom] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-rgwan'
make: *** [all] 错误 2
汗,到网上下了最新的驱动+补丁。 搞定了!
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-rgwan'
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/shared/linux_osl.o
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_linux.o
CC [M] /usr/src/bcmwl-5.60.48.36+bdcom/src/wl/sys/wl_iw.o
LD [M] /usr/src/bcmwl-5.60.48.36+bdcom/wl.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/bcmwl-5.60.48.36+bdcom/wl.o
see include/linux/module.h for more information
CC /usr/src/bcmwl-5.60.48.36+bdcom/wl.mod.o
LD [M] /usr/src/bcmwl-5.60.48.36+bdcom/wl.ko
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-rgwan'
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# sudo cp -rf wl.ko /lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/
cp: 无法创建普通文件"/lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/": 没有那个文件或目录
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# sudo cp -rf wl.ko /lib/modules/2.6.35-rgwan/kernel/drivers/net/wireless/
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# depmod
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# sudo modprobe wl
root@rgwan-laptop:/usr/src/bcmwl-5.60.48.36+bdcom# lsmod |grep wl
wl 1959597 0
lib80211 5026 2 lib80211_crypt_tkip,wl
文章评论

共有 3 条评论

  1. sclzwj 于 2010-08-08 13:22:07发表:

    恭喜恭喜

  2. cights 于 2010-08-08 08:26:59发表:

    发去贺电

  3. 王中云 于 2010-08-07 20:35:24发表:

    贺贺