[i=s] ±¾Ìû×îºóÓÉ ¶éÂäkiss ÓÚ 2010-7-2 22:51 ±à¼ [/i]
Õâ¸öСµçÄÔÊǵ±ÏÂÔØ»úµÄ¡¡ATOMµÄ´¦ÀíÆ÷Ê£µç£¬×òÌìͻȻÏëÊÔÊÔÎÞÏߣ¬´ÓÂòÁËÖ®ºó¾ÍûÓùý£¬ºóÀ´·¢ÏÖ5.5×°ÁËÖ®ºóûÓÐÈÌÎÞÏßÍø¿¨µÄÇý¶¯£¬ºÜÊÇÓôÃÆ£¬ËùÒÔÖ»ÄÜ×Ô¼º×°£¬ÒòΪÕâ¸ö»ú×Ó×Ô¼º´ø¸ölinux£¨ºÅ³Æ¼¸ÃëÆô¶¯£¬Æäʵ¾ÍÊǽøÁ˸ölinux£¬¸Ð¾õÓеãÉϵ±£©ËùÒÔÍøÉÏÓ¦¸ÃÓÐÇý¶¯£¬ÏÂÃæ˵ÎÒϲ½Ö裺
1.# lspci
03:00.0 Network controller: RaLink RT2860
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit
ÖªµÀµ½Õâ¸öÊÇRT2860µÄÎÞÏß¡£ÏÂÃæÊÇÒÔÌ«Íø¿¨¡£ÖªµÀÍø¿¨ÐͺžͺðìÁË£¬ÔÚrealtekÍøÉÏÕÒÇý¶¯¡£ÏÂÔصÄʱºòÒªÌîдÃû×ÖºÍeMail¡£
ÏÂÔصØÖ·:http://www.ralinktech.com/download.php?t=U0wyRnpjMlYwY3k4eU1ERXdMekF4THpJNUwyUnZkMjVzYjJGa05ERTJNVEV5T1RFd05pNWllakk5UFQweU1ERXdYekF4WHpJNVgxSlVNamcyTUY5TWFXNTFlRjlUVkVGZmRqSXVNeTR3TGpBdWRHRnlD
2.# cd /usr/local/src/ ½âѹÕâ¸öÎļþ¡¡tar -xvjf 2010_01_29_RT2860_Linux_STA_v2.3.0.0.tar.bz2 ,
mv 2010_01_29_RT2860_Linux_STA_v2.3.0.0.tar.bz2 RT2860_Linux_STA_v2.3.0.0.tar.bz2(Õâ¸öÊÇΪÁË·½±ã)
3.Õâ¸ö¾ÍÊÇÒª°²×°ÁË,
¡¡¡¡# cd RT2860_Linux_STA_v2.3.0.0/ ½øÕâ¸öĿ¼
# more README_STA ¡¡¡¡¿´Ò»ÏÂËûµÄ˵Ã÷,ÒªÊÇ¿´²»Ã÷°×¾ÍÌø¹ýÈ¥£¬ÎÒÓ¢ÎÄÒ²²»ºÃ£¬²»¹ýÕ⼸¸ö¼òµ¥µÄÎÒÏëÓ¦¸ÃÄÜ¿´Ã÷°×
----------------------------------------------------------------------------------------------------------------------------------------------
1> $tar -xvzf RT2860_Linux_STA_x.x.x.x.tgz
go to "./RT2860_Linux_STA_x.x.x.x" directory.
2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.
3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
4> $make
# compile driver source code
# To fix "error: too few arguments to function ??iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
6> load driver, go to "os/linux/" directory.
#[kernel 2.4]
# $/sbin/insmod rt2860sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt2860sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2860sta
---------------------------------------------------------------------------------------------------------------------------------------------------
# make ±àÒë
# make install °²×°
Õâ¸öÍêÁ˾ÍËãÍêÁËÒ»´ó°ëÁË,ÏÂÃæ¾ÍÊǼÓÔØÄ£¿éÁË
#cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat ¸´ÖƹýÈ¥
È»ºó½øÈëµ½os/linuxĿ¼Ï #cd os/linux
[kernel 2.4]¡¡£².£´Äں˵ļÓÔØ rt2860sta.o
#insmod rt2860sta.o
¡¡¡¡¡¡¡¡ [kernel 2.6] 2.6Äں˵ļÓÔØ rt2860sta.ko
#insmod rt2860sta.ko
Õâ¸öÍêÁ˾͵ÈÓÚ×°ÍêÇý¶¯ÁË
Æô¶¯Íø¿¨£¬Õâ¸öÍø¿¨ÊÇra0£¬²»ÊÇwlan0¸Ð¾õÓеã¹Ö¡£¡£¡£¡£
#ifconfig rao up¡¡Õâ¸ö¾ÍÆô¶¯Íø¿¨ÁË
iwconfigÒ²ÓÐÕâ¸öra0ÁË¡£
½ÓÏÂÀ´ÊÇ iwlist ra0 scan¡¡iwconfig ra0 essid "" key 000-000-00²»»áµÄ¾Íman°É
===================================================================================
дµÄ²»ºÃ´ó¼Ò²»ÒªÂÎÒÒ²ÊÇÐÂÈË¡£¡£¡£¡£
===================================================================================
¶éÂäkiss ÓÚ 2010-07-03 19:49:17·¢±í:
2# mpstar
¾Í£³²½¡£¡£¡£¡£¡£¡£¡£¡£¡£
mpstar ÓÚ 2010-07-03 08:05:39·¢±í:
¿´Õâ¸ö²½ÖèÒ²¹»ÏÅÈ˵Ä