TI E2E Community
Low Power RF & Wireless Connectivity
WLAN Applications Forum
OMAP-L138 + WL1271 is it possible?
I am new to OMAP developement and our company has just recently chosen OMAP-L138 as our base platform for future product development.
One of the first products we are going to use OMAP-L138 will require wireless connectivity which we found out that the WL1271 can provide (Wifi + bluetooth).
However, base on the post I've read from the forum I only found support for the WL1271 on the OMAP35xx.
Can you please clarify if the OMAP-L138 can be interfaced with the WL1271?
Also are their available any Linux device drivers for the WL1271 which can be installed in the Linux package for the OMAP-L138.
Senior Software Engineer
I've noticed that the MMC1 interface is not working correctly (incorrect clock frequency, CMD has activity, but data lines do not). I'll need to figure out why - ignore the above for now.
It looks like the WL1271 is not responding to any commands. The clock frequency is correct for initialization. Can you answer the following:
Are 0004-PSP03.21.00.04.sdk-activate-wireless-extensions.patch and
0005-Davinci-da850-Add-Mistral-WL12XX-config-support-to.patch applied to
am180x-evm-sdk-src-05.02.00.00.tar.gz? The patches point to "/home/hudson/amsdk-nightly-build/arm9/arago/recipes/linux/linux-davinci-2.6.37-psp03.21.00.04.sdk/00"
As for patches "0004-PSP03.21.00.04.sdk-activate-wireless-extensions.patch" and "0005-Davinci-da850-Add-Mistral-WL12XX-config-support-to.patch", they are applied on the 05.02.00.00 SDK, you can open the source code and confirm. Could you please clarify what you mean by "The patches point to "/home/hudson/amsdk-nightly-build/arm9/arago/recipes/linux/linux-davinci-2.6.37-psp03.21.00.04.sdk/00"?
As I understand, you are using SDK 05.02 as your work base. Can you please elaborate on how you checked the clock frequency and which commands are not responding?
In ~/linux-2.6.37-psp03.21.00.04.sdk/patches, the following are links that point to "/home/hudson/amsdk-nightly-build/arm9/arago/recipes/linux/linux-davinci-2.6.37-psp03.21.00.04.sdk/00"0004-PSP03.21.00.04.sdk-activate-wireless-extensions.patch0005-Davinci-da850-Add-Mistral-WL12XX-config-support-to.patch
To measure the clock frequency, you need a scope probe on the SD1_CLK pin. The TiWi-R2 module does not respond to any commands: SD1_DAT0 never changes: it's always high. Are you seeing something similar?
I have an AM180x EVM with the SDK of 05.02.00.00, and the wireless connectivity works without issues.
Could it be a hardware issue? Do you have the same problem on other boards?
When booting, if you run the command cat /proc/config.gz | gunzip | grep REFCLOCK, what is the value you see for CONFIG_DA850_MISTRAL_WL12XX_REFCLOCK variable? If it is set to 2 it means that you work with 2.4GHz antenna. If it is set to 1 it means you work with 5 GHz antenna. Please check that the daughter card works with the right frequency according to this input.
Yes, it is custom hardware, but it's pretty much the same as the example schematics. Thanks for trying!
Following this webpage:
it seems that I was missing the firmware. I'm now getting the following errors:
~# ifconfig wlan0 up Powering on wifi wl1271: ERROR nvs size is not as expected: 172032 != 912 Powering off wifi Powering on wifi ADDRCONF(NETDEV_UP): wlan0: link is not ready
The firmware is from:
1. Why am I getting the nvs size error? Is the firmware the correct version? What is the ADDRCONF error?
2. I'm still using 5.02. Will 5.03 make any difference? I couldn't find any source code differences in U-Boot or Linux, as I pointed out here (with no follow-up answer for over a month):
3. Will running the calibration procedure make a difference? Which calibration procedure is the correct one for OMAPL-138/AM1808 and TiWi-R2?
4. Is http://www.omappedia.org/wiki/Mac80211_based_open_source_architecture the correct procedure for OMAPL-138/AM1808 and TiWi-R2?
I would like to touch base on the issue Status, could you please let me know if there are still open items?
The question from Feb. 28th was never answered. Since then, 5.04 has been released. Can you answer the following:
1. Why am I getting the nvs size error in the question from Feb. 28th?
2. Is http://www.omappedia.org/wiki/Mac80211_based_open_source_architecture the correct build procedure for OMAPL-138/AM1808 and TiWi-R2?
3. Does 5.04 support bluetooth on OMAPL-138/AM1808?
we have different build procedure which you may find in http://processors.wiki.ti.com/index.php/ARM_Processor_Open_Source_Wireless_Connectivity#Build_Instructions_Guide
in addition we built a script that should run the entire WLAN package automaticly, it will download all the right components build and install it on your file system, for that please refer to http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_mac80211_WLAN_build_scripts
in case you use that i dont think that you get the nvs file size error,
as for Bluetooth, 5.04 supports BlueZ for AM18x platform, however for OMPAL138 there is a conflict with the Audio chip (the UART CTS colied with the Audio compression chip) however in case you have your own board then Bluetooth will also be supported for OMAPL138
Inderjit Bains can you run $ls -l /lib/firmware/ti-connectivity
NVS file should have size 912 bytes.
I step through http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_Calibration_Proccess_NLCP and almost was OK.
Petrov is right, there are 2 NVS files with same name but with different size, one is used for WL127x chipset and one for WL128x chipset, were the one used for WL128x is almost twice the size, and that could explain the size error that you get
Thanks for the replies. I was very busy with other tasks but I have been looking at this again for the last couple of days. In http://processors.wiki.ti.com/index.php/ARM_Processor_Open_Source_Wireless_Connectivity#Build_Instructions_Guide, there are links to several build instruction guides, including separate build procedures for WLAN and Bluetooth. There are also separate build scripts for WLAN and Bluetooth. Is there one build guide/script for both WLAN and Bluetooth, or do I have to go through all of it and try to figure it out (didn't work before)?
The http://processors.wiki.ti.com/images/d/d0/Wlan_R4_SP2_build_scripts.zip README file is a bit sparse. There seem to be a lot of assumptions in the build scripts that are not specified in the webpages. Again, there are two separate build scripts for WLAN and Bluetooth. Does this mean that just one or the other will work?
To be clear, this is what I need: one build script that builds everything required for WLAN and Bluetooth for the WL1271 chipset, for an AM1808 CPU. I would rather download the required components vs having the build script do it, unless this requires components from many sources. Why are all the extra components not in the SDK?
Thanks for the good feedback, i am currently working to simplify the process and instructions, it should be completed by tomorrow.
Please provide a link to the updated process and instructions once your done.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.