Postupoval som podla tohoto návodu...viď dole ale k.... z toho:
Before you begin:
make sure you have this package installed from sysnaptic
glibc-headers-devel
also make note of the output for lsusb
[pcorazao@localhost ~]$ lsusb
Bus 001 Device 015: ID 154b:6545 PNY
Bus 001 Device 014: ID 1737:0078 Linksys
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
The Id may different, i had 1737:0078
go to pcc service section and make sure "dkms" service is set to start at boot time
open synaptic press reload then apply all updates
then search for kernel-2.6.27.31.tex5 and install it and reboot select the new kernel from the grub menu
Edit /boot/grub/menu.lst to use the new kernel from now on.
1) download the following files from here:
http://www.ralinktech.com/support.php?s=2 2009_1110_RT3070_Linux_STA_v2.1.2.0.tar.bz2
RT2870_Firmware_V8.zip
2) decompress and extract files
bzip2 -d 2009_1110_RT3070_Linux_STA_v2.1.2.0.tar.bz2
tar -xvf 2009_1110_RT3070_Linux_STA_v2.1.2.0.tar
unzip RT2870_Firmware_V8.zip -x
3) modify rt3070sta driver
cd 2009_1110_RT3070_Linux_STA_v2.1.2.0
cd os
cd linux
vi usb_main_dev.c
add the following line, between the "#ifdef #ifdef RT3070" and "#endif // RT3070 //" in the file "common/usb_main_dev.c"
{USB_DEVICE(0x1737,0x0078)}, /*Linksys WUSB100 v2*/
save and close
cd..
cd os
cd linux
vi config.mk
change the following entries from no to yes
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
save and close
cd ..
cd ..
vi MakeFile
ensure that the following lines say STA and LINUX
RT28xx_MODE = STA
TARGET = LINUX:q
4) complie driver
From 2009_1110_RT3070_Linux_STA_v2.1.2.0 directory
run the following commands
sudo make
# To fix "error: too few arguments to function iwe_stream_add_event"
must update to the latest pclinuxos kernel tex5 sudo make install
5) install new driver *must be a root shell
From dirtory 2009_1110_RT3070_Linux_STA_v2.1.2.0os/linux
gzip rt3070sta.ko
cp ./rt2870sta.ko.gz /lib/modules/2.6.27.31.tex5/kernel/drivers/net/wireless/rt2870sta.ko.gz
From RT2870_Firmware_V8 directory
cp ./rt2870.bin /lib/firmware/rt2870.bin
*note this file is great to review along with the README_STA file that comes with RT2870_LinuxSTA_V2.3.0.0
cp ./RT2870STA.dat /etc/Wireless/RT3070STA/RT2870STA.dat
*note yes it will say RT2870STA.dat not RT3070STA.dat
vi /etc/modprobe.conf
ensure the following line is present, if not add it.
alias wlan0 rt2870sta
*note this may change to "alias ra0 usbcore" after you run pcc
vi /etc/modprobe.preload
ensure the following line is present, if not add it.
rt2870sta
vi /etc/rc.local
ensure the following line is present, if not add it before exit 0
insmod /lib/modules/2.6.27.31.tex5/kernel/drivers/net/wireless/rt3070sta.ko
cd /lib/modules/2.6.27.31.tex5/kernel/drivers/net/wireless/rt2870sta.ko
sudo modprobe rt3572sta
run dmesg to check for errors
dmesg
run ifconfig, check for ra0
ifconfig
run iwconfig, check for rao
iwconfig
vi /etc/sysconfig/network-scripts/ifcfg-ra0
edit to meet your networks needs
example:
DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=35
MII_NOT_SUPPORTED=no
USERCTL=yes
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=CorazaoNetGear
IPV6INIT=no
IPV6TO4INIT=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=yes
PEERYP=yes
PEERNTPD=no
use the following commands to bring the interface up and down.
ifup ra0
or ifconfig ra0 inet YOUR_IP up
ifdown ra0
6) reboot
run pcc to manage the connection.
7) unload driver - if you want to remove
ifconfig ra0 down
rmmod rt3070sta
Pri sudo make / sudo make install......som skoncil...prd z toho
PS:nie som som zasvieteny linuxak. pre taketo veci/intalaciu niecoho "nemozneho" mam chut sa na cely linux..hadaj te co...
