help with Ralink support for embedded platform

Live forum:


24-11-2010 21:43:58

I have an AM1808 running on a Logicpd eval board. I'm trying to add support for rt2x00 Wlan for a usb wireless adapter, specifically a D-Link WUA-1340 but I can't get the the board to detect the adapter and load the drivers.

So far I have enabled hotplugging,
Enabled CONFIG_MAC80211 under 'Networking Support -> Wireless',
'Device Drivers -> Network Device Support -> Wireless LAN' and select Ralink,
'Device Drivers -> USB support -> Host side USB,
'Device Drivers -> USB support -> Wireless USB extensions (experimental) doesn't seem like the right one,

Here's all the modules installed into the fs
INSTALL drivers/block/loop.ko
INSTALL drivers/char/hw_random/rng-core.ko
INSTALL drivers/input/keyboard/atkbd.ko
INSTALL drivers/input/keyboard/xtkbd.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL fs/autofs4/autofs4.ko
INSTALL fs/exportfs/exportfs.ko
INSTALL fs/minix/minix.ko
INSTALL fs/nfsd/nfsd.ko
INSTALL fs/nls/nls_ascii.ko
INSTALL fs/nls/nls_utf8.ko
INSTALL fs/smbfs/smbfs.ko
INSTALL lib/crc-ccitt.ko
INSTALL lib/crc-t10dif.ko
INSTALL net/mac80211/mac80211.ko
INSTALL net/wireless/lib80211.ko
DEPMOD 2.6.33-rc4

The only messages from serial debug when i plug in the adapter is
root@arago/# usb 2-1 new full speed USB device using ohci and address 5
usb 2-1 not running at top speed; connect to a high speed hub

Interesting kernel messages on bootup [u3ak3c45j]with[/u3ak3c45j] the adapter installed
INIT version 2.86 booting
Please wait booting...
Starting udev
udev starting version 141
udevd[535] unable to move watches dir '/dev/.udev/watch', old watches will not be restored Directory not empty[/color3ak3c45j]
Remounting root file system...
Caching udev devnodes
Populating dev cachemv cannot rename '/tmp/uname' No such file or directory
logger mount mount point /proc/bus/usb does not exist
NOT configuring network interfaces / is an NFS mount[/color3ak3c45j]
Thu Mar 18 181800 UTC 2010
INIT Entering runlevel 5
Starting telnet daemon.
Starting syslogd/klogd done
Starting thttpd.
Starting AM18xx Demo application.

What am I missing? Is there a 'HOW TO' for embedded kernels on this? Most of the topics here are for workstations.

Newbie, so please go easy ;-)



26-11-2010 21:42:21


I'm really drawing a blank here and no one has responded to provide some help. Is getting the rt2x00 driver to work on an embedded platform impossible?? Please tell me that I'm trying to do something impossible so that I can stop wasting my time.

I'm expecting to see the wireless interface when I type 'ifconfig' once I plug the wireless adapter in? Is this a bad assumption?

I've tried all sorts of combinations and permutations related to the driver in the kernel, but so far I can't get it to work.

However, the USB wireless adapter does get enumerated when plugged in
root@arago~# usb 1-1 new high speed USB device using musb_hdrc and address 3
usb 1-1 New USB device found, idVendor=07d1, idProduct=3c04
usb 1-1 New USB device strings Mfr=1, Product=2, SerialNumber=0
usb 1-1 Product 802.11 bg WLAN
usb 1-1 Manufacturer Ralink

...and I can install the drivers
root@arago~# lsmod
Module Size Used by
rt73usb 18631 0
rt2x00usb 6457 1 rt73usb
rt2x00lib 20496 2 rt73usb,rt2x00usb

...and I can plug in a USB SD card and it will automatically get mounted, so I know the capability is there for other USB devices
usb 1-1 new high speed USB device using musb_hdrc and address 3
usb 1-1 New USB device found, idVendor=0781, idProduct=b2b6
usb 1-1 New USB device strings Mfr=3, Product=4, SerialNumber=2
usb 1-1 Product MobileMate
usb 1-1 Manufacturer SanDisk
usb 1-1 SerialNumber 000000009412
scsi1 usb-storage 1-11.0
scsi 1000 Direct-Access SanDisk MobileMate 9412 PQ 0 ANSI 0
sd 1000 Attached scsi generic sg0 type 0
sd 1000 [sda] 3862528 512-byte logical blocks (1.97 GB/1.84 GiB)
sd 1000 [sda] Write Protect is on
sd 1000 [sda] Assuming drive cache write through
sd 1000 [sda] Assuming drive cache write through
sda sda1
sd 1000 [sda] Assuming drive cache write through
sd 1000 [sda] Attached SCSI removable disk

So what am I missing when it come to this driver?

/carl h.


13-01-2011 08:45:23

Hello piperguy,
??rt2x00 driver really work in Embedded Platform.I ever see this information in the [i29oheiqv]users Archives[/i29oheiqv][/url29oheiqv],you can search it from there.Right now I will make the rt2x00 driver work in the ARM Platform.If possible,can we help each other?

Best Regards!
Sherlock Lee