|
IndexIntroduction
Starting from STLinux2.3 distribution, support for some USB wifi dongles based on Ralink RT73 chipset was added into linux kernel to allow user to exploit wireless extensions. They are based over the IEEE 802.11 protocol. In this section you can find useful informations to use wifi dongles with ST kernel; however, for a full wifi instructions set, we will invite you to read specific documents. Supported donglesHere is a list of supported dongles, the ones based on RT73 chip. List could be incomplete.
Configuring the kernelTo use USB wireless driver you have to set the following features in your linux kernel. Kernel starting from 2.6.23.1_stm23_0102 already contains this wireless support. Open the kernel menuconfig and enable the following:
Also make sure the following options are enabled:
Kernel command line optionsWhen booting the kernel, a debug option could be added in command line. To do this, simply add the following in your kernel command line options. Required option is:
Where number can be 1,2,4,8 to enable respectively ERROR, WARN, TRACE and INFO debug. How to use the deviceOnce kernel has been built, with rt73 driver enabled, to start using usb dongles you have to install the rt73.bin firmware the driver needs to be correctly initialized. You can find it into iso image or download from ftp site (wireless-frmw package). It will be installed on target filesystem (lib/firmware directory). You also need wireless tools package to manage your wireless connection. As above, you can find it on iso image or into ftp site. This package contains iwconfig, iwpriv and iwlist tools. Once kernel is loaded, simply plug the usb dongle on usb port. Take care to plug it after filesystem is mounted, to allow a correct firmware load phase. A wlan0 device will be created: typing ifconfig -a you will see it, at the moment with link down. Enable it typing ifconfig wlan0 up or ifconfig wlan0 <ip_address>. If you choose the first command, you will need to assign an ip address in future. After this step, if a wireless access point is available in the nearby, typing iwconfig wlan0 you will see your connection status. For example you should see a similar output:
If wireless device was correctly initialized and wired to an access point, you can use it as a normal network interface, using also all network commands available. For detailed instructions regarding wireless tools you can visit their man pages. Wireless tools are also required to enable/disable encryption keys, useful to setup security connections. Take care that tools commands are not fully available for this rt73 driver, for example you cannot set device "mode" to master, in order to set dongle as an access point. If you'll try to enable (through wireless tools) a not supported capability, driver will reply with a warning message that won't corrupt its use. If you have built the driver as a loadable module, type the following to insert and use it:
Where number is the same as above. To disable connection, you have to put down network typing ifconfig wlan0 down. To remove rt73 device (previously loaded as module) you have to type rmmod rt73. Ltp network stress testsCurrently network tests were ran to stress wireless device. They are included into the ltp package and results are available following this link
|
|||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||