发新话题
打印

[其他网络服务] 无线网卡安装问题,请高手赐教!

无线网卡安装问题,请高手赐教!

我的无线网卡是Ralink公司的RT2571W芯片网卡。驱动为官网下载。Linux系统为红旗Linux 6.0 sp1版,内核为2.6
在Linux下安装前面所有的步骤都正常,可是在最后一步加载rt73.ko文件的时候总是出错,请高手们能为我指点一下。谢谢了!QQ:6422374
以下是安装全过程:
[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=/tmp/ralink/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-4-i686'
  CC [M]  /tmp/ralink/Module/rtmp_main.o
  CC [M]  /tmp/ralink/Module/mlme.o
/tmp/ralink/Module/mlme.c: In function ‘STAMlmePeriodicExec’:
/tmp/ralink/Module/mlme.c:851: warning: unused variable ‘RxSignal’
  CC [M]  /tmp/ralink/Module/connect.o
  CC [M]  /tmp/ralink/Module/rtusb_bulk.o
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBInitRxDesc’:
/tmp/ralink/Module/rtusb_bulk.c:541: warning: passing argument 6 of ‘RTusb_fill_bulk_urb’ from incompatible pointer type
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutDataPacket’:
/tmp/ralink/Module/rtusb_bulk.c:640: warning: passing argument 4 of ‘RTUSBInitTxDesc’ from incompatible pointer type
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutNullFrame’:
/tmp/ralink/Module/rtusb_bulk.c:696: warning: passing argument 4 of ‘RTUSBInitTxDesc’ from incompatible pointer type
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutRTSFrame’:
/tmp/ralink/Module/rtusb_bulk.c:760: warning: passing argument 4 of ‘RTUSBInitTxDesc’ from incompatible pointer type
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutMLMEPacket’:
/tmp/ralink/Module/rtusb_bulk.c:821: warning: passing argument 4 of ‘RTUSBInitTxDesc’ from incompatible pointer type
/tmp/ralink/Module/rtusb_bulk.c: In function ‘RTUSBBulkOutPsPoll’:
/tmp/ralink/Module/rtusb_bulk.c:873: warning: passing argument 4 of ‘RTUSBInitTxDesc’ from incompatible pointer type
  CC [M]  /tmp/ralink/Module/rtusb_io.o
  CC [M]  /tmp/ralink/Module/sync.o
  CC [M]  /tmp/ralink/Module/assoc.o
/tmp/ralink/Module/assoc.c: In function ‘link_status_handler’:
/tmp/ralink/Module/assoc.c:740: warning: embedded ‘\0’ in format
/tmp/ralink/Module/assoc.c:764: warning: embedded ‘\0’ in format
  CC [M]  /tmp/ralink/Module/auth.o
  CC [M]  /tmp/ralink/Module/auth_rsp.o
  CC [M]  /tmp/ralink/Module/rtusb_data.o
/tmp/ralink/Module/rtusb_data.c: In function ‘RTUSBRxPacket’:
/tmp/ralink/Module/rtusb_data.c:2224: warning: ISO C90 forbids mixed declarations and code
/tmp/ralink/Module/rtusb_data.c:2262: warning: ISO C90 forbids mixed declarations and code
  CC [M]  /tmp/ralink/Module/rtmp_init.o
  CC [M]  /tmp/ralink/Module/sanity.o
  CC [M]  /tmp/ralink/Module/rtmp_wep.o
  CC [M]  /tmp/ralink/Module/rtmp_info.o
  CC [M]  /tmp/ralink/Module/rtmp_tkip.o
  CC [M]  /tmp/ralink/Module/wpa.o
  CC [M]  /tmp/ralink/Module/md5.o
make  LD [M]  /tmp/ralink/Module/rt73.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/ralink/Module/rt73.mod.o
  LD [M]  /tmp/ralink/Module/rt73.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-4-i686'
[root@localhost Module]# make install
make -C /lib/modules/2.6.23.1-4/build \
INSTALL_MOD_DIR=extra SUBDIRS=/tmp/ralink/Module \
modules_install
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-4-i686'
  INSTALL /tmp/ralink/Module/rt73.ko
  DEPMOD  2.6.23.1-4
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-4-i686'
Network device directory /etc/sysconfig/network-scripts
Module configuration file /etc/modprobe.conf
/sbin/depmod -a
[root@localhost Module]# cp rt73.bin /etc/Wireless/RT73STA/.
cp:是否覆盖“/etc/Wireless/RT73STA/./rt73.bin”? y
[root@localhost Module]# dos2unix rt73Ssta.dat
dos2unix: converting file rt73Ssta.dat to UNIX format ...
dos2unix: problems converting file rt73Ssta.dat
[root@localhost Module]# cp rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat
cp:是否覆盖“/etc/Wireless/RT73STA/rt73sta.dat”? y
[root@localhost Module]# load
bash: load: command not found
[root@localhost Module]# /sbin/insmod rt73.ko
insmod: error inserting 'rt73.ko': -1 File exists
[root@localhost Module]#


以下是驱动里的RADEME文件一部分:
=======================================================================
Build Instructions:  
====================
1> $tar -xvzf RT73_Linux_STA_Drv_x.x.x.x.tar.gz
    go to "./RT73_Linux_STA_Drv_x.x.x.x/Module" directory.
   
2> $cp Makefile.4  ./Makefile       # [kernel 2.4]
    or
   $cp Makefile.6  ./Makefile       # [kernel 2.6]
   
3> [kernel 2.4]
    $chmod 755 Configure
    $make config         # config build linux os version

4> $make all            # compile driver source code
4.1> $make install

5> $cp rt73.bin /etc/Wireless/RT73STA/        # copy firmware

6>  $dos2unix rt73sta.dat
    $cp rt73sta.dat  /etc/Wireless/RT73STA/rt73sta.dat      
    # !!!check if it is a binary file before loading !!!  
   
7> $load               
    #[kernel 2.4]
    #    $/sbin/insmod rt73.o
    #    $/sbin/ifconfig rausb0 inet YOUR_IP up
        
    #[kernel 2.6]
    #    $/sbin/insmod rt73.ko
    #    $/sbin/ifconfig rausb0 inet YOUR_IP up


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

[ 本帖最后由 yokegong 于 2008-1-26 17:40 编辑 ]

TOP

首先你的驱动安装过程编译就有问题(我用的不是雷凌网站下载的驱动,是开源社区的驱动,雷凌的驱动不支持注入模式)
我的这个编译时也有问题,只要打开文件调整头文件和添加LINUX/TYPE.H
编译就好了,至于编译后挂载问题是由于系统自动挂载了驱动,但是这个驱动没法使用。
查下,网上有好多说这个问题的,修改完重启完就好了,具体改我也忘记了,如果有问题发邮件给我ruixiang_fan@msn.com
安装好后不要用系统自带的图形网络管理软件,如果是没密码的也就算了,如果需要改KEY esssid的话,那个软件会死机的^_^
我一般用命令行
ifconfig  wlan0 up
iwconfig wlan0 essid  youessid
iwconfig wlan0 chanel  you
iwconfig wlan0 key  ****
dhcpcd  wlan0
大体就是这样的,写个脚本也可以呵呵

TOP

发新话题