Difference between revisions of "Wl12xx driver"
From ArmadeusWiki
(→Installation) |
(→Calibration) |
||
Line 27: | Line 27: | ||
* Use the calibrator tool to generate the new calibration data. This will generate a file called new-nvs.bin. | * Use the calibrator tool to generate the new calibration data. This will generate a file called new-nvs.bin. | ||
− | <pre> | + | <pre class="apf"> |
# calibrator set ref_nvs /usr/share/ti-utils/ini_files/127x/TQS_S_2.6.ini | # calibrator set ref_nvs /usr/share/ti-utils/ini_files/127x/TQS_S_2.6.ini | ||
</pre> | </pre> | ||
* Copy the file to the right place. | * Copy the file to the right place. | ||
− | <pre> | + | <pre class="apf"> |
# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin | # cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin | ||
</pre> | </pre> | ||
− | * Set a MAC address. | + | * Set a MAC address (here for example an Armadeus Systems one). |
− | <pre> | + | <pre class="apf"> |
# calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:1E:AC:00:51:22 | # calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:1E:AC:00:51:22 | ||
</pre> | </pre> | ||
* Load the wl12xx driver. | * Load the wl12xx driver. | ||
− | <pre> | + | <pre class="apf"> |
# modprobe wl12xx | # modprobe wl12xx | ||
# modprobe wlcore_sdio | # modprobe wlcore_sdio | ||
wl1271_sdio mmc0:0001:2: legacy platform data not found, trying device tree | wl1271_sdio mmc0:0001:2: legacy platform data not found, trying device tree | ||
+ | ... | ||
wlcore: loaded | wlcore: loaded | ||
</pre> | </pre> | ||
* Calibrate the chip. | * Calibrate the chip. | ||
− | <pre> | + | <pre class="apf"> |
# calibrator plt calibrate dual | # calibrator plt calibrate dual | ||
wlcore: power up | wlcore: power up | ||
Line 61: | Line 62: | ||
* Reset the chip. (or reboot the board) | * Reset the chip. (or reboot the board) | ||
− | <pre> | + | <pre class="apf"> |
# echo 40 > /sys/class/gpio/export | # echo 40 > /sys/class/gpio/export | ||
# echo out > /sys/class/gpio/gpio40/direction | # echo out > /sys/class/gpio/gpio40/direction | ||
Line 68: | Line 69: | ||
* Power up the wireless interface. | * Power up the wireless interface. | ||
− | <pre> | + | <pre class="apf"> |
# ifconfig wlan0 up | # ifconfig wlan0 up | ||
wlcore: firmware booted (Rev 6.3.10.0.133) | wlcore: firmware booted (Rev 6.3.10.0.133) |
Revision as of 15:17, 14 July 2015
The wl12xx driver is used by the Wi-Fi/Bluetooth chip present on the APF6 module. Before using the Wi-Fi, you have to calibrate the chip. This page details how to do it.
Installation
- On APF6, all needed tools/drivers are installed by default. You can directly switch to calibration.
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 (here for example an Armadeus Systems one).
# 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 # echo 1 > /sys/class/gpio/gpio40/value
- 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.