免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8855 | 回复: 17

[硬件问题] x100e CentOS 6.3 i386 无线网卡驱动安装失败 [复制链接]

论坛徽章:
0
发表于 2012-10-18 02:07 |显示全部楼层
本帖最后由 lafot 于 2012-10-18 02:11 编辑

折腾两天了,笔记本(ThinkPadX100e)装了CentOS 6.3 ,但无线网卡驱动一直装不上,只好请求各路大侠了。

[root@localhost ~]# lspci | grep Network
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)


[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-279.11.1.el6.i686 #1 SMP Tue Oct 16 14:40:53 UTC 2012 i686 i686 i386 GNU/Linux

也到RTL官网下载了驱动,可是make的时候出错

[root@localhost tmp]# cd rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/
[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# make
make -C /lib/modules/2.6.32-279.11.1.el6.i686/build M=/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011 modules
make: *** /lib/modules/2.6.32-279.11.1.el6.i686/build: No such file or directory.  Stop.
make: *** [all] Error 2

补充下驱动包下的文件列表
[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# ls
base.c                         core.c    Kconfig   rc.h          rtl8192se
base.h                         core.h    Makefile  readme        stats.c
cam.c                          debug.c   pci.c     regd.c        stats.h
cam.h                          debug.h   pci.h     regd.h        wifi.h
compat                         efuse.c   ps.c      release_note
compat.h                       efuse.h   ps.h      rtl8192ce
compat-wireless-3.0-2.tar.bz2  firmware  rc.c      rtl8192d




Make失败,提示找不到文件或目录不存在,不知道这个问题怎么解决,看了些资料,有说重置下路径,可我是新手,不知道怎么下手,望给个完整解过程。

叩首了。

有相关的资料可以给我发邮件himmoo@gmail.com 万分感激。

论坛徽章:
0
发表于 2012-10-18 02:09 |显示全部楼层
补充下驱动包里的文件

[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# ls
base.c                         core.c    Kconfig   rc.h          rtl8192se
base.h                         core.h    Makefile  readme        stats.c
cam.c                          debug.c   pci.c     regd.c        stats.h
cam.h                          debug.h   pci.h     regd.h        wifi.h
compat                         efuse.c   ps.c      release_note
compat.h                       efuse.h   ps.h      rtl8192ce
compat-wireless-3.0-2.tar.bz2  firmware  rc.c      rtl8192de

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2012-10-18 07:52 |显示全部楼层
楼主先安装下kernel-devel包,然后再编译你的那个驱动看看,应该是内核开发包没安装造成的

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
发表于 2012-10-18 08:21 |显示全部楼层
把headers之类的全装上。

论坛徽章:
0
发表于 2012-10-18 12:19 |显示全部楼层
装了kernel-devel后make还是出错

[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# make
make -C /lib/modules/2.6.32-279.11.1.el6.i686/build M=/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.11.1.el6.i686'
  CC [M]  /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.o
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c: In function ‘rtl_action_proc’:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:861: error: ‘RX_FLAG_TSFT’ undeclared (first use in this function)
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:861: error: (Each undeclared identifier is reported only once
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.c:861: error: for each function it appears in.)
make[2]: *** [/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/base.o] Error 1
make[1]: *** [_module_/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.11.1.el6.i686'
make: *** [all] Error 2

论坛徽章:
0
发表于 2012-10-18 12:22 |显示全部楼层
[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# yum list kernel-headers
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.btte.net
Installed Packages
kernel-headers.i686                          2.6.32-279.11.1.el6                           @updates

kernel-headers好像也装了,还不行

论坛徽章:
0
发表于 2012-10-18 13:36 |显示全部楼层
[root@localhost rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011]# more readme
Release Date: 2011-12-30, ver 0005
Realtek Linux mac80211 based driver:
   --This driver supports follwing RealTek PCIE Wireless LAN NICs:
        RTL8188CE/RTL8192CE
        RTL8191SE/RTL8192SE
        RTL8192DE

   --This driver supports follwing Linux OS:
        Fedora Core
        Debian
        Mandriva
        Open SUSE
        Gentoo
        MeeGo
        android 2.2 (froyo-x86), etc.

   --This driver supports follwing kernel versions:
        1) kernel version >=2.6.35
           you can build & install drvier use II.


        2) kernel version [2.6.24, 2.6.34]
           you can build & install drvier use III.

可恶,发现这个驱动包竟然不支持CentOS ,如果要手动编译的话,能用不。求指点迷津!

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2012-10-18 13:47 |显示全部楼层
不支持就不好办了.你看看说明文件,里面还有没有别的提示

论坛徽章:
0
发表于 2012-10-18 14:09 |显示全部楼层
========================================================================================
                III. Compile & Installation & uninstall [2.6.24, 2.6.34]
========================================================================================
We don't support kernel 2.6.24-2.6.34 directly, Because there are
lots of issues in mac80211 from kernel 2.6.24-2.6.34,
So we suggest you to use the latest kernel >= 2.6.35.

but if you want to use our driver in an old kernel,
you can use compat-wireless. this methord can support all kernel
versions higher than 2.6.24, and you can use all functions
of our driver like you use it in the latest kernel version.

You can get more informations of compat-wireless from:
http://wireless.kernel.org/en/users/Download/stable

you should use the following commands to Compile, Installation, or uninstall the driver:

        1. Change to Super User
           sudo su

        2. install compat-wireless driver
           ./compat/script/compat-install.sh
                 
        3. reboot
           reboot

        4. uninstall driver
           ./compat/script/compat-uninstall.sh

        5. you can get more information form follwing webset for how to use compat-wireless:
           http://wireless.kernel.org/en/users/Download/stable
          
NOTICE:
        1. Maybe you can not use other vendors wireless after you install compat wireless,
           in this situation, you can uninstall compat-wireless use step 4 to recover it.

        2. This install methord can support all versions of kernel, not just 2.6.24-2.6.34,
           you can also use it in the kernel higher than 2.6.35.



用第三种方式安装了,到后面还是不行错误部分如下:

也reboot过了,还需要怎么操作才能加载到无线网卡吗?


make -C /lib/modules/2.6.32-279.11.1.el6.i686/build M=/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.11.1.el6.i686'
  CC [M]  /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/compat/main.o
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:28,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.33.h:52:1: warning: "IFF_DONT_BRIDGE" redefined
In file included from include/linux/netdevice.h:28,
                 from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.29.h:5,
                 from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:24,
                 from <command-line>:0:
include/linux/if.h:83:1: warning: this is the location of the previous definition
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:28,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.33.h:56:1: warning: "NETDEV_POST_INIT" redefined
In file included from include/linux/memory_hotplug.h:6,
                 from include/linux/mmzone.h:689,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 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 /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.29.h:5,
                 from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:24,
                 from <command-line>:0:
include/linux/notifier.h:210:1: warning: this is the location of the previous definition
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:28,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.33.h:58: error: redefinition of ‘netdev_alloc_skb_ip_align’
include/linux/skbuff.h:1582: note: previous definition of ‘netdev_alloc_skb_ip_align’ was here
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.33.h:121: error: redefinition of ‘pci_pcie_cap’
include/linux/pci.h:1465: note: previous definition of ‘pci_pcie_cap’ was here
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.33.h:132: error: redefinition of ‘pci_is_pcie’
include/linux/pci.h:1565: note: previous definition of ‘pci_is_pcie’ was here
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:29,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.34.h:23: error: redefinition of ‘netdev_name’
include/linux/netdevice.h:2403: note: previous definition of ‘netdev_name’ was here
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:29,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.34.h:134:1: warning: "netif_vdbg" redefined
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.29.h:5,
                 from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:24,
                 from <command-line>:0:
include/linux/netdevice.h:2516:1: warning: this is the location of the previous definition
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:29,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.34.h:211:1: warning: "sysfs_bin_attr_init" redefined
In file included from include/linux/kobject.h:21,
                 from include/linux/module.h:16,
                 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 /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.29.h:5,
                 from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:24,
                 from <command-line>:0:
include/linux/sysfs.h:94:1: warning: this is the location of the previous definition
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.34.h:232: error: redefinition of ‘dma_set_coherent_mask’
include/linux/dma-mapping.h:130: note: previous definition of ‘dma_set_coherent_mask’ was here
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:30,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.35.h:36: error: redefinition of ‘usb_pipe_endpoint’
include/linux/usb.h:1599: note: previous definition of ‘usb_pipe_endpoint’ was here
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:31,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.36.h:17: error: redefinition of ‘struct va_format’
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.36.h:99: error: redefinition of ‘no_printk’
include/linux/kernel.h:341: note: previous definition of ‘no_printk’ was here
In file included from /var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.h:32,
                 from <command-line>:0:
/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/include/linux/compat-2.6.37.h:23: error: redefinition of ‘skb_checksum_none_assert’
include/linux/skbuff.h:2324: note: previous definition of ‘skb_checksum_none_assert’ was here
make[3]: *** [/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/compat/main.o] Error 1
make[2]: *** [/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2/compat] Error 2
make[1]: *** [_module_/var/tmp/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011/compat-wireless-3.0-2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.11.1.el6.i686'
make: *** [modules] Error 2

success install driver rtlwifi in compat-wireless, you can use driver after reboot

论坛徽章:
0
发表于 2012-10-18 14:12 |显示全部楼层
不会要uninstall 再重新install吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2021中国系统架构师大会

【数字转型 架构重塑】2021年5月20日-22日第十三届中国系统架构师大会将在云端进行网络直播。

大会为期3天的议程,涉及20+专场,近120个主题,完整迁移到线上进行网络直播对会议组织来说绝非易事;但考虑到云端会议的直播形式可以实现全国各地技术爱好者的参与,也使ITPUB作为技术共享交流平台得到更好的普及,我们决定迎难而上。
http://sacc.it168.com/


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP