Centos6.4安装无线网卡驱动

大师兄在取经 2013-11-20 10:52:55
我装的是centos6.4 minimal版,差不多都准备好之后。上网找了TP-WN9271的网线网卡驱动源码,打算编译驱动模版,但是编译不成功。kernel-devel,kernel-headers,gcc都安装好了的。版本也对应...然后在http://wireless.kernel.org/en/users/Download/stable/#compat-wireless_3.0_stable_releases上找到我的网卡需要的驱动模块编译,发生以下错误。
系统内核版本是2.6.32-358.el6.x86_64.另外我在2.6.32-279xxxxx的内核上编译成功,也尝试过编译多个版本的驱动源代码,都不行。
编译出错提示如下:请各路大侠帮忙分析解决下,我找了好几天了,可是还是不行。
http://stackoverflow.com/questions/20055775/make-modules-error-2

In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:54,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.34.h:295:1: warning: "rcu_dereference_protected" redefined
In file included from include/linux/tracepoint.h:18,
from /home/software/compat-wireless-3.6.8-1/include/linux/tracepoint.h:19,
........<有省略>
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:103: error: redefinition of ‘kstrtou32_from_user’
include/linux/kernel.h:313: note: previous definition of ‘kstrtou32_from_user’ was here
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:108: error: redefinition of ‘kstrtos32_from_user’
include/linux/kernel.h:318: note: previous definition of ‘kstrtos32_from_user’ was here
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:60,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.0.h:119:1: warning: "kfree_rcu" redefined
In file included from include/linux/tracepoint.h:18,
from /home/software/compat-wireless-3.6.8-1/include/linux/tracepoint.h:19,
from include/linux/module.h:18,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:27,
from include/linux/if_ether.h:126,
from include/linux/netdevice.h:29,
from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.29.h:5,
from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:49,
from <command-line>:0:
include/linux/rcupdate.h:389:1: warning: this is the location of the previous definition
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:62,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.2.h:80: error: redefinition of ‘dma_zalloc_coherent’
include/linux/dma-mapping.h:171: note: previous definition of ‘dma_zalloc_coherent’ was here
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:63,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.3.h:36: error: redefinition of ‘skb_complete_wifi_ack’
include/linux/skbuff.h:2142: note: previous definition of ‘skb_complete_wifi_ack’ was here
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:19:1: warning: "wake_up_all_locked" redefined
In file included from include/linux/completion.h:11,
from include/linux/mm_types.h:12,
from include/linux/kmemcheck.h:4,
from include/linux/skbuff.h:18,
from include/linux/if_ether.h:126,
from include/linux/netdevice.h:29,
from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.29.h:5,
from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:49,
from <command-line>:0:
include/linux/wait.h:160:1: warning: this is the location of the previous definition
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:31,
from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:24: error: redefinition of ‘fault_in_multipages_writeable’
include/linux/pagemap.h:471: note: previous definition of ‘fault_in_multipages_writeable’ was here
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:51: error: redefinition of ‘fault_in_multipages_readable’
include/linux/pagemap.h:498: note: previous definition of ‘fault_in_multipages_readable’ was here
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.5.h:243: error: redefinition of ‘ether_addr_equal’
include/linux/etherdevice.h:185: note: previous definition of ‘ether_addr_equal’ was here
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:64,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:32: error: redefinition of ‘kmalloc_array’
include/linux/slab.h:220: note: previous definition of ‘kmalloc_array’ was here
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.4.h:87: error: redefinition of ‘eth_hw_addr_random’
include/linux/etherdevice.h:156: note: previous definition of ‘eth_hw_addr_random’ was here
In file included from /home/software/compat-wireless-3.6.8-1/include/linux/compat-2.6.h:66,
from <command-line>:0:
/home/software/compat-wireless-3.6.8-1/include/linux/compat-3.6.h:86: error: redefinition of ‘eth_random_addr’
include/linux/etherdevice.h:124: note: previous definition of ‘eth_random_addr’ was here
make[3]: *** [/home/software/compat-wireless-3.6.8-1/compat/main.o] Error 1
make[2]: *** [/home/software/compat-wireless-3.6.8-1/compat] Error 2
make[1]: *** [_module_/home/software/compat-wireless-3.6.8-1] Error 2
make: *** [modules] Error 2[/code]
...全文
237 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
大师兄在取经 2013-11-25
  • 打赏
  • 举报
回复
I Solved the problem after looking for so many documents.I find backports-3.12-1.tar.bz2 from kernel.org/pub/linux/kernel/projects/backports/stable/v3.12 and then "make deconfig-ath9k"、"make"、"make" is ok.Just this packge is ok after I try so many.

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