VAR-SOM-AM33 Wireless LAN
From Variscite Wiki
WiLink WLAN module configuration
VAR-SOM-AM33 V2.X only:
When using VAR-SOM-AM33 v2.x, SOM has a WL183x module. In that case you should configure the WL183x module as follows (only in the first boot):
$ cd /usr/bin/wlconf/ $ ./configure-device.sh Then choose the correct number of module and antennas on board For example for WL1831: root@varsomam33:/usr/bin/wlconf# ./configure-device.sh Please provide the following information. Are you using a TI module? [y/n] : y What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1831 Should SISO40 support be applied? [y/n] : n The device has been successfully configured. TI Module: y Chip Flavor: 1831 Number of 2.4GHz Antennas Fitted: 1 Number of 5GHz Antennas Fitted: 0 Diversity Support: n SISO40 Support: n Japanese Standards Applied: n root@varsomam33:/usr/bin/wlconf# [ 713.882024] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 713.909501] wlcore: loaded For example for WL1837: root@varsomam33:/usr/bin/wlconf# ./configure-device.sh Please provide the following information. Are you using a TI module? [y/n] : y What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1837 Should Japanese standards be applied? [y/n] : n How many 2.4GHz antennas are fitted? [1/2] : 2 How many 5GHz antennas are fitted? [0/1/2] : 2 The device has been successfully configured. TI Module: y Chip Flavor: 1837 Number of 2.4GHz Antennas Fitted: 2 Number of 5GHz Antennas Fitted: 2 Diversity Support: y SISO40 Support: y Japanese Standards Applied: n root@varsomam33:/usr/bin/wlconf# [ 872.471817] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 872.499145] wlcore: loaded
General usage
List SSIDs, from Linux shell type:
$ ifconfig wlan0 up $ iw wlan0 scan
Connecting to an encrypted network:
Find your network from the above scan command.
$ wpa_passphrase <YourAP> <YourPassword> >wpa.conf $ ps | grep wpa_supplicant *kill the wpa_supplicant process if exist. $ wpa_supplicant -Dnl80211 -iwlan0 -c./wpa.conf -B $ udhcpc -iwlan0 $ ifconfig
- WL12xx calibration tool
Calibration of TI WL12xx wireless device is required and is saved into the NVS file. The NVS file is then used by the wl12xx driver. For more details please read NLCP Calibration Process
First time need to set mac address to be used automatically
$ calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00