Changes

Jump to: navigation, search

Wireless Module (DWM)

3,003 bytes added, 09:16, 9 June 2014
m
no edit summary
==How to enable WiFi support on embedded linux platforms==
 
=== References ===
 
* [http://processors.wiki.ti.com/index.php/WL127x WL127x Main page]
* [http://processors.wiki.ti.com/index.php/WL127x_WLAN_API_Information WL127x WLAN API]
* [http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Proccess Calibration Process]
* [http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html Wifi Tools]
* [http://www.omappedia.com/wiki/Mac80211_based_open_source_architecture Info on mac80211 based WLAN driver]
* [http://www.lsr.com/products-wiki?topic=TiWi-BLE+Downloads TiWi-BLE Downloads]
* [http://www.lsr.com/downloads/products/330-0078.pdf INI Guide]
* [http://www.lsr.com/downloads/products/330-0105.pdf Antenna Design]
* [http://www.lsr.com/downloads/products/330-0053.pdf EMC Guide]
* [http://wireless.kernel.org/en/users/Drivers/wl12xx/calibrator Linux Calibrator]
=== Kernel setup ===
=== Make Wireless Tools ===
[http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/If the Wirleless Tools.html Wifi Tools] [http://www.omappedia.com/wiki/Mac80211_based_open_source_architecture FW DWL] To build Wireless tools package is not included into your root file system, you need to modify build this component. Modification of the Makefile is required in order to cross-compile and install the tools:
Make:
* Check that the root file system path is correct
* Check the env CROSS_COMPILE and PATH variables
* wl1271-fw.bin
 === Calibration === Calibration is a process of determining radio parameters specific for the chip on the specific design. Calibration is a mandatory one-time procedure, performed once after the board assembly and before any WLAN operation. ==== Prerequisites ==== * wifi kernel driver* wifi device firmware* wifi tools available into the root file system* Linux kernel build with '''CONFIG_NL80211_TESTMODE=y''' option and WL12xx build as a module* INI file downloaded from LSR website: [http://www.lsr.com/products-wiki?topic=TiWi-BLE+Downloads] (930-0056 - ETSI All certified antennas)* The NVS file (wl127x-nvs.bin) must not be included into the root file system N.B: When compiling the calibrator tool for an Ubuntu Core root file system (Ubuntu 12.04 LTS ARM HF), the following packages are required:* libnl-3-dev* libnl-gen1-3-dev If the libnl-3 headers are not included into /usr/include/libnl-3, it is possible to download and uncompress the following deb file:* wl1271http://ports.ubuntu.com/ubuntu-ports/ precise/main libnl-3-dev armhf 3.2.3-2ubuntu2 [37.0 kB] ==== How to do the calibration ====For detailed information, please refer to the [http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Proccess#Calibration_Getting_Started Calibration Getting Started Guide]. For the calibration commands, please refer to the following shell session: <pre>root@X-Poles:~/ti-utils# rm /lib/firmware/ti-connectivity/wl127x-nvs.binroot@X-Poles:~/ti-utils# rmmod wl12xx_sdio.koroot@X-Poles:~/ti-utils# ./calibrator plt autocalibrate wlan0 /lib/modules/$(uname -r)/kernel/drivers/net/wireless/wl12xx/wl12xx_sdio.ko hw/ini_files/127x/TQS_S_2.6.ini /lib/firmware/ti-connectivity/wl127x-nvs.bin 00:00:00:00:00:00 [ 2106.815826] wl12xx: loaded[ 2106.831756] wl12xx: power up[ 2107.337219] wl12xx: firmware booted in PLT mode (PLT 6.3.5.0.98)Using nvs version 2.1Calibrate /lib/firmware/ti-connectivity/wl127x-nvs.binWriting calibration data to /lib/firmware/ti-connectivity/wl127x-nvs.binWriting mac address 00:00:00:00:00:00 to file /lib/firmware/ti-connectivity/wl127x-nvs.bin[ 2107.438598] wl12xx: power downCalibration done. FEM1 has 1 bands. AutoFEM is off. Resulting nvs is /lib/firmware/ti-connectivity/wl127x-nvs.bin</pre> 
=== User space basics ===

Navigation menu