安装磊科NW338无线网卡失败!
Tofloor
poster avatar
hawyy
deepin
2012-01-07 02:03
Author
今天为我的LD 11.12安装磊科NW338(瑞昱8188CU芯片)驱动,在make时报错:

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.0.0-14-generic/build M=/home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625  modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.0.0-14-generic'
  CC [M]  /home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/cmd/rtl871x_cmd.o
In file included from /home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/include/drv_types.h:58:0,
                 from /home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/cmd/rtl871x_cmd.c:22:
/home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/include/rtl871x_io.h:17:28: 致命错误: linux/smp_lock.h:没有那个文件或目录
编译中断。
make[2]: *** [/home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/cmd/rtl871x_cmd.o] 错误 1
make[1]: *** [_module_/home/anway/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.20100625] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.0.0-14-generic'
make: *** [modules] 错误 2

看不懂问题出在哪里,请高人指点!谢谢!
Reply Favorite View the author
All Replies
s.******[email protected]
deepin
2012-01-07 09:03
#1
下载这个文件smp_lock.h.zip解压缩,然后把smp_lock.h放到

/usr/src/linux-headers-你的内核版本/include/linux/
/usr/src/linux-headers-你的内核版本-generic/include/linux/

这两个文件夹下。
Reply View the author
hawyy
deepin
2012-01-10 21:30
#2
按版主所说,执行后运行make,报错,内容如下:

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.0.0-14-generic/build M=/home/anway/8188/driver/r8188  modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.0.0-14-generic'
  CC [M]  /home/anway/8188/driver/r8188/cmd/rtl871x_cmd.o
  CC [M]  /home/anway/8188/driver/r8188/cmd/rtl8712_cmd.o
  CC [M]  /home/anway/8188/driver/r8188/crypto/rtl871x_security.o
  CC [M]  /home/anway/8188/driver/r8188/debug/rtl871x_debug.o
  CC [M]  /home/anway/8188/driver/r8188/eeprom/rtl871x_eeprom.o
  CC [M]  /home/anway/8188/driver/r8188/efuse/rtl8712_efuse.o
  CC [M]  /home/anway/8188/driver/r8188/hal/rtl8712/hal_init.o
  CC [M]  /home/anway/8188/driver/r8188/hal/rtl8712/usb_ops.o
  CC [M]  /home/anway/8188/driver/r8188/hal/rtl8712/usb_ops_linux.o
  CC [M]  /home/anway/8188/driver/r8188/hal/rtl8712/usb_halinit.o
  CC [M]  /home/anway/8188/driver/r8188/io/rtl871x_io.o
  CC [M]  /home/anway/8188/driver/r8188/io/rtl8712_io.o
  CC [M]  /home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_query.o
  CC [M]  /home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_set.o
  CC [M]  /home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_linux.o
/home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_linux.c: 在函数‘translate_scan’中:
/home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_linux.c:463:1: 警告: 栈帧有 1028 字节,超过了 1024 字节 [-Wframe-larger-than=]
  CC [M]  /home/anway/8188/driver/r8188/ioctl/rtl871x_ioctl_rtl.o
  CC [M]  /home/anway/8188/driver/r8188/led/rtl8712_led.o
  CC [M]  /home/anway/8188/driver/r8188/mlme/ieee80211.o
  CC [M]  /home/anway/8188/driver/r8188/mlme/rtl871x_mlme.o
  CC [M]  /home/anway/8188/driver/r8188/mp/rtl871x_mp.o
  CC [M]  /home/anway/8188/driver/r8188/mp/rtl871x_mp_ioctl.o
  CC [M]  /home/anway/8188/driver/r8188/os_dep/linux/io_linux.o
  CC [M]  /home/anway/8188/driver/r8188/os_dep/linux/xmit_linux.o
  CC [M]  /home/anway/8188/driver/r8188/os_dep/linux/cmd_linux.o
  CC [M]  /home/anway/8188/driver/r8188/os_dep/linux/mlme_linux.o
  CC [M]  /home/anway/8188/driver/r8188/os_dep/linux/recv_linux.o
  CC [M]  /home/anway/8188/driver/r8188/os_intf/osdep_service.o
/home/anway/8188/driver/r8188/os_intf/osdep_service.c: 在函数‘_rtl_rwlock_init’中:
/home/anway/8188/driver/r8188/os_intf/osdep_service.c:302:2: 错误: 隐式声明函数‘init_MUTEX’ [-Werror=implicit-function-declaration]
cc1:有些警告被当作是错误

make[2]: *** [/home/anway/8188/driver/r8188/os_intf/osdep_service.o] 错误 1
make[1]: *** [_module_/home/anway/8188/driver/r8188] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.0.0-14-generic'
make: *** [modules] 错误 2

不过重启后系统自动识别该无线网卡并能正常使用,呵呵,见鬼!
Reply View the author
hawyy
deepin
2012-01-10 23:29
#3
还是不稳定,待机后重新进入系统,无线网卡又不能用了!注销也一样!
Reply View the author