当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 各位大侠 小弟求助 TP-LINK WN823N 无线网卡驱动make error的解决办法
帖子发表于 : 2014-07-13 12:18 

注册: 2014-07-13 11:51
帖子: 1
系统: ubuntu 14.04 LTS
送出感谢: 0 次
接收感谢: 0 次
新买的tp-link WN823N 无线USB网卡,
查看usb驱动为:
Bus 003 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
去realtek下载网卡驱动:
===================
Unix (Linux)
Description Version Update
Time File
Size Download
Site
1 Site
2 Site
3 Site
4 Site
5 Site
6

Linux Kernel 2.6.18~3.9

Android 1.6~2.3 and 4.0~4.2
4.0.2_9000 2013/10/29 9624k HK1 US1 US3 UK1 CN US2

===================

发现该驱动对linux的支持版本最高到3.9

小弟的内核版本:3.13.0-24-generic

于是心有余悸的尝试make驱动,果然报错:
==============================================
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.13.0-24-generic/build M=/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911 modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
CC [M] /home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o
/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: In function ‘rtw_proc_init_one’:
/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
…………………………………………
/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [_module_/home/SS/Downloads/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make: *** [modules] Error 2
====================================================================

google了半天,没有找到解决办法,请问有哪位大神可以助破?

先谢啦!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 各位大侠 小弟求助 TP-LINK WN823N 无线网卡驱动make error的解决办法
帖子发表于 : 2014-07-13 13:53 

注册: 2009-08-04 16:33
帖子: 16886
送出感谢: 21
接收感谢: 1826
引用:
RTL8192CU

1. http://wireless.kernel.org/en/users/Dri ... 9x#rtlwifi
Realtek 802.11n drivers
rtlwifi
rtl8192cu is a USB driver for RTL8192CU/RTL8188CU devices.
2. Firmware
The firmware for those devices can be downloaded from: http://git.kernel.org/?p=linux/kernel/g ... rmware.git
3. 如果還有問題
把下面指令 複製 貼進終端機 執行
3-0. uname -r
3-1. sudo lshw -numeric -class network
3-2. sudo ifconfig -a
3-3. sudo route -nv
3-4. sudo rfkill list all
3-5. sudo dhclient -v
把結果直接複製 貼上來


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 各位大侠 小弟求助 TP-LINK WN823N 无线网卡驱动make error的解决办法
帖子发表于 : 2015-06-01 17:48 

注册: 2011-07-04 17:44
帖子: 5
送出感谢: 0 次
接收感谢: 0 次
引用:
3. 如果還有問題
把下面指令 複製 貼進終端機 執行
3-0. uname -r
3-1. sudo lshw -numeric -class network
3-2. sudo ifconfig -a
3-3. sudo route -nv
3-4. sudo rfkill list all
3-5. sudo dhclient -v
把結果直接複製 貼上來

我的问题跟楼主基本一样,下面是基本信息和安装网卡驱动的报错信息:
网卡型号:Bus 002 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
安装驱动时报错信息:
代码:
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:637:7: error: dereferencing pointer to incomplete type
  entry->write_proc = proc_set_sreset;
       ^
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: At top level:
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: initialization from incompatible pointer type [enabled by default]
  .ndo_select_queue = rtw_select_queue,
  ^
/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o] 错误 1
make[1]: *** [_module_/home/root/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.16.0-30-generic'
make: *** [modules] 错误 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################


基本信息如下:

代码:
root@localhost:~# uname -r
3.16.0-30-generic

root@localhost:~# sudo lshw -numeric -class network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
       vendor: Realtek Semiconductor Co., Ltd. [10EC]
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 02
       serial: 00:1f:c6:ff:80:4b
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.31.149 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:42 ioport:e800(size=256) memory:febff000-febfffff memory:fdff0000-fdffffff memory:febc0000-febdffff
  *-network DISABLED
       description: Wireless interface
       physical id: 1
       bus info: usb@2:2
       logical name: wlan0
       serial: 14:cf:92:ac:73:d4
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=3.16.0-30-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn

root@localhost:~# sudo ifconfig -a
eth0      Link encap:以太网  硬件地址 00:1f:c6:ff:80:4b 
          inet 地址:192.168.31.149  广播:192.168.31.255  掩码:255.255.255.0
          inet6 地址: fe80::21f:c6ff:feff:804b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:31839 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:16722 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:36411318 (36.4 MB)  发送字节:1426984 (1.4 MB)

lo        Link encap:本地环回 
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  跃点数:1
          接收数据包:16 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:16 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0
          接收字节:1184 (1.1 KB)  发送字节:1184 (1.1 KB)

wlan0     Link encap:以太网  硬件地址 14:cf:92:ac:73:d4 
          BROADCAST MULTICAST  MTU:1500  跃点数:1
          接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:0 (0.0 B)  发送字节:0 (0.0 B)

root@localhost:~# sudo route -nv
内核 IP 路由表
目标            网关            子网掩码        标志  跃点   引用  使用 接口
0.0.0.0         192.168.31.1    0.0.0.0         UG    0      0        0 eth0
192.168.31.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
root@localhost:~# sudo rfkill list all
sudo:rfkill: command not found
root@localhost:~# sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1f:c6:ff:80:4b
Sending on   LPF/eth0/00:1f:c6:ff:80:4b
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x5bcdd223)
DHCPREQUEST of 192.168.31.149 on eth0 to 255.255.255.255 port 67 (xid=0x5bcdd223)
DHCPOFFER of 192.168.31.149 from 192.168.31.1
DHCPACK of 192.168.31.149 from 192.168.31.1
RTNETLINK answers: File exists
bound to 192.168.31.149 -- renewal in 225213 seconds.


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译