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 download firmware errorS

Hi ALL,

         We are using the WLAN module with WL1273,when downloading the firmware.bin,it hangs with "Starting to download firmware..."


**********************************************************
# ./sta_run
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
davinci-mmc davinci-mmc.1: Supporting 4-bit mode
davinci-mmc davinci-mmc.1: Using DMA mode
tiwlan_drv: no version for "sdioDrv_WriteSync" found: kernel tainted.
TIWLAN: driver init
TIWLAN: 1019.185132:
Zoom2 use external board configuration as wellIRQNUM=44
fall after readb
hPlatform_initInterrupt: call request_irq IRQF_TRIGGER_FALLING
name=tiwlan0
g_drv_name=tiwlan0
+---------------------------+
| wlan_loader: initializing |
+---------------------------+
opened files
read eeprom file
read firmware file
read ini file
wlanDrvIf_Open()
load driver default
TIWLAN: 1019.929863: pInitParams->RoamingScanning_2_4G_enable 0
b4 sdioDrv_ConnectBus
: clock 28000000Hz busmode 2 powermode 1 cs 0 Vdd 5 width 2
Enabling 4 bit mode
after sdioDrv_ConnectBus
Unbalanced enable for IRQ 27
ifconfig/484[CPU#0]: BUG in enable_irq at kernel/irq/manage.c:124
after sdioDrv_ExecuteCmd
TIWLAN: 1021.049124: CHIP VERSION... set 1273 chip top registers
TIWLAN: 1021.057266: Working on a 1273 PG 2.0 board.
TIWLAN: 1021.062195: Starting to process NVS...
TIWLAN: 1021.066531: No Nvs, Setting default MAC address
TIWLAN: 1021.071710: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 1021.076020: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 1021.085441: Chip ID is 0x4030111.
TIWLAN: 1021.092003: FEM Type 1
TIWLAN: 1021.096688: Starting to download firmware...
TIWLAN: 1021.186513: Starting to download firmware...
TIWLAN: 1021.212532: Starting to download firmware...

Does anyone have the same issue,or any ideas?

Regards,

xiang

  • Hi xiang,

    Hi,

     

    Could you please specify which WLAN driver are you using and what is the Host?

    In addition according to the “tiwlan_drv: no version for "sdioDrv_WriteSync" found: kernel tainted.” Then probably there is an issue with the SDIO driver implementation, which SDIO driver are you using? Is it the one from TI that is part of the package? Or have you have other SDIO driver implementation?

    Regards,

    Eyal

  • Hi Eyal,

    The module we are using is from Murata.It works well on TI DM365  with the kernel source and WiLink package  provided by Murata.Now i need to port that to our IPNC sys.The SDIO driver is using DM365 SDIO1 with DMA (Supporting 4-bit mode).(It was ported from OMAP2430 i think).

    The driver and firmware version are as follows(well worked log ):

    .............................................................................................................................................................................................

    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    davinci-mmc davinci-mmc.1: Supporting 4-bit mode
    davinci-mmc davinci-mmc.1: Using DMA mode
    tiwlan_drv: no version for "sdioDrv_WriteSync" found: kernel tainted.
    TIWLAN: driver init
    TIWLAN: 3893.268399:
    Zoom2 use external board configuration as wellIRQNUM=44
    fall after readb
    hPlatform_initInterrupt: call request_irq IRQF_TRIGGER_FALLING
    name=tiwlan0
    g_drv_name=tiwlan0
    wlanDrvIf_Open()
    +---------------------------+
    | wlan_loader: initializing |
    +---------------------------+
    opened files
    read eeprom file
    read firmware file
    read ini file
    load driver default
    TIWLAN: 3893.943000: pInitParams->RoamingScanning_2_4G_enable 0
    : clock 28000000Hz busmode 2 powermode 1 cs 0 Vdd 5 width 2
    Enabling 4 bit mode
    Unbalanced enable for IRQ 27
    ifconfig/888[CPU#0]: BUG in enable_irq at kernel/irq/manage.c:124
    TIWLAN: 3895.072789: CHIP VERSION... set 1273 chip top registers
    TIWLAN: 3895.081942: Working on a 1273 PG 2.0 board.
    TIWLAN: 3895.087857: Starting to process NVS...
    TIWLAN: 3895.093235: No Nvs, Setting default MAC address
    TIWLAN: 3895.098375: pHwInit->uEEPROMCurLen: 1c
    TIWLAN: 3895.104328: ERROR: If you are not calibating the device, you will soon get errors !!!
    TIWLAN: 3895.114797: Chip ID is 0x4030111.
    TIWLAN: 3895.122396: FEM Type 1
    TIWLAN: 3895.128055: Starting to download firmware...
     TIWLAN: 3895.218543: Starting to download firmware...
    TIWLAN: 3895.245385: Starting to download firmware...
    TIWLAN: 3895.251349: Starting to download firmware...
    TIWLAN: 3895.263658: Starting to download firmware...
    TIWLAN: 3895.272627: Starting to download firmware...
    TIWLAN: 3895.279042: Finished downloading firmware.
    TIWLAN: 3895.284086: Firmware running.
    TIWLAN: 3895.304700:
    TIWLAN: 3895.306773: --------------------------------------------------------------------
    TIWLAN: 3895.314864: Driver Version  : WiLink_Driver_6.1.0.0.144
    TIWLAN: 3895.320764: Firmware Version: Rev 6.1.0.0.335
    TIWLAN: 3895.325689: Station ID      : 08-00-28-12-34-56
    TIWLAN: 3895.330849: --------------------------------------------------------------------
    TIWLAN: 3895.338828:

     

     

    .............................................................................................................................................................................................

    Though i have modified the corresponding parts with our IPNC kernel(including add MMC1 ,supporting IEEE802.11...),it just hanged with "Starting to download firmware...",maybe still i missed something i think.And any advise would be helpful.again thanks a lot

    Regards,

    xiang

     

     

     

     

  • Hi Xiang,

    Sorry for late response, According to the log, the firmware loading is complete, so is it still stuck? Don’t you get a linux prompt any more after you get the Driver/firmware version logs?

    Thakns,

    Eyal

  • Hi Eyal,

    Thanks for you reply!

    My hardware works well with the kernel  and wilink software package from Murata(They ported that from TI released kernel)  ,the good log you saw before is just from this kernel.But our IPNC(IP network camera) kernel is just different from murata's,so we need port that .The follow is the first problem we get during the porting,it hangs on with the third "Starting to download firmware...",

    --------------------------------------------------------------------------

    TIWLAN: 1021.085441: Chip ID is 0x4030111.
    TIWLAN: 1021.092003: FEM Type 1
    TIWLAN: 1021.096688: Starting to download firmware...
    TIWLAN: 1021.186513: Starting to download firmware...
    TIWLAN: 1021.212532: Starting to download firmware...

    --------------------------------------------------------------------------

    and I still think it's the difference between these two kernels which caused that problem.But today i changed the value MAX_SDIO_BLOCK(wilink/twd/fw_transfer/hwinit.c:line 118) from 500 to 420(or smaller),it seems it could finish the firmware downloading but stills hangs as follows:

    --------------------------------------------------------------------------

    TIWLAN: 4015.406345: Chip ID is 0x4030111.
    TIWLAN: 4015.413892: FEM Type 1
    TIWLAN: 4015.419519: Starting to download firmware...
    TIWLAN: 4015.509319: Starting to download firmware...
    TIWLAN: 4015.536145: Starting to download firmware...
    TIWLAN: 4015.543686: Starting to download firmware...
    TIWLAN: 4015.555420: Starting to download firmware...
    TIWLAN: 4015.564488: Starting to download firmware...
    TIWLAN: 4015.570875: Finished downloading firmware.
    TIWLAN: 4015.575946: Firmware running.

    ----------------------------------------------------------------------------

    Atfer this,there is nothing linux prompt any more ,any ideas?and any advise will be appreciated,thanks

    Regards,

    xiang

  • Hi Xiang,

    As you noticed you are having problems in your SDIO driver.
    Please try to removing advanced SDIO features, for instance please start working with:

    1. 1 bit SDIO
    2. No DMA
    3. No Block Mode

    Then one by one start testing the 4 bit SDIO then DMA usage then SDIO Block Mode.

    Thanks,
    Alon.S

     

  • Eyal and Alon,

    Thanks for your replies with the issue of firmware downloading.Now it was fixed with changing the value  DM365_DMACH2EVENT_MAP0,enable the event channel of MMC1(RX,TX).

    Regards,