RTL8192cu in yocto built linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTL8192cu in yocto built linux

Jump to solution
3,421 Views
jaffinmk
Contributor III

Hello all

I am having some trouble porting rtl8192cu to imx6 qp sabre board running linux kernel 4.1.15 (yocto build krogoth). I actually customised the kernel and included the wifi driver rtl8192cu.ko. And when I connect the wifi usb module to the boardthe module picks it up too. But after loading the firmware it tries to register some other sound driver everytime which returns an error and thats it. Wifi still doesnt work no wlan0 interface. Please advise what I might be missing. Heres the dmesg output from I tried to connect the wifi usb dongle.

[ 2380.584220] usb 2-1: new high-speed USB device number 4 using ci_hdrc
[ 2380.737257] rtl8192cu: Chip version 0x10
[ 2380.827481] rtl8192cu: MAC address: 00:17:7c:22:88:18
[ 2380.831258] rtl8192cu: Board Type 0
[ 2380.833714] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 2380.838726] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 2380.845476] ieee80211 phy2: Selected rate control algorithm 'rtl_rc'
[ 2380.849447] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[ 2380.854354] imx-wm8962 sound: snd_soc_register_card failed (-517)
[ 2380.860584] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[ 2380.865461] imx-wm8962 sound: snd_soc_register_card failed (-517)
[ 2551.131336] usb 2-1: USB disconnect, device number 4
[ 2553.964217] usb 2-1: new high-speed USB device number 5 using ci_hdrc
[ 2554.117141] rtl8192cu: Chip version 0x10
[ 2554.204014] rtl8192cu: MAC address: 00:17:7c:22:88:18
[ 2554.207811] rtl8192cu: Board Type 0
[ 2554.210248] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 2554.215267] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 2554.222002] ieee80211 phy3: Selected rate control algorithm 'rtl_rc'
[ 2554.225764] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[ 2554.230609] imx-wm8962 sound: snd_soc_register_card failed (-517)
[ 2554.236817] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[ 2554.241674] imx-wm8962 sound: snd_soc_register_card failed (-517)
[ 5397.009146] cfg80211: no symbol version for module_layout
[13082.303739] usb 2-1: USB disconnect, device number 5
[13084.464220] usb 2-1: new high-speed USB device number 6 using ci_hdrc
[13084.617174] rtl8192cu: Chip version 0x10
[13084.703550] rtl8192cu: MAC address: 00:17:7c:22:88:18
[13084.707348] rtl8192cu: Board Type 0
[13084.709782] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[13084.714785] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[13084.721490] ieee80211 phy4: Selected rate control algorithm 'rtl_rc'
[13084.725300] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[13084.730144] imx-wm8962 sound: snd_soc_register_card failed (-517)
[13084.736349] imx-wm8962 sound: ASoC: CPU DAI (null) not registered
[13084.743953] imx-wm8962 sound: snd_soc_register_card failed (-517)

Labels (3)
0 Kudos
1 Solution
2,183 Views
jaffinmk
Contributor III

Finally after almost a weeks pulling out my hair, I managed to connect the wifi module to the net. Well sort of. Still not perfect. And lot of questions to be answered.

So the error I was having there was due to rfkill blocking the hardware to connect (but still dont know why sound soc kept popping up in the log whenever I connected the wifi dongle anyways). So I used 'rfkill unblock all' to unblock my wifi dongle. But still it didnt connect. But it was showing a ipnet6 address so I disabled ipv6 in boot options using 'ipv6.disable=1'. But still it wouldnt connect no matter what settings I did. Finally I changed dhcp to static for wlan0 in /etc/network/interfaces since I had noticed whenever I connect the ethernet it always connected to a single static ip. Turns out I was right. Wifi got connected. DHCP is not working. Any of you have any idea why this is so?? Do I have to build something because dhcpcd command doesnt work.

View solution in original post

0 Kudos
2 Replies
2,184 Views
jaffinmk
Contributor III

Finally after almost a weeks pulling out my hair, I managed to connect the wifi module to the net. Well sort of. Still not perfect. And lot of questions to be answered.

So the error I was having there was due to rfkill blocking the hardware to connect (but still dont know why sound soc kept popping up in the log whenever I connected the wifi dongle anyways). So I used 'rfkill unblock all' to unblock my wifi dongle. But still it didnt connect. But it was showing a ipnet6 address so I disabled ipv6 in boot options using 'ipv6.disable=1'. But still it wouldnt connect no matter what settings I did. Finally I changed dhcp to static for wlan0 in /etc/network/interfaces since I had noticed whenever I connect the ethernet it always connected to a single static ip. Turns out I was right. Wifi got connected. DHCP is not working. Any of you have any idea why this is so?? Do I have to build something because dhcpcd command doesnt work.

0 Kudos
2,183 Views
jimmychan
NXP TechSupport
NXP TechSupport

There are driver package and detail porting documentation from Realtek. The document name is "Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf". I think you can request this from the Realtek.