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.

WL1273 firmware loading fail issue

Hi,

I'm porting WL1273 driver on Android4.1 with Kernel 3.0.31

But when I start wlan_loader service and got a ERROR message with below.

===============

 
127|root@android:/system/etc/wifi # ls  
firmware.bin
firmware_ap.bin
firmware_rfregulatory.bin
hostapd.conf
regulatory
tiap_drv.ko
tiwlan.ini
tiwlan_drv.ko
wpa_supplicant.conf
root@android:/system/etc/wifi # insmod tiwlan_drv.ko
[   85.327056] TIWLAN: driver init
[   85.330535] TI WiLink 1283 SDIO: Driver loaded
[   85.452972] TIWLAN: probed with vendor 0x97, device 0x4076, class 0x0
[   85.588073] TIWLAN: probed with vendor 0x97, device 0x4076, class 0x0
[   85.594940] TIWLAN: Found TI/WLAN SDIO controller (vendor 0x97, device 0x4076, class num 0x2)
[   85.604156] ==tiwlandrv==: Got platform data: IRQ=CD..
[   85.615447] TI WiLink 1283 SDIO: Driver loaded
[   85.629882] wifi_probe: got wlan irq 205
[   85.634185] wifi_probe: got wlan irq trigger unknown flag
root@android:/system/etc/wifi #   
root@android:/system/etc/wifi # start wlan_loader  
[   93.690399] ==tiwlandrv==: Got init cmd from wlan_loader..
[   93.698028] TIWLAN: [2013-01-01 00:01:29:171997] :   
[   93.698028] XWINGCALIB: Calib data read FAIL!
[   93.994720]   
[   93.994750] XWINGCALIB: Reading nvs from file...  
[   94.001739] XWINGCALIB : trying to read DieID from radio chip....  
[   94.008819] XWINGCALIB : DieID read successfully, DieId = 602C190379520802  
[   94.016693] TIWLAN: [2013-01-01 00:01:29:490661] : Working on a 1273 PG 2.0 board.
[   94.054718] TIWLAN: [2013-01-01 00:01:29:528717] : HwInit                  , ERROR:Timeout waiting for writing bt_func7_sel
[   94.066741] TIWLAN: [2013-01-01 00:01:29:540740] : DrvMain                 , ERROR:drvMain_SmEvent():  Multiple pending events (3), State = 3, Event = 11
[   94.081604] TIWLAN: [2013-01-01 00:01:29:555603] : DrvMain                 , ERROR:drvMain_Sm: eEvent=11 at state=3, status=1
[   94.093811] TIWLAN: [2013-01-01 00:01:29:567810] : context                 , ERROR:context_DisableClient() Client  already disabled!!
[   94.106781] TIWLAN: [2013-01-01 00:01:29:580749] : DrvMain                 , ERROR:drvMain_SmEvent():  Multiple pending events (3), State = 12, Event = 10

=========================

Could you please help this?

BRs,

Johnny

  • Hi Johnny,

    It looks like you are using the old wl12xx driver version - please use the NLCP driver. Build instructions can be found here.

    Regards,
    Gigi Joseph.

  • Hi, Joseph


    It show Group Not Found message with you link

    Group Not Found
    The requested Group cannot be found.
    Could you check it again? thanks
    Johnny
  • Oh! I'm so sorry.. .I meant: http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    I have updated driver but there is a new problem with below message 

    =========================

    root@android:/ # netcfg  
    lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00
    ifb0     DOWN                                   0.0.0.0/0   0x00000082 72:10:e7:8f:ba:5f
    ifb1     DOWN                                   0.0.0.0/0   0x00000082 16:13:d6:79:71:2b
    sit0     DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
    ip6tnl0  DOWN                                   0.0.0.0/0   0x00000080 00:00:00:00:00:00
    wlan0    DOWN                                   0.0.0.0/0   0x00001002 84:dd:20:2e:57:c0
    root@android:/ # ifconfig wlan0 up
     
    [   70.319122] wl12xx: state: 0
    [   70.322998] wl12xx: ERROR state: 0
    [   70.384094] [WIFI] Wifi Powering on
    [   70.790710] wl12xx: ERROR wl12xx_fetch_firmware
    [   70.796905] wl12xx: ERROR booting firmware ti-connectivity/wl127x-fw-4-sr.bin
    [   70.917572] wl12xx: ERROR nvs size is not as expected: 1113 != 912
    [   70.938751] [WIFI] Wifi Powering off
    [   70.985626] [WIFI] Wifi Powering on
    [   71.384368] wl12xx: ERROR wl12xx_fetch_firmware
    [   71.450012] wl12xx: ERROR nvs size is not as expected: 1113 != 912
    [   71.456817] [WIFI] Wifi Powering off
    [   71.493713] [WIFI] Wifi Powering on
    [   71.837493] wl12xx: ERROR wl12xx_fetch_firmware
    [   71.910736] wl12xx: ERROR nvs size is not as expected: 1113 != 912
    [   71.919616] [WIFI] Wifi Powering off
    [   71.923370] wl12xx: ERROR firmware boot failed despite 3 retries
    error: SIOCSIFFLAGS (Invalid argument)
    255|root@android:/ # [   75.079345] PWM No Battery detected!  
    [   80.079345] PWM No Battery detected!

    ==========================

    It seems NVS file was not expected!! Where I can get NVS file for wl1273?

    Thanks,

    Johnny

  • Hi Johnny,

    It still suggests the build was not proper. Can you please confirm the git release tag that you have built?
    All the nvs, fw, driver source are available at: https://github.com/TI-OpenLink/ you have to clone using the correct release version tag - the wl12xx_build.sh does that.
    It appears that it did not work.


    Regards,
    Gigi Joseph.

  • Hi Joseph,

    I have update driver from https://github.com/TI-OpenLink/, WiFi function can scan and connect successfully.

    Thanks,

    Johnny