|Can't get WiFi to work on Beaglebone A6a||Thomas Walter||1/4/13 12:29 PM|
I can't get WiFi to work on my BeagleBone Rev A6a using the Angstrom 09-12-12 which shipped with it.
It seems it doesn't get an IP address - here are all the details:
I use a Edimax nano USB adapter with a Realtek 8192 CU chipset - this is the same chipset like Adafruit sells: http://learn.adafruit.com/beaglebone/wifi
I took me some time to find out I need a USB extension cable between the Beaglebone and the adapter but now the adapter powers up reliably and nothing hangs anymore.
My 5 V power supply is strong enough.
I followed the instructions at http://learn.adafruit.com/beaglebone/wifi
When my board powers up demesg shows:
[ 13.848022] rtl8192cu: MAC address: 80:1f:02:84:fe:9a
[ 13.848052] rtl8192cu: Board Type 0
[ 15.344238] PHY: 0:00 - Link is Up - 100/Full
[ 15.344421] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 17.380981] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 17.381561] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 17.382537] usbcore: registered new interface driver rtl8192cu
[ 17.427154] rtl8192cu: MAC auto ON okay!
[ 17.502441] rtl8192cu: Tx queue select: 0x05
[ 17.503875] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cufw.bin
[ 18.111114] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 26.103607] eth0: no IPv6 routers present
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 7392:7811
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
This seems to be the correct vendor and product code for Realtek8192cu
But I get no Ethernet address.
If I type ifconfig wlan0 the output is:
wlan0 Link encap:Ethernet HWaddr 80:1F:02:84:FE:9A
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
My /var/lib/connman/wifi.config looks like:
Type = wifi
Name = Bookshelf Net
Security = wpa
Passphrase = notprintedhere
Any help is appreciated,
|Re: Can't get WiFi to work on Beaglebone A6a||greg1415||1/5/13 11:11 AM|
The rtl8192cu driver in the github repostiory used in the Adafruit tutorial is an older version that doesn't seem to keep a connection for more than a couple minutes. Downloading the latest (Nov 2012) driver from RealTek and compiling it directly on the BeagleBone works a lot better. The driver RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip is at http://www.realtek.com.tw/downloads/Red ... 121105.zip
I compiled and configured the adapter using "Quick Start Guide for Driver Compilation and Installation" in the zip file and http://embeddedgeeks.wordpress.com/2012/01/03/belkin-micro-wifi-usb-dongle-on-the-beagleboard/
One additional thing, I ran "make scripts" in the Angstrum /usr/src/kernel directory. It's probably better to use a copy of /usr/src/kernel, but I was lazy and did it in place.
I am using Angstrom v2012.05 kernel 3.2.34 from http://downloads.angstrom-distribution.org/demo/beaglebone/Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.11.22.img.xz
There are compiler options for minimizing memory usage and power saving modes. I haven't experimented to see what effect they have. Using the default compiler settings that came in the Makefile worked for me although the new driver is more verbose in dmesg and about 5x larger in the file system.
|Re: Can't get WiFi to work on Beaglebone A6a||Thomas Walter||1/10/13 5:36 AM|
Thanks, I posted the same question on group beagleboard as I had initially a confusion mixing up the boards.
I switched to Ubuntu where I experienced the same problem.
Like you recommended the only solution was to compile the driver using fresh source files from Realtek. I learned a lot this way about how Linux handles USB drivers.
So WiFi is working now and I'm happy
|Re: Can't get WiFi to work on Beaglebone A6a||Floof||1/17/13 10:55 PM|
I am still struggling to install the USB driver for the wifi module.
I downloaded the .zip file from Realtek, but their Quick Start guide makes no sense. When I try to run ./install.sh I get a message saying "Permission denied'.
How exactly did you guys compile the driver directly on the BeagleBone? I can't use the "wget" command to download the driver because RealTek does not allow hotlinking, and the Quick Start Guide references a file (make_drv) that doesn't exist! I am completely lost.
|Re: Can't get WiFi to work on Beaglebone A6a||greg1415||1/27/13 1:48 PM|
Here are step-by-step instructions for how I compiled the Realtek wifi driver on the Beaglebone starting with a fresh copy of Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.11.22.img.xz.
On a computer other than the Beaglebone and using a browser, go to http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8192CU
or go to http://www.realtek.com.tw/downloads, enter RTL8192CU in their download search textbox
Download the Unix package (3.4.4_4749 2012/11/12 7308k).
Unzip the package and go to the directory RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105\driver.
Connect the BeagleBone with a USB cable and 5V 2A power adapter
Put the BeagleBone in "network mode" by ejecting the BeagleBone storage device.
Use scp or winscp to copy the file rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz to the Beaglebone at email@example.com:/home/root (I'm doing everything as root in /home/root to make it simpler although it is a bad habit)
ssh to the BeagleBone, login as root
On the BeagleBone, extract the driver source (use the tab key autocomplete to save some typing):
# tar xf rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz
Edit the makefile (press insert key or i to add text in vim):
# vi rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/Makefile
edit line 39:
CONFIG_PLATFORM_I386_PC = n
add this line somewhere. (Line 64 was good for me).
CONFIG_PLATFORM_ARM_BEAGLE = y
add the following lines (I put mine towards the end of the other platform configs at line 455):
ifeq ($(CONFIG_PLATFORM_ARM_BEAGLE), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := /usr/bin/arm-angstrom-linux-gnueabi-
KSRC := /usr/src/kernel
KVER := $(shell uname -r)
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
MODULE_NAME := rtl8192cu
save and exit vim:
Make the helper scripts:
# cd /usr/src/kernel
# make scripts
Compile and install the driver:
# cd /home/root/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105
# make install
Create a wifi network settings file:
# vi /var/lib/connman/wifi.config
Type = wifi
Security = wpa
Name = myNetworkName (edit to match your network)
Passphrase = myPassphrase
save and exit vim:
Plug your Wifi adapter in the USB slot if it isn't already and restart the BeagleBone:
# shutdown -r now
Log back in and check if the wifi successfully connects to your network:
# /sbin/ifconfig wlan0
Optionally do some clean-up:
# rm -rf /home/root/rtl8188C*
|Re: Can't get WiFi to work on Beaglebone A6a||Floof||2/7/13 4:02 PM|
Excellent set of directions! I really appreciate the time you obviously spent outlining the last detail. I did everything you said without any apparent problems, until it came time to plug the wifi adapter in.
Despite following the directions, the USB adapter doesn't light up when I plug it in (yes, the AC adapter is plugged-in). Doing a bit of troubleshooting, I found that the BeagleBone does detect the device (finally!):
root@beaglebone:/sbin# lsusbBus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp.
But for some reason, there's still no wireless activity:
root@beaglebone:~# ifconfig wlan0
Again, the adapter simply does not light up when I plug it in. If I plug it into my PC, the adapter lights up immediately. I feel that these directions would fully work if I could figure out why the USB port is not being powered...
|Re: Can't get WiFi to work on Beaglebone A6a||CaptainJuno||2/24/13 7:35 PM|
Thank you so much for the write-up! I've been messing with this for a while now and this fixed it for me.
|Re: Can't get WiFi to work on Beaglebone A6a||CaptainJuno||2/24/13 7:42 PM|
Floof, I saw something like this when I was messing with it. After doing different reboots (reset button and 'reboot' command) and shutting down, it seemed to work. I had no particular order, I was just trying to figure it out. You could also try to 'make instal' to make sure that the module really got installed.
Also, double check your connman settings by doing:
Make sure that wifi is enabled by having true under the WiFi section.
|Re: Can't get WiFi to work on Beaglebone A6a||Calvin||2/26/13 5:27 PM|
These instructions were a life-saver! My beaglebone now has stable wifi. Thank you!
|Re: Can't get WiFi to work on Beaglebone A6a||Mauro Garcia||3/28/13 4:53 AM|
I experienced also a lot of problems trying to get a Wifi dongle (from ICIDU with Realtek chipset) working in my beaglebone. At the end I got it working in a WLAN connection with my router. But if I put other computer in hotspot in order to create an Adhoc network, it was impossible to connect it.
I have tried all the commands and possibilities available and finally I think it could come from a driver/device problem (in my desktop ubuntu version didnt work neither in adhoc).
Does anyone tried this with the Realtek chipsets?
|Re: Can't get WiFi to work on Beaglebone A6a||m.galla...@gmail.com||4/27/13 3:41 PM|
Thanks very much for all of the above. I've actually gotten this to work successfully in the past. However, I'm trying again with a fresh install of Angstrom and I'm running into some issues. Namely, my usr/src/kernel directory does not exist now.
I have run opkg install kernel-headers and opkg install kernel-dev but this didn't seem to do anything to resolve this issue. Can anyone give me some background on what should be contained in the usr/src/kernel directory as well as how to generate it if it does not exist? I've come across this link: http://elene.dahners.com/blog/tag/angstrom/ but it does not seem like this effort necessary, considering I am almost certain that I didn't go through this last time I imaged my BeagleBone and the usr/src/kernel directory still existed that time. If anyone could give me some feedback on this this weekend I would truly appreciate it, as I need wifi functioning this weekend.
|Re: Can't get WiFi to work on Beaglebone A6a||greg1415||4/28/13 7:50 PM|
If the new release of Angstom is messed up and you need it working this weekend, go back to the release that worked.
|Re: Can't get WiFi to work on Beaglebone A6a||richard....@gmail.com||6/4/13 4:25 PM|
So how come my version of Angstrom doesn't have /usr/src/kernel ?
|Re: Can't get WiFi to work on Beaglebone A6a||tee....@gmail.com||6/12/13 1:13 PM|
I face a strange problem with my BBB when I wanted to use an old TRENDnet N150 wifi dongle (TEW-648UB).
The rtl8712u.bin is missing in /lib/firmware/rtlwifi/
I attach the file that I find somewhere on the net.
This work for me now.
|unk...@googlegroups.com||6/13/13 6:33 AM||<This message has been deleted.>|
|Re: Can't get WiFi to work on Beaglebone A6a||chad.h...@gmail.com||2/9/14 12:26 PM|
Hi, I am trying to compile drivers for the Realtek 8192 chipset for Debian 7.3 for the BBB (the wiki still says the infamous Edimax dongle is compatible...)
I was able to modify the makefile as per Greg1415's instructions however I am stuck on this part as it is Angstrom specific, I think the lines I need to modify are CROSS_COMPILE, KSRC and MODDESTDIR. It looks like the current version available on Realtek's website is v4.0.2 from Sept 2013. Can I please get some guidance? I know Debian isn't officially supported but it's worth a shot...
MODULE_NAME := rtl8192cu;
Realtek 8192 CU chipset - this is the same chipset like Adafruit sells: http://learn.adafruit.com/beaglebone/wifi
|Re: Can't get WiFi to work on Beaglebone A6a||markbr...@gmail.com||2/26/14 2:57 PM|
Great instructions. Thanks!
I have run into a small problem. After making the driver, the make install command results in error.
Any ideas why the process would go flawlessly and then fail at make install? Any help or guidance would be appreciated. Thanks.
|Re: Can't get WiFi to work on Beaglebone A6a||Albert Burbea||3/3/14 4:14 AM|
Another question - is it possible to compile the driver on the host PC and build an image containing it ?