红联Linux门户
Linux帮助

红旗linux 6.0 无法安装无线网卡,请高手协助!

发布时间:2008-04-20 19:20:21来源:红联作者:slam951
电脑安装了WIN XP+红旗Linux桌面正式版 6.0SP的双系统,按照网上介绍的:

引用:

http://uready.iblog.com/post/7700/94372
第二个方法,TP-LINK的321G采用的是RaLink(好像是家台湾公司)的RT73芯片,纯属猜测,我从TP-LINK WINDOW驱动的rt73.inf里看到的,不过后来在magiclinux里执行lsusb,有看到RaLink的字眼,这更加证实我的想法。嘿嘿。到Ralink驱动下载页http://www.ralinktech.com/supp-1.htm下载RT73的linux驱动http://www.ralinktech.com/drivers/Linux/RT73_Linux_STA_Drv1.0.3.0.tar.gz
安装步骤如下:(原来我是照RaLink的说明去做的,结果,网卡是可以正常使用,不过启动时没办法自动加载网卡,后来还是在Ralink的论坛找到了解决方法)
1、驱动包解包至一目录,进入解包目录的Module目录
2、执行 cp Makefile.6 ./Makefile
3、执行 make all
4、执行 mkdir /etc/Wireless
5、执行 mkdir /etc/Wireless/RT73STA
6、执行 cp rt73.bin /etc/Wireless/RT73STA/.
7、执行 dos2unix rt73sta.dat
8、执行 cp rt73sta.dat /etc/Wireless/RT73STA/.
9、执行 cp rt73.ko /lib/modules/2.6.15.3/kernel/drivers/usb/net/.
10、执行depmod
11、执行modprobe rt73
12、往/etc/modprobe.conf文件增加下面一行
alias rausb0 rt73
OK 安装成功,接下来要做的就是配置装上的网卡了。
启动 开始菜单->设置->无线网络助手,应该可以搜索得到无线AP,选择搜索到的AP,连接即可
启动 开始菜单->互联网->更多应用程序->无线局域网管理器,应该就可以看到连接状态了。
[quote]忘了有没有漏掉其他步骤了,就先这样吧。

可是在运行第二步的时候出现错误如下:
引用:

[root@localhost Module]# make all
make -C /lib/modules/2.6.23.1-4/build SUBDIRS=/home/xing/2/1/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-4-i686'
CC [M] /home/xing/2/1/Module/rtmp_main.o
In file included from /home/xing/2/1/Module/rt_config.h:174,
from /home/xing/2/1/Module/rtmp_main.c:40:
/home/xing/2/1/Module/oid.h:256:5: warning: "DBG" is not defined
In file included from /home/xing/2/1/Module/rt_config.h:178,
from /home/xing/2/1/Module/rtmp_main.c:40:
/home/xing/2/1/Module/rtmp.h:2856:5: warning: "DBG" is not defined
/home/xing/2/1/Module/rtmp_main.c:105: error: unknown field ‘owner’ specified in initializer
/home/xing/2/1/Module/rtmp_main.c:105: warning: initialization from incompatible pointer type
/home/xing/2/1/Module/rtmp_main.c: In function ‘CMDHandler’:
/home/xing/2/1/Module/rtmp_main.c:294: error: lvalue required as left operand of assignment
/home/xing/2/1/Module/rtmp_main.c:1315:5: warning: "DBG" is not defined
/home/xing/2/1/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
/home/xing/2/1/Module/rtmp_main.c:2051: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/home/xing/2/1/Module/rtmp_main.c:2081: error: ‘dev_base’ undeclared (first use in this function)
/home/xing/2/1/Module/rtmp_main.c:2081: error: (Each undeclared identifier is reported only once
/home/xing/2/1/Module/rtmp_main.c:2081: error: for each function it appears in.)
/home/xing/2/1/Module/rtmp_main.c:2081: error: ‘struct net_device’ has no member named ‘next’
make[2]: *** [/home/xing/2/1/Module/rtmp_main.o] 错误 1
make[1]: *** [_module_/home/xing/2/1/Module] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-4-i686'
make: *** [all] 错误 2
[root@localhost Module]#

请高手帮忙,这个驱动我整了一天了,在此先谢谢了!

[ 本帖最后由 slam951 于 2008-4-20 19:24 编辑 ]
文章评论

