WLAN USB adapter to MangOH

Hello,
I connected a WLAN USB ISY IWL2000 Adapter to MangOH.
root@swi-mdm9x15:/# lsusb
Bus 001 Device 006: ID 050d:11f2 Belkin Components ISY Wireless Micro Adapter IWL 2000 [RTL8188CUS]
Bus 001 Device 004: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 003: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 002: ID 0424:3503 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ifconfig does not list wlan0

root@swi-mdm9x15:/# ifconfig
eth0 Link encap:Ethernet HWaddr 52:AE:24:AA:76:ED
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
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
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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)

usb0 Link encap:Ethernet HWaddr D2:C4:29:83:98:B3
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d0c4:29ff:fe83:98b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:501 errors:0 dropped:0 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37527 (36.6 KiB) TX bytes:47365 (46.2 KiB)

Which steps should I follow to configure it?

Hi,

You need to add kernel driver for the Realtek RTL8188CUS chipset.

So, you have to play a bit with Yocto in order to rebuild new kernel/rootfs images with all the needed stuff.

RTL8188CUS is using the same driver as RTL8192CU: check other projects like Raspberry Pi or OpenWRT for info about how to integrate such a driver.

Also, maybe some existing Yocto recipes like the following one can help:
github.com/resin-io/meta-resin/ … .2_9000.bb

Jay

Hi,

I did the exercise to integrate all the drivers and tools in order to support USB WiFi dongles based on Realtek RTL8192CU/RTL8188CUS chipset.

It is working fine on my mangOH board with WP8548 running the firmware SWI9X15Y_07.05.01.00 (the one delivered with Legato 15.10).

My WiFi dongle used for the test is the famous Edimax EW-7811UN (based on RTL8188CUS).

If you want to test it, I have uploaded a Yocto image (kernel+rootfs) for WP85 target:
Yocto image (only for SWI9X15Y_07.05.01.00)

Warning:
Prior to install this image, your mangOH board (WP8548 module) must be already upgraded to Legato 15.10 (firmware SWI9X15Y_07.05.01.00).
Do not try to install it on top of another version.

Then, here is an example about how to use it:

[code]# modprobe rtl8192cu

iw dev wlan0 info

Interface wlan0
ifindex 12
wdev 0x1
addr 74:da:38:xx:xx:xx
type managed
wiphy 0

ifconfig wlan0 up

wpa_supplicant -B -i wlan0 -c wifi.conf

Successfully initialized wpa_supplicant
[ 479.072394] wlan0: authenticate with 00:1a:1e:xx:xx:xx
[ 479.114146] wlan0: send auth to 00:1a:1e:xx:xx:xx (try 1/3)
[ 479.123363] wlan0: authenticated
[ 479.126323] rtl8192cu 1-1.3.2:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 479.142652] rtl8192cu 1-1.3.2:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 479.167312] wlan0: associate with 00:1a:1e:xx:xx:xx (try 1/3)
[ 479.178605] wlan0: RX AssocResp from 00:1a:1e:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 479.188310] wlan0: associated
[ 479.190324] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

iw dev wlan0 link

Connected to 00:1a:1e:xx:xx:xx (on wlan0)
SSID: MYWIFIHOTSPOT
freq: 2412
RX: 88966 bytes (1616 packets)
TX: 978 bytes (10 packets)
signal: -40 dBm
tx bitrate: 18.0 MBit/s

    bss flags:      short-preamble short-slot-time
    dtim period:    0
    beacon int:     100

udhcpc -i wlan0

udhcpc (v1.22.1) started
Sending discover…
Sending select for 192.168.40.190…
Lease of 192.168.40.190 obtained, lease time 28800
/etc/udhcpc.d/50default: Adding DNS 8.8.8.8
/etc/udhcpc.d/50default: Adding DNS 4.2.2.2

ifconfig wlan0

wlan0 Link encap:Ethernet HWaddr 74:DA:38:xx:xx:xx
inet addr:192.168.40.190 Bcast:192.168.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1204 (1.1 KiB) TX bytes:2614 (2.5 KiB)

ping -c 4 www.legato.io

PING www.legato.io (185.31.18.133): 56 data bytes
64 bytes from 185.31.18.133: seq=0 ttl=54 time=23.226 ms
64 bytes from 185.31.18.133: seq=1 ttl=54 time=25.729 ms
64 bytes from 185.31.18.133: seq=2 ttl=54 time=20.968 ms
64 bytes from 185.31.18.133: seq=3 ttl=55 time=25.515 ms

www.legato.io ping statistics —
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 20.968/23.859/25.729 ms[/code]


Jay

Hi Jay,

now it works.

root@swi-mdm9x15:~# ifconfig
eth0 Link encap:Ethernet HWaddr 9A:D4:75:C2:9B:D7
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
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
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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)

usb0 Link encap:Ethernet HWaddr F2:A9:2C:54:0D:B3
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::f0a9:2cff:fe54:db3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6063 errors:0 dropped:0 overruns:0 frame:0
TX packets:8261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:464100 (453.2 KiB) TX bytes:4654500 (4.4 MiB)

wlan0 Link encap:Ethernet HWaddr EC:1A:59:D5:80:5E
inet addr:192.168.137.179 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::ee1a:59ff:fed5:805e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2405 (2.3 KiB) TX bytes:2133 (2.0 KiB)

root@swi-mdm9x15:~# ping www.google.de
PING www.google.de (173.194.112.143): 56 data bytes
64 bytes from 173.194.112.143: seq=0 ttl=47 time=78.224 ms
64 bytes from 173.194.112.143: seq=1 ttl=47 time=113.017 ms

Thanks!!