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.

Firmware failed in USB WiFi adapter



Hi all 

i m using ompa3evm customized board ,android 4.03 stack ,I'm using USB WiFi adapter(Ralink Rt2870 ) , after plug it its firmware failed , in android kernel Where should i put firmware.

Kindly please Suggest me.

Log as below 

root@android:/ # [ 97.588470] usb 1-1.4: new high speed USB device using ehci-omap and address 5
[ 97.731445] usb 1-1.4: New USB device found, idVendor=1737, idProduct=0077
[ 97.738647] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 97.746307] usb 1-1.4: Product: 802.11 g WLAN
[ 97.750854] usb 1-1.4: Manufacturer: Ralink
[ 97.755249] usb 1-1.4: SerialNumber: 1.0
[ 97.762786] usbip 1-1.4:1.0: this device 1-1.4 is not in match_busid table. skip!
[ 97.771118] === pAd = d1808000, size = 464080 ===
[ 97.776092] <-- RTMPAllocAdapterBlock, Status=0
[ 97.781341] ------------[ cut here ]------------
[ 97.786224] WARNING: at include/linux/netdevice.h:1557 RtmpPhyNetDevInit+0x80/0xc4()
[ 97.794342] Modules linked in: wl12xx_sdio(-) omaplfb pvrsrvkm wl12xx mac80211 cfg80211 compat [last un]
[ 97.806030] Backtrace:
[ 97.808624] [<c0094390>] (dump_backtrace+0x0/0x110) from [<c05f7dc0>] (dump_stack+0x18/0x1c)
[ 97.817443] r7:00000000 r6:c04a5570 r5:c0742970 r4:00000615
[ 97.823394] [<c05f7da8>] (dump_stack+0x0/0x1c) from [<c00bcf64>] (warn_slowpath_common+0x54/0x6c)
[ 97.832702] [<c00bcf10>] (warn_slowpath_common+0x0/0x6c) from [<c00bcfa0>] (warn_slowpath_null+0x24/0x2)
[ 97.842742] r9:ceaa4000 r8:00000006 r7:00000007 r6:d1808000 r5:ceaa4c00
[ 97.849609] r4:cf0c3c10
[ 97.852325] [<c00bcf7c>] (warn_slowpath_null+0x0/0x2c) from [<c04a5570>] (RtmpPhyNetDevInit+0x80/0xc4)
[ 97.862091] [<c04a54f0>] (RtmpPhyNetDevInit+0x0/0xc4) from [<c05f7088>] (rtusb_probe+0x260/0x348)
[ 97.871368] r6:c2590408 r5:cf0c3c10 r4:d1808000
[ 97.876220] [<c05f6e28>] (rtusb_probe+0x0/0x348) from [<c03ad468>] (usb_probe_interface+0x10c/0x17c)
[ 97.885803] [<c03ad35c>] (usb_probe_interface+0x0/0x17c) from [<c0317e68>] (driver_probe_device+0xd0/0x)
[ 97.895996] [<c0317d98>] (driver_probe_device+0x0/0x190) from [<c0317ff8>] (__device_attach+0x44/0x48)
[ 97.905731] r7:00000000 r6:ceb40220 r5:ceb40220 r4:c07fb2ac
[ 97.911682] [<c0317fb4>] (__device_attach+0x0/0x48) from [<c03172a0>] (bus_for_each_drv+0x50/0x90)
[ 97.921051] r5:c0317fb4 r4:00000000
[ 97.924804] [<c0317250>] (bus_for_each_drv+0x0/0x90) from [<c0318098>] (device_attach+0x70/0x94)
[ 97.934143] r6:ceb40254 r5:ceb40220 r4:ceb40220
[ 97.938995] [<c0318028>] (device_attach+0x0/0x94) from [<c0317108>] (bus_probe_device+0x2c/0x48)
[ 97.948150] r7:00000000 r6:ceaa4000 r5:ceb40220 r4:ceb40200
[ 97.954071] [<c03170dc>] (bus_probe_device+0x0/0x48) from [<c031592c>] (device_add+0x324/0x484)
[ 97.963195] [<c0315608>] (device_add+0x0/0x484) from [<c03abce8>] (usb_set_configuration+0x568/0x604)
[ 97.972808] [<c03ab780>] (usb_set_configuration+0x0/0x604) from [<c03b3c48>] (generic_probe+0x54/0x88)
[ 97.982543] [<c03b3bf4>] (generic_probe+0x0/0x88) from [<c03acc9c>] (usb_probe_device+0x3c/0x40)
[ 97.991760] r5:c07e7bec r4:ceaa4000
[ 97.995513] [<c03acc60>] (usb_probe_device+0x0/0x40) from [<c0317e68>] (driver_probe_device+0xd0/0x190)
[ 98.005340] r5:ceaa4068 r4:c07e7bec
[ 98.009094] [<c0317d98>] (driver_probe_device+0x0/0x190) from [<c0317ff8>] (__device_attach+0x44/0x48)
[ 98.018829] r7:00000000 r6:ceaa4068 r5:ceaa4068 r4:c07e7bec
[ 98.024749] [<c0317fb4>] (__device_attach+0x0/0x48) from [<c03172a0>] (bus_for_each_drv+0x50/0x90)
[ 98.034271] r5:c0317fb4 r4:00000000
[ 98.038024] [<c0317250>] (bus_for_each_drv+0x0/0x90) from [<c0318098>] (device_attach+0x70/0x94)
[ 98.047210] r6:ceaa409c r5:ceaa4068 r4:ceaa4068
[ 98.052062] [<c0318028>] (device_attach+0x0/0x94) from [<c0317108>] (bus_probe_device+0x2c/0x48)
[ 98.061248] r7:00000000 r6:cf01fc80 r5:ceaa4068 r4:cf0c3ea9
[ 98.067199] [<c03170dc>] (bus_probe_device+0x0/0x48) from [<c031592c>] (device_add+0x324/0x484)
[ 98.076324] [<c0315608>] (device_add+0x0/0x484) from [<c03a5784>] (usb_new_device+0xf8/0x170)
[ 98.085235] [<c03a568c>] (usb_new_device+0x0/0x170) from [<c03a6b64>] (hub_thread+0x8cc/0xd64)
[ 98.094238] r6:cf260418 r5:ceaa4000 r4:00000000
[ 98.099121] [<c03a6298>] (hub_thread+0x0/0xd64) from [<c00d7868>] (kthread+0x8c/0x94)
[ 98.107299] [<c00d77dc>] (kthread+0x0/0x94) from [<c00c02c4>] (do_exit+0x0/0x63c)
[ 98.115142] r7:00000013 r6:c00c02c4 r5:c00d77dc r4:cf01bf18
[ 98.121063] ---[ end trace f5abfac638a31a1d ]---
[ 98.125885] netif_stop_queue() cannot be called before register_netdev()
root@android:/ #
[ 175.979766] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 175.986572] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 175.992675] rt28xx Initialized fail!
[ 176.101623] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.108245] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.114410] rt28xx Initialized fail!
[ 176.223785] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.230377] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.236511] rt28xx Initialized fail!
[ 176.345275] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.351867] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.358032] rt28xx Initialized fail!
[ 176.467681] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.474304] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.480468] rt28xx Initialized fail!
[ 176.590026] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.596649] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.602752] rt28xx Initialized fail!
[ 176.711242] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.717834] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.723999] rt28xx Initialized fail!
[ 176.833251] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.839874] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.846008] rt28xx Initialized fail!
[ 176.955261] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 176.961822] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 176.967987] rt28xx Initialized fail!
[ 177.077056] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 177.083648] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 177.089813] rt28xx Initialized fail!
[ 177.199035] usb 1-1.4: firmware file rt3070.bin request failed (-2)
[ 177.205657] ERROR! NICLoadFirmware failed, Status[=0x00000001]
[ 177.211761] rt28xx Initialized fail!


