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 problems & upgrading to Kernel 2.6.39

Other Parts Discussed in Thread: WL1271

Hi there,

We're trying to get our TI8168 board working with the WL1273 wi-fi module for a video capture device for the ARM A8 Cortex.  We are using the stock TI wl12xx driver that we've obtained from the EZSDK to enable it using the wl1271 module (which is the same for WL1273).  Our kernel compiles fine & boots the board but everytime I try to enable the Wi-fi this is what I observe:

root@arago:~# modprobe wl1271
cfg80211: Calling CRDA to update world regulatory domain

root@arago:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 40:5F:C2:6A:13:2C
          inet addr:10.0.3.2  Bcast:10.0.255.255  Mask:255.255.0.0
          inet6 addr: fe80::425f:c2ff:fe6a:132c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21227 errors:0 dropped:15 overruns:0 frame:0
          TX packets:7619 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21967843 (20.9 MiB)  TX bytes:1156490 (1.1 MiB)
          Interrupt:40

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          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)

root@arago:~# ifup wlan0 (or doing ifconfig wlan0 up)
ifconfig: SIOCGIFFLAGS: No such device

I've searched all the forums that's out there on the web & tried many different drivers/solutions but none seem to be working.  We've also checked the hardware signals for the pins on WL1273 (WLAN_EN & WLAN_CLK_REQ) & we are seeing all the right signals.  We believe that the driver is correct & the module is recognizing the driver but maybe the kernel is not turning on the wlan0!  Would you have any suggestions for me?

2) Also, on a related note, would it be possible for us to upgrade to Kernel 2.6.39 from our 2.6.37 with minimal effort? The reason I ask this is because some of the video encoder/decoder chips work better with kernel 2.6.39 but we have only 2.6.37 that we got for the SDK. I'm asking specifically regarding what changes we need to make in our EZSDK for us to have the same functionality but just upgrading the kernel to a more recent version without breaking anything.

Thanks in advance for answering all my queries,

Bharadwaj

  • Hello, Bharadwaj Rajan

    1) Using make menuconfig to alter the kernel configuration, I enabled everything under Networking support --> Wireless -->, and under Device Drivers --> Network device support --> Wireless LAN --> (including TI wl12xx driver support). I enabled them as built-in (to try it more conveniently). After rebuild my booted system showed me wlan0 and wlan1 on ifconfig -a.

    2) Perhaps there is no easy way. EZSDK is built upon linux 2.6.37. You could get EZSDK linux and 2.6.39; and work hard with some version control tools, but the task to make everything to work properly is yours. Unfortunately, this would be tough and there is no guarantee that it will worked.

    BR

  • Hi Vladimir,

    Thanks for your reply. I tried the same but I'm still not getting the wl1273 to come up. Would you be able to share the link to your git/svn repository just for wl12xx driver & I'll give it a shot with your driver? Thanks,

    Bharadwaj

  • Bharadwaj,

    You've to add support for WL12xx driver in arch/arm/mach-omap2/board-ti8168-evm.c file to enable the WLAN driver. Also you might have to do the power up of the device here.

  • Thanks Renjith.  I think I've initialized the WLAN driver in the file you've specified including the power-up. I've attached the file here for your reference to see if I'm missing anything.  Thanks.

  • Bharadwaj,

    I have gone through the board file. You've configured the GPIOs and I could not see any setting where you are setting any GPIOs as output. You are configuring three GPIOs as input only. 

    I'm not sure about the schematics here, but where exactly doing the WLAN module power up?

  • Hi Renjith,

    I'm using the GPIOs only as an input because I'm using a voltage translator in my schematic. The WLAN power-up is through that translator. Would I still need to specify the WLAN power-up? I've attached the schematic for your reference. Thanks,

    Bharadwaj

    WL1273_schematic.pdf
  • Also Renjith, do you think the driver needs to have control over the WLAN_EN signal? Currently, our WLAN_EN signal is not controlled by the driver but instead, its being controlled directly by the board & goes high when the board boots up.  We see the signal go HIGH & also as per our current configuration, WLAN_IRQ is also HIGH. Hope this clarifies. Thanks.

  • Bharadwaj,

    WLAN_EN has to be configured as an output and after that you must drive it to HIGH/LOW according to the datasheet of the WLAN module. I don't have the datasheet of the WLAN module with me. Could you please go through the power up sequence of the WLAN module? There might be a sequence available already, which might not be as simple as to drive it to HIGH.

  • Hi Renjith,

    Our WLAN_EN is configured as an output & the signal comes from a register in our board.  I've attached the datasheet for your reference here & according to that, our WL_EN, CLK_REQ, SDIO_CLK & Fref are all behaving the same way as described above except for WLAN_IRQ. I've also attached the debug messages from the boot-up & we see that the mmc is timing out when its requesting access to the WL1273. Have you seen this before?

    The other thing also is that from the data sheet, they mention that the duration of T2 (WLAN_IRQ) depends on:
    Operating system
    Host enumeration for the SDIO
    PLL configuration
    Firmware download
    Releasing the core from reset
    Firmware initialization

    We are not doing the above before boot-up & wondering if that's the problem in us getting the WLAN_IRQ to go high. Thanks for all your inputs,

    Bharadwaj

  • Attaching WL1273 data sheet.

  • Can you mail me @ renjith.thomas@pathpartnertech.com ?

  • Hi,
    I am now using TIWI5 for my own board based on DM8168. Can you explain me how to get start with the TIWI5?