Olinuxino problem with wifi mod

Started by ozko, March 04, 2013, 11:02:59 AM

Previous topic - Next topic

ozko

I don`t know how could I have messed this up but it seem like my wifi mod is missing.
This is the Android sun5i_android_a13-evb_800x480_LCD_EN_SD.img I tried to re-write it it doesn`t help.
I tried with the VGA image and its all the same.

This is the LogCat debug

03-04 16:58:26.349: D/WifiHW(160): faied to read proc/net/wireless
03-04 16:58:26.349: D/WifiHW(160): insmod wifi driver...
03-04 16:58:26.549: E/WifiHW(160): timeout, register netdevice wlan0 failed.
03-04 16:58:26.589: E/WifiStateMachine(160): Failed to load driver!
03-04 16:58:26.609: E/WifiStateMachine(160): DriverFailedState
03-04 16:58:26.639: E/BluetoothAdapter(363): this device does not have Bluetooth support

Could someone help me to fix it?

P.S.
lsmod (if that info is helpful?)
rtl8150 10305 0 - Live 0xbf0a6000
mcs7830 7589 0 - Live 0xbf0a0000
qf9700 9152 0 - Live 0xbf099000
asix 24601 0 - Live 0xbf08d000
usbnet 26253 3 mcs7830,qf9700,asix, Live 0xbf080000
sun5i_csi0 31059 0 - Live 0xbf073000
gc0308 18408 1 - Live 0xbf06a000
videobuf_dma_contig 6251 1 sun5i_csi0, Live 0xbf065000
videobuf_core 20242 2 sun5i_csi0,videobuf_dma_contig, Live 0xbf05b000
cedarx 9479 0 - Live 0xbf054000
mali 151622 8 - Live 0xbf021000
ump 49258 11 mali, Live 0xbf00d000
sun4i_keyboard 2677 0 - Live 0xbf009000
sun4i_ts 17860 0 - Live 0xbf000000

Thank you in advance
Hristiyan

murerten

It looks like the module is loaded (rtl8150). But is it wired to the board correctly? May be it is not working. Did it work at least once correctly?

ozko

Yes, until this morning it worked perfectly, yesterday I was trying stuff with SureLock app.
Maybe it did something but since then I have formated the NAND and rewrite the Image,
even tried different images but no result.

murerten

Maybe it's a hardware problem. Did you check the output of dmesg command. Also is your power supply is good? Or did you changed script.bin file? I would check these.

ozko

I`m using the olimex power supply that come with the board and its working fine, and I haven`t touch script.bin :/
This is from the dmesg:
<6>[    5.540000] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
<6>[    5.560000] usbcore: registered new interface driver rtl8150

And I don`t know if this bring any light to the question?

[10854.180000] sw_usb_enable_hcd: usbc_num = 1
[10854.180000] WRN:L872(drivers/usb/host/ehci_sun5i.c):ERR: not support sw_usb_enable_ehci
[10854.190000] WRN:L759(drivers/usb/host/ohci_sun5i.c):ERR: not support sw_usb_enable_ohci
[10854.200000] rtw driver version=v3.4.2_3727.20120404
[10854.200000] Build at: Oct 16 2012 09:15:11
[10854.210000] ##########rtw_suspend_lock_init ###########
[10854.220000] usbcore: registered new interface driver rtl8192cu
[10858.640000] +rtw_drv_halt
[10858.640000] ##########rtw_suspend_lock_uninit###########
[10858.640000] usbcore: deregistering interface driver rtl8192cu
[10858.650000] -rtw_drv_halt
[10858.650000] sw_usb_disable_hcd: usbc_num = 1
[10858.660000] WRN:L819(drivers/usb/host/ehci_sun5i.c):ERR: not support sw_usb_disable_ehci
[10858.670000] WRN:L706(drivers/usb/host/ohci_sun5i.c):ERR: not support sw_usb_disable_ohci

murerten

I may be wrong but it loads the module but then unloads the module. Can you try this command:

busybox lsusb

It lists usb devices and their vendor and product ids (for example 05e3:0608) Can you search those ids of yours? Are they related to rtl8192cu? I mean if your wifi works it should be listed there.

ozko

Well there is dev with the same pid:vid as you said Bus 002 Device 002: ID 05e3:0608
Probably its what you said [10858.640000] usbcore: deregistering interface driver rtl8192cu
but still I have no idea how to fix it.
Thank you for working on that with me, because I definitely won`t be able to fix it.

murerten

#7
My 'busybox lsusb' lists the wifi device whether I turn on or off wifi

0bda:8176

When I turn on the wifi lsmod lists 8192cu; but when I turn off it disappears.

ozko

When I start the board the wifi is off, but lsmod still lists it :rtl8150 10305 0 - Live 0xbf0a6000
Then when I turn wifi it stays the same.

And the usb devices does not change :
Bus 001 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 05e3:0608
Bus 002 Device 003: ID 0403:6001

How can I check rtl8150 pid:vid, is it even in those devices?

murerten

rtl8150 is different from rtl8192cu. rtl8150 is usb ethernet device module. I mixed them at first too.

If lsusb doesn't list the 0bda:8176 wifi is not plugged, I mean connected. Maybe it broke down.

But to be sure it's not software do you format while you flash image from livesuit?

ozko

Yes I formatted trough livesuit, maybe its the board I`ll check it tomorrow.
Thanks for the help a lot!!  ;)

ozko

Well actually the thing that fixed the problem was full power down.
I disconnected the adapter, the battery and I always forget that the usb powers the board too :/
After all that everything worked fine... don`t know what cause it thou.