deepin2014编译安装3.14.1内核,重启后无法驱动无线网卡
Tofloor
poster avatar
Jangrui
deepin
2014-04-27 06:03
Author
deepin2014编译安装3.14.1内核,重启后无法驱动无线网卡

y410p 无线配置:
08:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)

试着去/urs/src/bcmwl-6.30.223.141+bdcom
  1. make && make install
Copy the Code
果然出错:
  1. KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
  2. make[1]: 正在进入目录 `/usr/src/linux-headers-3.13.0-24-generic'
  3. CFG80211 API is prefered for this kernel version
  4. Using CFG80211 API
  5.   CC [M]  /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.o
  6. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c: In function ‘wl_tkip_printstats’:
  7. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3246:7: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
  8.        wl->tkip_bcast_data[idx]);
  9.        ^
  10. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3246:7: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
  11. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3249:4: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
  12.     wl->tkipmodops->print_stats(debug_buf, wl->tkip_ucast_data);
  13.     ^
  14. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3249:4: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
  15. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c: In function ‘wl_reg_proc_entry’:
  16. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3470:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
  17.   if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
  18.   ^
  19. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3470:22: warning: assignment makes pointer from integer without a cast [enabled by default]
  20.   if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
  21.                       ^
  22. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3475:16: error: dereferencing pointer to incomplete type
  23.   wl->proc_entry->read_proc = wl_proc_read;
  24.                 ^
  25. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3476:16: error: dereferencing pointer to incomplete type
  26.   wl->proc_entry->write_proc = wl_proc_write;
  27.                 ^
  28. /usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.c:3477:16: error: dereferencing pointer to incomplete type
  29.   wl->proc_entry->data = wl;
  30.                 ^
  31. cc1: some warnings being treated as errors
  32. make[2]: *** [/usr/src/bcmwl-6.30.223.141+bdcom/src/wl/sys/wl_linux.o] 错误 1
  33. make[1]: *** [_module_/usr/src/bcmwl-6.30.223.141+bdcom] 错误 2
  34. make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-24-generic'
  35. make: *** [all] 错误 2
Copy the Code

有没有大神能帮忙解决哈,或者给点思路什么的。
Reply Favorite View the author
All Replies
woodelf
deepin
2014-04-27 06:20
#1
用make-kpkg来生成新内核和头文件的deb包,安装deb包时候dpkg会自动触发dkms的。
Reply View the author
Jangrui
deepin
2014-04-27 11:15
#2
用make-kpkg来生成新内核和头文件的deb包,安装deb包时候dpkg会自动触发dkms的。
十分感谢!
根据你的提示,
百度了一下make-kpkg,找到了下面这篇文章轻松解决了问题,
用make-kpkg简化Ubuntu系统的内核编译过程
http://www.cnblogs.com/wwang/archive/2011/01/07/1929486.html
Reply View the author
左心房的痛
deepin
2014-04-27 16:38
#3
3.15rc1内核表示没有问题
Reply View the author