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.

wifi ( jorjin WG7310 ) crash over AM/DM 37x EVM

Hi,

I am using AM/DM37x board with WG7310 module from Jorjin Technologies. After integration of jorgin module with evm

when i tried to up the tiwlan0 I got following logs.After these logs it showed kernel panic.

 
TIWLAN: driver init
-----SDIO PROBE------

--- hPlatform_Wlan_Hardware_Init---

--- hPlatform_DevicePowerOff---

--- wifi_set_power--- power=0
gpio_set_value(150, 0);
request_suspend_state: wakeup (3->0) at 22562530518 (2000-01-01 00:00:20.849792480 UTC)
wlanDrvIf_Open
wlanDrvIf_Start
TIWLAN: 1014.841115: pInitParams->RoamingScanning_2_4G_enable 0

--- hPlatform_DevicePowerOn---

--- wifi_set_power--- power=1
gpio_set_value(150, 1);

--- wifi_set_power--- power=0
gpio_set_value(150, 0);

--- wifi_set_power--- power=1
gpio_set_value(150, 1);
SDIO clock Configuration is now set to 24Mhz
TIWLAN: 1014.957906: CHIP VERSION... set 1273 chip top registers
TIWLAN: 1014.964467: Working on a 1273 PG 2.0 board.
TIWLAN: 1014.969228: Starting to process NVS...
TIWLAN: 1014.973531: NVS found, EEPROM Image addr=0xc2ac1200, EEPROM Len=0x0x1d4
TIWLAN: 1014.981068: Chip ID is 0x4030111.
TIWLAN: 1014.985280: FEM Type 1
TIWLAN: 1014.988484: Starting to download firmware...
TIWLAN: 1015.041951: Starting to download firmware...
TIWLAN: 1015.059499: Starting to download firmware...
TIWLAN: 1015.064656: Starting to download firmware...
TIWLAN: 1015.077046: Starting to download firmware...
TIWLAN: 1015.087727: Starting to download firmware...
TIWLAN: 1015.095570: Finished downloading firmware.
TIWLAN: 1015.100270: Firmware running.
TIWLAN: 1015.119771:
TIWLAN: 1015.121785: -----------------------------------------------------
TIWLAN: 1015.128468: Driver Version  : WiLink_Driver_6.1.0.0.144
TIWLAN: 1015.134267: Firmware Version: Rev 6.1.0.0.335
TIWLAN: 1015.139180: Station ID      : 08-00-28-72-85-37
TIWLAN: 1015.144276: -----------------------------------------------------
TIWLAN: 1015.150929:

tiwlan: 10 sec os_SignalObjectWait timeout
TIWLAN: 1030.117604: cmdQueue_Error: **ERROR**  Command Occured
                                        Cmd = CMD_TEST , Len = 80
                                        NumOfCmd = 1
                                        MAC TimeStamp on timeout = 1792031480
TIWLAN: 1030.141103: --------------- cmdQueue_PrintHistory of 5 -------------------
TIWLAN: 1030.148549: Cmd index 0 CmdType = CMD_TEST , Len = 80, Place in Queue = 0
TIWLAN: 1030.156056: Cmd index 1 CmdType = CMD_RESET , Len = 0, Place in Queue = 29
TIWLAN: 1030.163655: Cmd index 2 CmdType = CMD_RESET , Len = 0, Place in Queue = 28
TIWLAN: 1030.171224: Cmd index 3 CmdType = CMD_RESET , Len = 0, Place in Queue = 27
TIWLAN: 1030.178822: Cmd index 4 CmdType = CMD_RESET , Len = 0, Place in Queue = 26
TIWLAN: 1030.186391: -----------------------------------------------------

Please provide any suggestion..............................................................

  • Hi:

     

    Did you fix this issue???

    Is IRQ configure issue???

     

     

    Austin

  • Hi Prateek,

     

    Can you please update if you solved this problem(and how you solved) or anyone from TI helped/gave you solution.

     

    Many Thanks,

    Peter

  • Hi,

    I am using AM/DM37x board with WG7310 module from Jorjin Technologies. After integration of jorgin module with evm

    when i tried to up the tiwlan0 I got following logs.After these logs it showed kernel panic.

     
    TIWLAN: driver init
    -----SDIO PROBE------

    --- hPlatform_Wlan_Hardware_Init---

    --- hPlatform_DevicePowerOff---

    --- wifi_set_power--- power=0
    gpio_set_value(150, 0);
    request_suspend_state: wakeup (3->0) at 22562530518 (2000-01-01 00:00:20.849792480 UTC)
    wlanDrvIf_Open
    wlanDrvIf_Start
    TIWLAN: 1014.841115: pInitParams->RoamingScanning_2_4G_enable 0

    --- hPlatform_DevicePowerOn---

    --- wifi_set_power--- power=1
    gpio_set_value(150, 1);

    --- wifi_set_power--- power=0
    gpio_set_value(150, 0);

    --- wifi_set_power--- power=1
    gpio_set_value(150, 1);
    SDIO clock Configuration is now set to 24Mhz
    TIWLAN: 1014.957906: CHIP VERSION... set 1273 chip top registers
    TIWLAN: 1014.964467: Working on a 1273 PG 2.0 board.
    TIWLAN: 1014.969228: Starting to process NVS...
    TIWLAN: 1014.973531: NVS found, EEPROM Image addr=0xc2ac1200, EEPROM Len=0x0x1d4
    TIWLAN: 1014.981068: Chip ID is 0x4030111.
    TIWLAN: 1014.985280: FEM Type 1
    TIWLAN: 1014.988484: Starting to download firmware...
    TIWLAN: 1015.041951: Starting to download firmware...
    TIWLAN: 1015.059499: Starting to download firmware...
    TIWLAN: 1015.064656: Starting to download firmware...
    TIWLAN: 1015.077046: Starting to download firmware...
    TIWLAN: 1015.087727: Starting to download firmware...
    TIWLAN: 1015.095570: Finished downloading firmware.
    TIWLAN: 1015.100270: Firmware running.
    TIWLAN: 1015.119771:
    TIWLAN: 1015.121785: -----------------------------------------------------
    TIWLAN: 1015.128468: Driver Version  : WiLink_Driver_6.1.0.0.144
    TIWLAN: 1015.134267: Firmware Version: Rev 6.1.0.0.335
    TIWLAN: 1015.139180: Station ID      : 08-00-28-72-85-37
    TIWLAN: 1015.144276: -----------------------------------------------------
    TIWLAN: 1015.150929:

    tiwlan: 10 sec os_SignalObjectWait timeout
    TIWLAN: 1030.117604: cmdQueue_Error: **ERROR**  Command Occured
                                            Cmd = CMD_TEST , Len = 80
                                            NumOfCmd = 1
                                            MAC TimeStamp on timeout = 1792031480
    TIWLAN: 1030.141103: --------------- cmdQueue_PrintHistory of 5 -------------------
    TIWLAN: 1030.148549: Cmd index 0 CmdType = CMD_TEST , Len = 80, Place in Queue = 0
    TIWLAN: 1030.156056: Cmd index 1 CmdType = CMD_RESET , Len = 0, Place in Queue = 29
    TIWLAN: 1030.163655: Cmd index 2 CmdType = CMD_RESET , Len = 0, Place in Queue = 28
    TIWLAN: 1030.171224: Cmd index 3 CmdType = CMD_RESET , Len = 0, Place in Queue = 27
    TIWLAN: 1030.178822: Cmd index 4 CmdType = CMD_RESET , Len = 0, Place in Queue = 26
    TIWLAN: 1030.186391: -----------------------------------------------------

    the same problem  i got in wince  is there any update for problem?

  • Hi Rama,

    The problem is related to the GPIO configuration.

    Configure the pins as a gpio and request for gpio in board configuration file ( arch/arm/mach-omap2/board-oamp3evm.c ) as below.

    #define DM37_WIFI_PMENA_GPIO   150
    #define DM37_WIFI_IRQ_GPIO     149

     static int __init dm37evm_wlan_init(void)
    {
            int ret;
            omap_mux_init_gpio(DM37_WIFI_PMENA_GPIO, OMAP_PIN_OUTPUT);
          
            omap_mux_init_gpio(DM37_WIFI_IRQ_GPIO, OMAP_PIN_INPUT);
            omap_mux_set_gpio(OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT,DM37_WIFI_PMENA_GPIO);
            omap_mux_set_gpio(OMAP_MUX_MODE4 | OMAP_PIN_INPUT,DM37_WIFI_IRQ_GPIO);

            PRINTK("%s: start\n", __func__);
            ret = gpio_request(DM37_WIFI_IRQ_GPIO, "wifi_irq");
            if (ret < 0) {
                    printk("%s: can't reserve GPIO: %d\n", __func__,
                            DM37_WIFI_IRQ_GPIO);
                    return ret;
            }
                    ret = gpio_request(DM37_WIFI_PMENA_GPIO, "wifi_pmena");
            if (ret < 0) {
                    printk("%s: can't reserve GPIO: %d\n", __func__,
                            DM37_WIFI_PMENA_GPIO);
                    gpio_free(DM37_WIFI_IRQ_GPIO);
                    return ret;
            }
           
            gpio_direction_input(DM37_WIFI_IRQ_GPIO);
            gpio_direction_output(DM37_WIFI_PMENA_GPIO, 0);
                   

    }

    call this initialization code from board init function.