Tiny Core Linux

Tiny Core Extensions => TCE News => TCE 2.x => Topic started by: roberts on October 08, 2009, 08:31:21 PM

Title: rt2860 Wireless Support
Post by: roberts on October 08, 2009, 08:31:21 PM
Thanks to Mike L. for creating the rt2860 wireless support. Many versions of eeePC require this.
I just helped package it up the extension.
Code: [Select]
Title:          rt2860.tczm
Description:    rt2860 module
Version:        2.2.0.0
Author:         Ralink Technology, Inc.
Original-site:  http://www.ralinktech.com/support.php?s=2
Copying-policy: GNU General Public License, Version 2
Size:           236KB
Extension by:   roberts
Comments:       Mike L. compiled the rt2860 module for use on an eeePC 1000
                ----------
                Requires the wireless-2.6.29.1-tinycore and wireless_tools extensions
                ----------
After booting, you should see a network interface "raN"
with N being 0 in most cases: ra0.  To associate with a
wireless access point, you can set up a simple script like
the following:

    #!/bin/sh
    # commands to associate with wireless access point
    sudo /sbin/ifconfig ra0 up
    sudo /usr/local/sbin/iwconfig ra0 essid "{{{YOUR ESSID HERE}}}" key restricted "{{{YOUR KEY HERE}}}"
    sleep 2
    sudo /sbin/udhcpc -i ra0

This could be called manually after booting, or automatically
from /opt/bootlocal.sh.  Note that if the preceding commands
are directly inserted in bootlocal.sh, you don't need the "sudo"
prefixes. 

Altenatively, you may use a series of iwpriv commands:
#!/bin/sh
#Config STA to link with AP which is OPEN/NONE(Authentication/Encryption))
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=OPEN
iwpriv ra0 set EncrypType=NONE
iwpriv ra0 set SSID="AP's SSID"

Another example of iwpriv:
#!/bin/sh
#Config STA to link with AP which is OPEN/NONE(Authentication/Encryption))
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=AES
iwpriv ra0 set SSID="AP's SSID"
iwpriv ra0 set WPAPSK="AP's wpa-preshared key"
iwpriv ra0 set SSID="AP's SSID"

The file 'iwpriv_usage.txt' in the driver source code has
more examples and descriptions of all the control options.

A third method that might work is to edit the hardware
configuration file /etc/RT2860STA/RT2860STA.dat that is read
when the driver kernel module is loaded.  If you try this,
please make a backup in a persistant location, and also add
etc/RT2860STA
To your /opt/.filetool.lst.

Change-log:
Current:        2009/10/08 First version.
Title: Re: rt2860 Wireless Support
Post by: ^thehatsrule^ on October 10, 2009, 05:04:59 PM
Quote
Extension by:
missing _
Title: Re: rt2860 Wireless Support
Post by: popolon on May 19, 2010, 09:29:48 AM
Are there any plans to rebuild this extension for TC 3.0 / 2.6.33?

FYI I could build and use it doing the following:
- Download TC patched 2.6.33-3 kernel source and corresponding config file
- Use TC config file, make menuconfig, enable staging drivers, enable rt2860 staging driver
- make modules
- put the resulting rt2860sta.ko in a rt2860.tcz file, add it to onboot.lst, reboot, run wpa_supplicant and udhcpc.

This was tested on a eeepc 1000H. I used the wireless connection for a few hours with no issue.

The iwpriv WPA configuration example commands given in the info file of the 2.X version do not work anymore. But now wpa_supplicant works OK - it didn't seem to work at all with 2.6.29.
Title: Re: rt2860 Wireless Support
Post by: Juanito on May 19, 2010, 08:28:30 PM
If you built the extension and it works, it would be great if you could submit it for others to use.
Title: Re: rt2860 Wireless Support
Post by: popolon on May 24, 2010, 03:10:45 AM
Alright, I'm trying to package it for extension submission right now
Title: Re: rt2860 Wireless Support
Post by: andrewb on June 10, 2011, 04:52:08 PM
Did this extension for TC3 get released?