0

Chumby WiFi cookbook fail
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Chumby WiFi cookbook fail

by adafruit on Mon Jan 31, 2011 12:40 pm

That would be great. Thanks for helping us out with this. we will get it working!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Chumby WiFi cookbook fail

by dbc on Thu Feb 03, 2011 7:35 pm

OK, this is hopeful, but something isn't quite right and I'm a little confused.

Using the new driver and the same procedure I outlined earlier in the thread, plug-in events generate this:
Code: Select all | TOGGLE FULL SIZE
 [   49.120000] usb 1-1.3: new high speed USB device using fsl-ehci and
4
[   49.330000] usb 1-1.3: configuration #1 chosen from 1 choice
[   49.870000] rtusb init --->
[   49.880000]
[   49.880000]
[   49.880000] === pAd = c4a73000, size = 500648 ===
[   49.880000]
[   49.890000] <-- RTMPAllocAdapterBlock, Status=0
[   49.940000] usbcore: registered new interface driver rt2870
[   50.960000] <-- RTMPAllocTxRxRingMemory, Status=0
[   50.980000] -->RTUSBVenderReset
[   50.990000] <--RTUSBVenderReset
[   51.740000] Key1Str is Invalid key length(0) or Type(0)
[   51.740000] Key2Str is Invalid key length(0) or Type(0)
[   51.750000] Key3Str is Invalid key length(0) or Type(0)
[   51.750000] Key4Str is Invalid key length(0) or Type(0)
[   51.760000] 1. Phy Mode = 5
[   51.770000] 2. Phy Mode = 5
[   51.770000] NVM is Efuse and its size =2d[2d0-2fc]
[   51.920000] RTMPSetPhyMode: channel is out of range, use first channel=1
[   51.990000] 3. Phy Mode = 9
[   52.150000] MCS Set = ff 00 00 00 01
[   52.190000] <==== rt28xx_init, Status=0
[   52.190000] 0x1300 = 00064300


Which looks pretty happy, as does this:

Code: Select all | TOGGLE FULL SIZE
chumby-:/ # iwlist wlan0 scan
[ 1536.000000] ===>rt_ioctl_giwscan. 6(6) BSS returned, data->length = 863
wlan0     Scan completed :
          Cell 01 - Address: B0:E7:54:47:08:41
                    Protocol:802.11b/g
<the rest of my neighbor's WiFi info snipped out :) >


But... two odd things. When I try to run my modified start_ap.sh (see wiki article about stand alone AP) I get this:
Code: Select all | TOGGLE FULL SIZE
chumby-:/banned/rfs1 # ./start_ap.sh [ 1669.350000] #

[ 1671.440000] ---> RTMPFreeTxRxRingMemory
[ 1671.440000] <--- RTMPFreeTxRxRingMemory
Configuration file: /tmp/hostapd.conf
nl80211 not found.
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
[ 1672.320000] <-- RTMPAllocTxRxRingMemory, Status=0
[ 1672.340000] -->RTUSBVenderReset
[ 1672.340000] <--RTUSBVenderReset
[ 1673.110000] CfgSetCountryRegion():CountryRegion in eeprom was programmed
[ 1673.120000] CfgSetCountryRegion():CountryRegion in eeprom was programmed
[ 1673.140000] Key1Str is Invalid key length(0) or Type(0)
[ 1673.140000] Key2Str is Invalid key length(0) or Type(0)
[ 1673.150000] Key3Str is Invalid key length(0) or Type(0)
[ 1673.150000] Key4Str is Invalid key length(0) or Type(0)
[ 1673.170000] 1. Phy Mode = 5
[ 1673.170000] 2. Phy Mode = 5
[ 1673.170000] NVM is Efuse and its size =2d[2d0-2fc]
[ 1673.320000] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 1673.380000] 3. Phy Mode = 9
[ 1673.540000] MCS Set = ff 00 00 00 01
[ 1673.580000] <==== rt28xx_init, Status=0
[ 1673.590000] 0x1300 = 00064300

nl80211 not found???? But the config file from /proc/config.gz says:
Code: Select all | TOGGLE FULL SIZE
CONFIG_WIRELESS=y
CONFIG_CFG80211=m
CONFIG_NL80211=y

so I would think nl80211 would be built into the kernel. Something is wacky here and I don't understand the WiFi driver stack well enough to know where to look.

The second curious thing is that I'm now getting periodic empty lines printed to the dmesg output... which of course is intermixed in the serial console output so it tends to come up in the middle of typing a command line causing severe ugliness and some confusion. So my guess is the driver has some kind of periodic logging going on in it that needs to be squashed.

I'm not sure how to chase down either of these two oddities. Send clues if you have them.

dbc
 
Posts: 62
Joined: Thu Jan 06, 2011 7:37 pm
Location: Sunnyvale, CA

