Difference between revisions of "Wl12xx driver"
From ArmadeusWiki
SebastienSz (Talk | contribs) |
SebastienSz (Talk | contribs) (→Calibration) |
||
Line 33: | Line 33: | ||
<pre> | <pre> | ||
# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin | # cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin | ||
+ | </pre> | ||
+ | |||
+ | * Set a MAC address. | ||
+ | <pre> | ||
+ | # calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:1E:AC:00:51:22 | ||
</pre> | </pre> | ||
Line 39: | Line 44: | ||
# modprobe wl12xx | # modprobe wl12xx | ||
# modprobe wlcore_sdio | # modprobe wlcore_sdio | ||
+ | wl1271_sdio mmc0:0001:2: legacy platform data not found, trying device tree | ||
wlcore: loaded | wlcore: loaded | ||
</pre> | </pre> | ||
Line 51: | Line 57: | ||
The path to NVS file not provided, use default (/lib/firmware/ti-connectivity/wl1271-nvs.bin) | The path to NVS file not provided, use default (/lib/firmware/ti-connectivity/wl1271-nvs.bin) | ||
wlcore: power down | wlcore: power down | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Line 67: | Line 68: | ||
mmc0: queuing unknown CIS tuple 0x91 (3 bytes) | mmc0: queuing unknown CIS tuple 0x91 (3 bytes) | ||
mmc0: new SDIO card at address 0001 | mmc0: new SDIO card at address 0001 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Revision as of 09:15, 13 February 2014
The wl12xx driver is used by the Wifi / BT chip present on the APF6Dev board. Before using the wifi, you have to calibrate the chip. This page details how to do it.
Installation
Linux
- Be sure to have CONFIG_NL80211_TESTMODE enabled.
Networking support ---> Wireless ---> <*> cfg80211 - wireless configuration API [*] nl80211 testmode command
Buildroot
- You need the calibrator tool from the ti-utils package.
Target package ---> Hardware handling ---> [*] ti-utils
Calibration
- Use the calibrator tool to generate the new calibration data. This will generate a file called new-nvs.bin.
# calibrator set ref_nvs /usr/share/ti-utils/ini_files/127x/TQS_S_2.6.ini
- Copy the file to the right place.
# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin
- Set a MAC address.
# calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:1E:AC:00:51:22
- Load the wl12xx driver.
# modprobe wl12xx # modprobe wlcore_sdio wl1271_sdio mmc0:0001:2: legacy platform data not found, trying device tree wlcore: loaded
- Calibrate the chip.
# calibrator plt calibrate dual wlcore: power up wlcore: firmware booted in PLT mode PLT_ON (PLT 6.3.10.0.133) wlcore: testmode cmd: radio status=0 The path to NVS file not provided, use default (/lib/firmware/ti-connectivity/wl1271-nvs.bin) wlcore: power down
- Reset the chip. (or reboot the board)
# echo 40 > /sys/class/gpio/export # echo out > /sys/class/gpio/gpio40/direction mmc0: card 0001 removed # echo 1 > /sys/class/gpio/gpio40/value sdhci-esdhc-imx 2190000.usdhc: card claims to support voltages below defined range mmc0: queuing unknown CIS tuple 0x91 (3 bytes) mmc0: new SDIO card at address 0001
- Power up the wireless interface.
# ifconfig wlan0 up wlcore: firmware booted (Rev 6.3.10.0.133) IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Congratulations ! Your chip is calibrated. :)
Going further
- Now you can use the general instructions here to setup your WiFi network.
Links
http://wireless.kernel.org/en/users/Drivers/wl12xx/calibrator
http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Process