共有 6 条评论

  1. caoall 于 2008-09-12 17:17:23发表:

    将#include //改成
    #include /

  2. caoall 于 2008-09-12 17:16:46发表:

    将//#include 改成#include

  3. caoall 于 2008-09-12 17:14:12发表:

    错误解决方法:
    找到rt_config.h,将其中的#include
    改为#include 。这是保证调用64位的库,因为原包是32位的。
    然后在/usr/src/kernels/2.6.23.1-42.fc8-x86_64/include/linux目录下找到netdevice.h,在struct net_device体中找到
    struct net_device_stats* (*get_stats)(struct net_device *dev);
    struct net_device_stats stats;

    #ifdef CONFIG_WIRELESS_EXT
    struct iw_statistics* (*get_wireless_stats)(struct net_device *dev);
    /* List of functions to handle Wireless Extensions (instead of ioctl).
    * See for details. Jean II */
    const struct iw_handler_def * wireless_handlers;
    /* Instance data managed by the core of Wireless Extensions. */
    struct iw_public_data * wireless_data;
    #endif
    对照着改成上面的。就是在结构体中添加了一句
    struct iw_statistics* (*get_wireless_stats)(struct net_device *dev);

  4. slam951 于 2008-04-21 22:24:09发表:

    听高手说,下载最新的网卡驱动。
    RT73_Linux_STA_Drv1.0.4.0.tar.gz ----之前实验的是1.0.3.的版本。
    http://www.ralinktech.com.tw/data/RT73_Linux_STA_Drv1.0.4.0.tar.gz
    但是第一次安装后在设备里面没有无线网卡,没有办法,只有重新安装,如下,
    但是早最后就没有办法继续了。

    引用:

    [root@localhost 1]# cd Module
    [root@localhost Module]# cp Makefile.6 ./Makefile
    cp:是否覆盖“./Makefile”? y
    [root@localhost Module]# make all
    make -C /lib/modules/2.6.23.1-4/build SUBDIRS=/home/xing/1/Module modules
    make[1]: Entering directory `/usr/src/kernels/2.6.23.1-4-i686'
    CC [M] /home/xing/1/Module/rtmp_main.o
    /home/xing/1/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
    /home/xing/1/Module/rtmp_main.c:1060: warning: unused variable ‘device’
    CC [M] /home/xing/1/Module/mlme.o
    /home/xing/1/Module/mlme.c: In function ‘STAMlmePeriodicExec’:
    /home/xing/1/Module/mlme.c:887: warning: unused variable ‘RxSignal’
    CC [M] /home/xing/1/Module/connect.o
    CC [M] /home/xing/1/Module/rtusb_bulk.o
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBInitRxDesc’:
    /home/xing/1/Module/rtusb_bulk.c:538: warning: passing argument 6 of ‘RTusb_fill
    _bulk_urb’ from incompatible pointer type
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutDataPacket’:
    /home/xing/1/Module/rtusb_bulk.c:637: warning: passing argument 4 of ‘RTUSBInitT
    xDesc’ from incompatible pointer type
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutNullFrame’:
    /home/xing/1/Module/rtusb_bulk.c:693: warning: passing argument 4 of ‘RTUSBInitT
    xDesc’ from incompatible pointer type
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutRTSFrame’:
    /home/xing/1/Module/rtusb_bulk.c:757: warning: passing argument 4 of ‘RTUSBInitT
    xDesc’ from incompatible pointer type
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutMLMEPacket’:
    /home/xing/1/Module/rtusb_bulk.c:818: warning: passing argument 4 of ‘RTUSBInitT
    xDesc’ from incompatible pointer type
    /home/xing/1/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutPsPoll’:
    /home/xing/1/Module/rtusb_bulk.c:870: warning: passing argument 4 of ‘RTUSBInitT
    xDesc’ from incompatible pointer type
    CC [M] /home/xing/1/Module/rtusb_io.o
    CC [M] /home/xing/1/Module/sync.o
    CC [M] /home/xing/1/Module/assoc.o
    /home/xing/1/Module/assoc.c: In function ‘link_status_handler’:
    /home/xing/1/Module/assoc.c:726: warning: embedded ‘\0’ in format
    /home/xing/1/Module/assoc.c:750: warning: embedded ‘\0’ in format
    CC [M] /home/xing/1/Module/auth.o
    CC [M] /home/xing/1/Module/auth_rsp.o
    CC [M] /home/xing/1/Module/rtusb_data.o
    CC [M] /home/xing/1/Module/rtmp_init.o
    CC [M] /home/xing/1/Module/sanity.o
    CC [M] /home/xing/1/Module/rtmp_wep.o
    CC [M] /home/xing/1/Module/rtmp_info.o
    CC [M] /home/xing/1/Module/rtmp_tkip.o
    CC [M] /home/xing/1/Module/wpa.o
    CC [M] /home/xing/1/Module/md5.o
    LD [M] /home/xing/1/Module/rt73.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/xing/1/Module/rt73.mod.o
    LD [M] /home/xing/1/Module/rt73.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-4-i686'
    [root@localhost Module]# mkdir /etc/Wireless
    [root@localhost Module]# mkdir /etc/Wireless/RT73STA
    [root@localhost Module]# cp rt73.bin /etc/Wireless/RT73STA
    cp:是否覆盖“/etc/Wireless/RT73STA/rt73.bin”? Y
    [root@localhost Module]# dos2unix rt73sta.dat
    dos2unix: converting file rt73sta.dat to UNIX format ...
    [root@localhost Module]# cp rt73sta.dat /etc/Wireless/RT73STA/.
    cp:是否覆盖“/etc/Wireless/RT73STA/./rt73sta.dat”? Y
    [root@localhost Module]# cp rt73.ko /lib/modules/2.6.23.1-4/kernel/drivers/usb/n
    et
    [root@localhost Module]# depmod
    [root@localhost Module]# modprobe rt73
    WARNING: /etc/modprobe.conf line 6: ignoring bad line starting with '12、往dprob
    e'
    WARNING: /etc/modprobe.conf line 7: ignoring bad line starting with '12、往>/dev
    /null'
    WARNING: /etc/modprobe.conf line 12: ignoring bad line starting with 'alisa'
    FATAL: Module rt73 not found.
    [root@localhost Module]# modprobe rt73
    WARNING: /etc/modprobe.conf line 6: ignoring bad line starting with '12、往dprob
    e'
    WARNING: /etc/modprobe.conf line 7: ignoring bad line starting with '12、往>/dev
    /null'
    WARNING: /etc/modprobe.conf line 12: ignoring bad line starting with 'alisa'
    \FATAL: Module rt73 not found.

    进行不下去了,请高手指点,谢谢!
    不知如何安装。
    :987w(1 :987w(1 :987w(1

  5. slam951 于 2008-04-21 13:44:39发表:

    有哪个高手路过,帮帮忙呀!
    (6)m:b (6)m:b (6)m:b (6)m:b (6)m:b

  6. xiakelzsh 于 2008-04-21 10:24:53发表:

    我最近也在装无线网卡,按照说明的提示,也是在编译阶段出现问题,无线网卡根本安装进行不下去。郁闷中。