This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RealTek RTL8192CU USB WiFi on BBB with SDK7

Other Parts Discussed in Thread: AM3359

I am prototyping a custom kernel + rootfs on a BBB revD using the SDK7. I am using the RealTek rtl8192cu driver on a device using the RealTek 8188CU chipset (Edimax EW-7811Un). 

The driver loads successfully, but there are some issues I have encountered.

# dmesg | grep rtlwifi
[    3.754408] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[   63.844972] rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin
[   63.855604] rtlwifi: wireless switch is on

(1) Where is the official place to get the firmware to match the driver version? It is not located in the SDK and it is not in the Linux driver package offered by RT. I did find them on my Ubuntu 14.04 distribution..but where does Ubuntu pull these versions from...is it compatible?

(2) When the rtlwifi driver is loaded it makes two firmware requests, first for "rtl8192cufw_TMSC.bin" and secondly "rtl8192cufw.bin". Oddly it takes 60 seconds. How can the delay be removed/improved?

(3) Using firmware found in my Ubuntu 14.04 distribution. The driver accepts these firmware images and registers a wlan0 interface. Bringing the interface up, the Edimax blinks its blue LED.

# ifconfig wlan0 up
[  504.243337] rtl8192cu: MAC auto ON okay!
[  504.267996] rtl8192cu: Tx queue select: 0x05

(4) What is the right /etc/network/interface setting to use such that the wlan0 automatically comes up when it is registered? "allow-hotplug" doesn't seem to do the trick here.

# Wireless interface
allow-hotplug wlan0
iface wlan0 inet dhcp

(5) Advice on the current/modern target packages needed for authenticating and associating with an AP (seems like there are several methodologies)? Is wpa_supplicant the right utility? Any documentation/link/guidance for building up my rootfs would be helpful. Once the wlan0 interface is up, I would like my device to automatically associate to my AP and DHCP an IP address from the router behind my AP.

Thanks in advance.

--John

  • For your first three questions you should turn to the chipset manufacturer.

  • Dear sir:

    i am use the am3359 for beaglebone internel rtl8192cu driver ,
    re-make menuconfig the rtl8192cu driver to kernel ,after power on  i use dmesg to check the driver message below:

    root@am335x-evm:~# dmesg | grep rtl
    [    1.126251] usbcore: registered new interface driver rtl8192cu
    root@am335x-evm:~#
    root@am335x-evm:~# [  106.111816] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [  106.252166] usb 1-1: New USB device found, idVendor=0bda, idProduct=8179
    [  106.259185] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  106.266632] usb 1-1: Product: 802.11n NIC
    [  106.270812] usb 1-1: Manufacturer: Realtek
    [  106.275085] usb 1-1: SerialNumber: 00E04C0001

    root@am335x-evm:~#
    root@am335x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr D4:94:A1:8F:53:7A
              UP BROADCAST ALLMULTI 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
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B

    root@am335x-evm:~# ifconfig wlan0 up
    ifconfig: SIOCGIFFLAGS: No such device

    root@am335x-evm:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.

    why can infconfig wlan0 up?


    Best regards

  • I have asked the factory team for support on this, but response may be delayed as the person involved is out of office for the next two weeks.

  • Type in ifconfig -a to see all of your interfaces. The error you are seeing says there is no wlan0 interface. Also type in dmesg. I've seen these kinds of errors when the driver and firmware do not match.

    Steve K.

  • Hi, the linux mainline kernel driver for rtl8192cu is broken,  does not work reliably. I used driver from this page https://github.com/pvaret/rtl8192cu-fixes

    I am using this driver with a rtl8192cu device and it works without any problems.

    Regards

  • hi Krzysztof Stasch,

    I am working on am335xevm, i want to use edimax usb wifi dongle on it, how to compile the wifi driver for the same.

    Regards,
    Mohammed asif.