hmartiro / project-thesis

xJüs, the hexapodal robot with a passive-backbone to improve behavior over harsh terrain.
4 stars 2 forks source link

Get wireless dongle working on the CPU #26

Closed hmartiro closed 11 years ago

hmartiro commented 11 years ago

linux drivers, etc. we need the beagleboard connected.

hmartiro commented 11 years ago

wlan0 interface established through /etc/network/interfaces. seems to be connected to a network from my laptop, but no actual connection.

blaming the kernel 8912cu driver, so trying to install realtek driver. in the makefile, need a link to the kernel source, but don't really have it. is it the minimal zip used to make the SD card, or the generic ubuntu kernel source? looks like generic kernel source

hmartiro commented 11 years ago

many hours of learning about this stuff later...

Running sudo iwconfig wlan0 essid puwireless reliably connects to an access point. However, DHCP doesn't seem to work. sudo dhclient wlan0 -v shows DHCP requests going out, but no response to assign an IP address.

One time, dhcp actually worked and I was able to get on the internet through wifi. However, it was slow and bad things started happening, and soon after the driver shut it off.

In the end, I've tried a lot of methods through the command line and also through WICD and network-manager, and none of them reliably provide an IP address. I doubt it's princeton's network, because it also doesn't connect to a wifi network I create from my laptop.

That combined with the random unpredictable behavior I think confirms that the driver is at fault. As of now, I'm still using the rtl8192cu driver that is included with the linux kernel, and not the one from the realtek website. I think really the only next step is to get the kernel headers and compile the realtek driver.

Not exactly sure how to get the headers, but I think the best option is to try and cross compile using the RobertCNelson scripts, based on the Beagleboard googlegroup.

hmartiro commented 11 years ago

Wireless is working but very slow (~100 kbps) with the built in driver. Makes it mostly unusable, so we still need to try to upgrade the driver.

I got the kernel header built by cross-compiling it on my laptop. It's located here. Next step is to put that on the board and try to compile the realtek module.

PayneTrain commented 11 years ago

Can you and I chat tonight about the Beagle board so ik what ur doing On Nov 25, 2012 11:14 AM, "Hayk Martirosyan" notifications@github.com wrote:

Wireless is working but very slow (~100 kbps) with the built in driver. Makes it mostly unusable, so we still need to try to upgrade the driver.

I got the kernel header built by cross-compiling it on my laptop. It's located herehttps://github.com/hmartiro/project-thesis/tree/master/CPU%20Files. Next step is to put that on the board and try to compile the realtek module.

— Reply to this email directly or view it on GitHubhttps://github.com/hmartiro/project-thesis/issues/26#issuecomment-10695053.

hmartiro commented 11 years ago

sure. i'm just trying to get a good wireless connection

On Sun, Nov 25, 2012 at 11:53 AM, PayneTrain notifications@github.comwrote:

Can you and I chat tonight about the Beagle board so ik what ur doing On Nov 25, 2012 11:14 AM, "Hayk Martirosyan" notifications@github.com wrote:

Wireless is working but very slow (~100 kbps) with the built in driver. Makes it mostly unusable, so we still need to try to upgrade the driver.

I got the kernel header built by cross-compiling it on my laptop. It's located here< https://github.com/hmartiro/project-thesis/tree/master/CPU%20Files>. Next step is to put that on the board and try to compile the realtek module.

— Reply to this email directly or view it on GitHub< https://github.com/hmartiro/project-thesis/issues/26#issuecomment-10695053>.

— Reply to this email directly or view it on GitHubhttps://github.com/hmartiro/project-thesis/issues/26#issuecomment-10695455.

hmartiro commented 11 years ago

New driver is installed, works like a champ.

Now I just need to figure out how to connect automatically instead of having to run sudo iwconfig wlan0 essid puwireless every time. Having wireless-essid puwireless in /etc/network/interfaces doesn't do the trick.

hmartiro commented 11 years ago

Installed WICD and enabled autologin, seems to work plus has a GUI.

Happily closing this issue, but focus goes to remote desktop and ssh access because WiFi doesn't provide a static IP, so we need a way to access the CPU without having to check the assigned IP every time.