Re: Chumby WiFi cookbook fail

by dbc on Thu Feb 03, 2011 7:43 pm

and a third odd thing... unplugging the dongle generates an infinite loop of:
Code: Select all | TOGGLE FULL SIZE
[ 2526.600000] WIFI device has been disconnected

which is a pretty ugly bug.

dbc
 
Posts: 62
Joined: Thu Jan 06, 2011 7:37 pm
Location: Sunnyvale, CA

Re: Chumby WiFi cookbook fail

by smindinvern on Thu Feb 03, 2011 9:31 pm

With the original driver, have you tried bringing the interface up before you scan? I have that problem with with one of my wireless cards. Try issuing

Code: Select all | TOGGLE FULL SIZE
ifconfig up wlan0

and then scanning, that might fix things. Then again it could be something completely different
smindinvern
 
Posts: 46
Joined: Sat Dec 25, 2010 9:19 pm
Location: North Carolina, USA

Re: Chumby WiFi cookbook fail

by dbc on Fri Feb 04, 2011 1:22 am

Which driver do you mean by "original driver"? The first one I tried won't load because it was compiled against the wrong kernel. The second one scans OK.

dbc
 
Posts: 62
Joined: Thu Jan 06, 2011 7:37 pm
Location: Sunnyvale, CA

Re: Chumby WiFi cookbook fail

by akhenakh on Sat Feb 05, 2011 8:13 am

Same issue here, I hope Adafruit will find a solution for the wireless controller they recommended to us...

Ps:
Code: Select all | TOGGLE FULL SIZE
 ifconfig wlan0 up
with the base driver does not help.
akhenakh
 
Posts: 1
Joined: Sat Feb 05, 2011 8:10 am

Re: Chumby WiFi cookbook fail

by adafruit on Sun Feb 06, 2011 8:30 pm

we are on it! this coming week we will do our best to adapt the tutorial or find some other way to solve the problem

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Chumby WiFi cookbook fail

by dbc on Mon Feb 07, 2011 1:18 am

I really think this is very close. The "infinite unplug messages" issue should be a simple bug, or maybe even something I didn't configure correctly. The 'nl80211 not found' issue is either a minor build issue, or a PEBKAC on my part. But the driver loads and is recognized, so we should be down to minor tweaks at this point.

A couple of days ago I was able to cross-compile "hello world" with ScratchBox and it actually worked, so in theory I should be able to build drivers now. Unfortunately, I'm not at all familiar with the WiFi driver stack, so while I suspect these bugs are shallow in principal, they aren't shallow for me :)

dbc
 
Posts: 62
Joined: Thu Jan 06, 2011 7:37 pm
Location: Sunnyvale, CA

Re: Chumby WiFi cookbook fail

by jlynn on Thu Feb 24, 2011 1:35 am

Has their been any progress on this issue? I also have the same problem with a recent purchase of the wifi adapter with the chumby board. The unit I have shows v4, and the same diagnostic messages.

Thanks,
Jonathan

jlynn
 
Posts: 1
Joined: Thu Feb 24, 2011 1:33 am

Re: Chumby WiFi cookbook fail

by adafruit on Thu Feb 24, 2011 12:09 pm

we're working on it today

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Chumby WiFi cookbook fail

by adafruit on Thu Feb 24, 2011 12:53 pm

OK thank you everyone for your patience! We wanted to make sure this was really good to go. We've had no problems with this new driver :mrgreen:

Please visit:

http://www.ladyada.net/wiki/chumbyhacke ... ifi#dongly

Download the RT2800 driver script and run it

Let us know if it does/doesn't work for you!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Chumby WiFi cookbook fail

by K5HJ on Fri Feb 25, 2011 10:30 am

I am happy to report that it does indeed work. My CHB is now WiFi connected and happily humming along.

I have one of the V4 TP-Link RT2800 based modules. I started over with a clean install of falconwing and added the new driver. Everything went just like the tutorial.

Thanks,
Randy
K5HJ
 
Posts: 4
Joined: Fri Feb 26, 2010 9:21 pm

Re: Chumby WiFi cookbook fail

by tehnorm on Mon Apr 18, 2011 2:15 am

Really appreciate the work that has gone into getting this to work with the RT2800 version 4 wifi dongles. That being said would it be possible to update the wiki to be a bit more clear that - if you get no networks returned from a iwlist wlan0 scan - you might have a version 4 dongle and need to install the RT2800 update? Glossed over that little fact a bunch of times since there is nothing that really points out there are different versions of the dongle in the wild on the wiki. Finally found this post and got it sorted!!
tehnorm
 
Posts: 1
Joined: Fri Jan 07, 2011 7:48 pm

Re: Chumby WiFi cookbook fail

by adafruit on Sun Apr 24, 2011 7:34 pm

k!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Please be positive and constructive with your questions and comments.