usb Wifi RTL8188CUS with AT91SAM9x35

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

nmmane
Posts: 11
Joined: Mon Aug 14, 2017 9:36 am

usb Wifi RTL8188CUS with AT91SAM9x35

Thu Sep 14, 2017 8:51 am

I am trying to connect RTL8188CUS USB WiFi Dongle with AT91SAM9X35.

I have test this hardware with UBUNTU PC and it works fie.
I have connect this with AT91SAM9X35 board. and tried to up the network.

Code: Select all

usb 2-3: not running at top speed; connect to a high speed hub
usb 2-3: New USB device found, idVendor=0bda, idProduct=8176
usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-3: Product: 802.11n WLAN Adapter
usb 2-3: Manufacturer: Realtek
usb 2-3: SerialNumber: 00e04c000001
rtl8192cu: Chip version 0x10
>udevd[578]: starting version 182
rtl8192cu: MAC address: 00:1d:43:10:15:0c
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
rtlwifi: wireless switch is on
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Code: Select all

# iwconfig 
lo        no wireless extensions.

sit0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on
          
eth0      no wireless extensions.

can0      no wireless extensions.

Code: Select all

#wpa_passphrase "xxxxxx100" "xxxxxx100" >> /etc/wpa_supplicant.conf 

Code: Select all

# wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
rfkill: Cannot open RFKILL control device
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx censored select: 0x05
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
atmel_nand 40000000.nand: Bit flip in data area, byte_pos: 910, bit_pos: 1, 0x26 -> 0x24
atmel_nand 40000000.nand: Bit flip in data area, byte_pos: 910, bit_pos: 1, 0x26 -> 0x24
# 
unable to set ip through dhcp

Code: Select all

udhcpc -i wlan0
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
So I set manually

Code: Select all

# ifconfig wlan0 192.168.0.106 netmask 255.255.255.0

Code: Select all

#wlan0     Link encap:Ethernet  HWaddr 00:1D:43:10:15:0C  
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0
          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)

when try to ping the router

Code: Select all

# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes

there is no reponse.
Where Did i wrong?
How can i dignose where is the problem?



when connected to pc it detects as

Code: Select all

[ 9937.342186] usb 2-1.4: Product: 802.11n WLAN Adapter
[ 9937.342188] usb 2-1.4: Manufacturer: Realtek
[ 9937.342191] usb 2-1.4: SerialNumber: 00e04c000001
[ 9937.342781] rtl8192cu: Chip version 0x10
[ 9937.450868] rtl8192cu: MAC address: 00:1d:43:10:15:0c
[ 9937.450874] rtl8192cu: Board Type 0
[ 9937.451115] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 9937.451147] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 9937.451347] ieee80211 phy3: Selected rate control algorithm 'rtl_rc'
[ 9937.451865] rtlwifi: wireless switch is on
[ 9937.464130] rtl8192cu: MAC auto ON okay!
[ 9937.500734] rtl8192cu: Tx censored select: 0x05
[ 9937.867705] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 9937.868294] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 9939.316181] wlan1: authenticate with b0:c5:54:de:29:fa
[ 9939.341003] wlan1: send auth to b0:c5:54:de:29:fa (try 1/3)
[ 9939.344484] wlan1: authenticated
[ 9939.344637] rtl8192cu 2-1.4:1.0 wlan1: disabling HT/VHT due to WEP/TKIP use
[ 9939.347936] wlan1: associate with b0:c5:54:de:29:fa (try 1/3)
[ 9939.371499] wlan1: RX AssocResp from b0:c5:54:de:29:fa (capab=0x431 status=0 aid=2)
[ 9939.371560] wlan1: associated
[ 9939.371639] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 9939.386407] wlan1: deauthenticating from b0:c5:54:de:29:fa by local choice (reason=2)
[ 9939.387726] wlan1: authenticate with b0:c5:54:de:29:fa
[ 9939.388740] wlan1: send auth to b0:c5:54:de:29:fa (try 1/3)
[ 9939.414342] wlan1: authenticated
[ 9939.414532] rtl8192cu 2-1.4:1.0 wlan1: disabling HT/VHT due to WEP/TKIP use
[ 9939.415898] wlan1: associate with b0:c5:54:de:29:fa (try 1/3)
[ 9939.444876] wlan1: RX AssocResp from b0:c5:54:de:29:fa (capab=0x431 status=0 aid=2)
[ 9939.444915] wlan1: associated
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: usb Wifi RTL8188CUS with AT91SAM9x35

Fri Sep 15, 2017 9:12 pm

nmmane wrote:I am trying to connect RTL8188CUS USB WiFi Dongle with AT91SAM9X35.

I have test this hardware with UBUNTU PC and it works fie.
I have connect this with AT91SAM9X35 board. and tried to up the network.
This seems to be an apples to oranges comparison.
The different arches should not make a difference, but these are two different kernel builds, and more importantly probably two different kernel versions (which you choose to not mention).
Another big discrepancy is that firmware images with different names are loaded for the RTL device.

Regards
nmmane
Posts: 11
Joined: Mon Aug 14, 2017 9:36 am

Re: usb Wifi RTL8188CUS with AT91SAM9x35

Sat Sep 16, 2017 6:13 am

This seems to be an apples to oranges comparison.
I have mentioned about Desktop PC testing because , I want to tell that USB hardware is ok.
Another big discrepancy is that firmware images with different names are loaded for the RTL device.
I don’t understand what do you want to say.

Details for platform and software i have used

kernel version : 3.6.9
USB hardware : RTL8188CUS
Driver Selected : Device Driver-->
Network device support-->
Wireless Lan-->
-->Realtek RTL8192CU/RTL8188CU USBwireless network adaptor.

as compatibility : https://wiki.debian.org/rtl819x#r8192cu

firmware downloaded: rtl8192cufw.bin


more observstions i found :

1) from lots of attempts once i have successfully connected to router via AT91SAM9x35.

2) sometimes

Code: Select all

# dmesg | grep rtl
usbcore: registered new interface driver rtl8187
usbcore: registered new interface driver rtl8192cu
rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: 00:1d:43:b0:6c:80
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
rtlwifi: 2.Firmware rtlwifi/rtl8192cufw.bin not available
rtlwifi: reg 0x102, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x8020bc2b
rtlwifi: reg 0x422, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x8020bc2b
rtlwifi: reg 0x542, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x20
rtlwifi: reg 0x824, usbctrl_vendorreq TimeOut! status:0xffffffed value=0x80
rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: 00:1d:43:b0:6c:80
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
rtlwifi: wireless switch is on
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx censored select: 0x05

============when tried to up the network==========

rtl8192c_common:_rtl92c_fw_free_to_go():<0-0> chksum report faill ! REG_MCUFWDL:0x00030000
rtl8192c_common:rtl92c_download_fw():<0-0> Firmware is not ready to run!



3) sometimes got error

Code: Select all

# dmesg | grep rtl
usbcore: registered new interface driver rtl8187
usbcore: registered new interface driver rtl8192cu
rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: 00:1d:43:b0:6c:80
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
===and after long time 5-0 seconds got following errror on terminal====
# rtlwifi: 2.Firmware rtlwifi/rtl8192cufw.bin not available

==then if tried to up the network then got flowing error===
rtl8192c_common:_rtl92c_fw_free_to_go():<0-0> chksum report faill ! REG_MCUFWDL:0x00030000
rtl8192c_common:rtl92c_download_fw():<0-0> Firmware is not ready to run!

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests