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.

AM1808 board load wl1271 firmware error

Other Parts Discussed in Thread: OMAPL138, WL1271

I am porting WL1271 dirver reference OMAPL138 DVSDK 4.02 source code,

the tiwlan0 device can recognised,but the firmware does not load,print error: Segmentation fault

here is the log as below,is the tiwlan_loader error? I have not the tiwlan_loader source code?,anyone can send me the linux tiwlan_loader source?

hawk@Alok-PC:/opt$ ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00 

          BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

          Interrupt:33

 

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

tiwlan0   Link encap:Ethernet  HWaddr 00:00:00:00:00:00 

          BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:100

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

usb0      Link encap:Ethernet  HWaddr e6:2d:50:06:77:f5 

          BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

hawk@Alok-PC:/opt$ ls

firmware.bin  iw_tool  sdio.ko  tiwlan_drv.ko  tiwlan.ini  tiwlan_loader

hawk@Alok-PC:/opt$ tiwlan_loader -i tiwlan.ini -f firmware.bin

Segmentation fault

hawk@Alok-PC:/opt$

 

 

  • Hi,

    please try the following commands for driver bringup


    insmod sdio.ko 
    insmod tiwlan_drv.ko 
    ./tiwlan_loader 
    ifconfig tiwlan0 10.1.100.56 netmask 255.255.255.0 up

    Regards,

    Eyal

  • Hi,

    when I execute the command ./tiwlan_loader ,print error as below:


    ERROR - IPC_STA_Private_Send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 8000000,  res = -1, errno = 1)
    Wlan_loader: Error sending init command (DRIVER_INIT_PARAM) to driver

    I check function IpcSta_Create and IpcSta_Sockets_Open in file ipc_sta.c,both of them are OK, is SDIO abnormality?

  • Hi,

    and what happens if you just skip ./tiwlan_loader command, what happens? since in later driver versions we acually dont need ./tiwlan_loader 

    Regards,

    Eyal

  • Hi,Eyal

       Thanks for your answer,now I can load the firmware,but after command ifconfig tiwlan0 up,return error sdio error: -84

    here is the log:

    hawk@Alok-PC:/opt$ sudo ifconfig tiwlan0 up
    mmc1: card detect 1
    sdioDrv_ReadSync: sdio error: -84

  • Hi,

    it looks like there is an issue with the SDIO bus, since you were able to download the firmware then the Clock and command lines are fine, but there might be an issue with other SDIO data lines.

    what board are you using? is it EVM on your own board?

    Regards,

    Eyal