root@android:/ # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 DOWN 0.0.0.0/0 0x00001002 00:00:00:00:00:00
root@android:/ # lsmod
omaplfb 10598 0 - Live 0xbf116000
pvrsrvkm 154317 33 omaplfb, Live 0xbf0e5000
wl12xx 151750 0 - Live 0xbf0ac000
mac80211 329642 1 wl12xx, Live 0xbf03d000
cfg80211 146479 2 wl12xx,mac80211, Live 0xbf008000
compat 7219 2 wl12xx,mac80211, Live 0xbf000000
root@android:/ #
[ 133.717681] usb 1-1.4: USB disconnect, address 5
[ 133.722991] rtusb_disconnect: unregister usbnet usb-ehci-omap.0-1.4
[ 133.729583] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=wlan0!
[ 133.740295] RTUSB disconnect successfully


Thanks 

bhagavath ram

  • In case of TI's WL12xx, WLAN firmware is located at system/etc/firmware/ti-connectivity

    Your driver may be looking at a similar path. Please consult your driver documentation/sources.

  • Hi ,

    Thanks for guide ,

                  After i update the binary file , somewhat better than the previous log , but still i dint get  "rt28xx Initialized fail!" this error , i've loaded firmware also .

    Could you Please solve this .

       

    <==== rt28xx_init, Status=0
    [ 321.568939] 0x1300 = 00073200
    [ 321.747253] ---> RTMPFreeTxRxRingMemory
    [ 321.751525] <--- RTMPFreeTxRxRingMemory
    [ 322.195800] <-- RTMPAllocTxRxRingMemory, Status=0
    [ 322.203826] -->RTUSBVenderReset
    [ 322.207366] <--RTUSBVenderReset
    [ 322.680114] 1. Phy Mode = 0
    [ 322.683044] 2. Phy Mode = 0
    [ 322.685974] NVM is Efuse and its size =2d[2d0-2fc]
    [ 322.816986] 3. Phy Mode = 0
    [ 322.825744] MCS Set = 00 00 00 00 00

    [<c0095390>] (dump_backtrace+0x0/0x110) from [<c0602a08>] (dump_stack+0x18/0x1c)
    [ 646.381469] r7:00000006 r6:00000020 r5:00000000 r4:c081650c
    [ 646.387420] [<c06029f0>] (dump_stack+0x0/0x1c) from [<c011c820>] (__alloc_pages_nodemask+0x4c8/0x568)
    [ 646.397033] [<c011c358>] (__alloc_pages_nodemask+0x0/0x568) from [<c00985a4>] (__dma_alloc+0xa4/0x284)
    [ 646.406768] [<c0098500>] (__dma_alloc+0x0/0x284) from [<c0098814>] (dma_alloc_coherent+0x5c/0x68)
    [ 646.416015] [<c00987b8>] (dma_alloc_coherent+0x0/0x68) from [<c03b376c>] (hcd_buffer_alloc+0x94/0x9c)
    [ 646.425720] r7:00000004 r6:d1820000 r5:d18200d8 r4:d18200d8
    [ 646.431640] [<c03b36d8>] (hcd_buffer_alloc+0x0/0x9c) from [<c03a6bdc>] (usb_alloc_coherent+0x24/0x30)
    [ 646.441284] [<c03a6bb8>] (usb_alloc_coherent+0x0/0x30) from [<c04b9ba4>] (NICInitTransmit+0xec/0x828)
    [ 646.450897] [<c04b9ab8>] (NICInitTransmit+0x0/0x828) from [<c04ba478>] (RTMPAllocTxRxRingMemory+0x40/0xac)
    [ 646.460968] [<c04ba438>] (RTMPAllocTxRxRingMemory+0x0/0xac) from [<c048c884>] (rt28xx_init+0xbc/0x450)
    [ 646.470703] r5:d1820000 r4:00000000
    [ 646.474426] [<c048c7c8>] (rt28xx_init+0x0/0x450) from [<c04b0254>] (rt28xx_open+0x58/0xc8)
    [ 646.483062] [<c04b01fc>] (rt28xx_open+0x0/0xc8) from [<c04b0510>] (MainVirtualIF_open+0x30/0xcc)
    [ 646.492218] r5:ce897800 r4:d1820000
    [ 646.495971] [<c04b04e0>] (MainVirtualIF_open+0x0/0xcc) from [<c050aab8>] (__dev_open+0xa8/0xf8)
    [ 646.505065] r5:c0649420 r4:ce897800
    [ 646.508789] [<c050aa10>] (__dev_open+0x0/0xf8) from [<c0507dd8>] (__dev_change_flags+0x98/0x11c)
    [ 646.518096] r5:00000001 r4:ce897800
    [ 646.521820] [<c0507d40>] (__dev_change_flags+0x0/0x11c) from [<c050a9dc>] (dev_change_flags+0x18/0x4c)
    [ 646.531524] r7:c7f03780 r6:00000000 r5:00001002 r4:ce897800
    [ 646.537445] [<c050a9c4>] (dev_change_flags+0x0/0x4c) from [<c0558aa4>] (devinet_ioctl+0x3a8/0x73c)
    [ 646.546783] r7:c7f03780 r6:00000000 r5:c8fecf00 r4:00008914
    [ 646.552703] [<c05586fc>] (devinet_ioctl+0x0/0x73c) from [<c0559c88>] (inet_ioctl+0xdc/0x10c)
    [ 646.561523] [<c0559bac>] (inet_ioctl+0x0/0x10c) from [<c04f8e78>] (sock_ioctl+0x1fc/0x24c)
    [ 646.570159] r5:00008914 r4:00000000
    [ 646.573913] [<c04f8c7c>] (sock_ioctl+0x0/0x24c) from [<c01511a8>] (vfs_ioctl+0x28/0x44)
    [ 646.582244] r7:00000005 r6:00000005 r5:c639e6c0 r4:00000000
    [ 646.588165] [<c0151180>] (vfs_ioctl+0x0/0x44) from [<c01518b8>] (do_vfs_ioctl+0x500/0x540)
    [ 646.596801] [<c01513b8>] (do_vfs_ioctl+0x0/0x540) from [<c0151950>] (sys_ioctl+0x58/0x7c)
    [ 646.605346] [<c01518f8>] (sys_ioctl+0x0/0x7c) from [<c0090da0>] (ret_fast_syscall+0x0/0x30)
    [ 646.614166] r8:c0090f48 r7:00000036 r6:be8629d4 r5:00000005 r4:00094b8c
    [ 646.621185] Mem-info:
    [ 646.623535] Normal per-cpu:
    [ 646.626464] CPU 0: hi: 90, btch: 15 usd: 89
    [ 646.631469] active_anon:20810 inactive_anon:71 isolated_anon:0
    [ 646.631469] active_file:5539 inactive_file:5434 isolated_file:0
    [ 646.631469] unevictable:0 dirty:5 writeback:0 unstable:0
    [ 646.631469] free:9250 slab_reclaimable:627 slab_unreclaimable:1179
    [ 646.631469] mapped:10883 shmem:87 pagetables:682 bounce:0
    [ 646.661651] Normal free:37000kB min:2004kB low:2504kB high:3004kB active_anon:83240kB inactive_anon:284kB active_file:22156kB inactivo
    [ 646.702850] lowmem_reserve[]: 0 0
    [ 646.706451] Normal: 1616*4kB 1615*8kB 495*16kB 103*32kB 54*64kB 23*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 37000kB
    [ 646.718261] 11060 total pagecache pages
    [ 646.722290] 0 pages in swap cache
    [ 646.725738] Swap cache stats: add 0, delete 0, find 0/0
    [ 646.731170] Free swap = 0kB
    [ 646.734161] Total swap = 0kB
    [ 646.743713] 65536 pages of RAM
    [ 646.746948] 10836 free pages
    [ 646.749938] 13853 reserved pages
    [ 646.753326] 1806 slab pages
    [ 646.756225] 62691 pages shared
    [ 646.759399] 0 pages swap cached
    [ 646.762664] <-- ERROR in Alloc TX TxContext[3] struct rt_httx_buffer!
    [ 646.769561] <-- RTMPAllocTxRxRingMemory, Status=3
    [ 646.774475] ERROR! RTMPAllocDMAMemory failed, Status[=0x00000003]
    [ 646.780853] rt28xx Initialized fail!


    Thanks 

    Bhagavath

  • I would suggest you to get help from your WiFi device vendor to resolve this quickly.