VAR-SOM-AM43 Wireless LAN: Difference between revisions
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-AM43 - WLAN}} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__ | |||
= WiLink WLAN module configuration = | = WiLink WLAN module configuration = | ||
''' VAR-SOM-AM43 V2.X only:''' <br> | ''' VAR-SOM-AM43 V2.X only:''' <br> | ||
The VAR-SOM-AM43 has a WL183x module. You should configure the WL183x module as follows (only in the first boot): | |||
<pre> | <pre> | ||
$ cd /usr/bin/wlconf/ | $ cd /usr/bin/wlconf/ | ||
Line 30: | Line 31: | ||
</pre> | </pre> | ||
For WL1837: | |||
<pre> | <pre> | ||
root@varsomam43:/usr/bin/wlconf# ./configure-device.sh | root@varsomam43:/usr/bin/wlconf# ./configure-device.sh | ||
Line 53: | Line 54: | ||
root@varsomam43:/usr/bin/wlconf# [ 872.471817] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) | root@varsomam43:/usr/bin/wlconf# [ 872.471817] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) | ||
[ 872.499145] wlcore: loaded | [ 872.499145] wlcore: loaded | ||
</pre> | |||
= MAC address settings = | |||
In order to use the built-in TI unique mac address of the module, change the wl1271-nvs.bin file using the calibrator application: | |||
<pre> | |||
$ calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00 | |||
reboot system! | |||
</pre> | |||
Note: This operation should be done only once | |||
The WLAN MAC addresses for the supported devices are derived as follows: | |||
*BD_ADDR: 08:00:28:00:00:00 | |||
*WLAN 1: 08:00:28:00:00:01 | |||
*WLAN 2: 08:00:28:00:00:02 | |||
When deriving the WLAN addresses from the BD_ADDR, ensure that the organizational unique identifier (OUI) is not changed. <br> | |||
The OUI (first 3 bytes) is pre-assigned by the IEEE to different companies (for example, the TI OUI is 08:00:28). The company that owns the OUI assigns the network identification card (NIC) address (last 3 bytes). | |||
= General usage = | |||
List SSIDs, from Linux shell type: | |||
<pre>$ ifconfig wlan0 up | |||
$ iw wlan0 scan | |||
</pre> | |||
'''Connecting to an encrypted network:'''<br> | |||
Find your network from the above scan command.<br> | |||
<pre>$ 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 | |||
</pre> | </pre> |
Latest revision as of 13:59, 24 December 2015
WiLink WLAN module configuration
VAR-SOM-AM43 V2.X only:
The VAR-SOM-AM43 has a WL183x module. 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@varsomam43:/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@varsomam43:/usr/bin/wlconf# [ 713.882024] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 713.909501] wlcore: loaded
For WL1837:
root@varsomam43:/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@varsomam43:/usr/bin/wlconf# [ 872.471817] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 872.499145] wlcore: loaded
MAC address settings
In order to use the built-in TI unique mac address of the module, change the wl1271-nvs.bin file using the calibrator application:
$ calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00 reboot system!
Note: This operation should be done only once
The WLAN MAC addresses for the supported devices are derived as follows:
- BD_ADDR: 08:00:28:00:00:00
- WLAN 1: 08:00:28:00:00:01
- WLAN 2: 08:00:28:00:00:02
When deriving the WLAN addresses from the BD_ADDR, ensure that the organizational unique identifier (OUI) is not changed.
The OUI (first 3 bytes) is pre-assigned by the IEEE to different companies (for example, the TI OUI is 08:00:28). The company that owns the OUI assigns the network identification card (NIC) address (last 3 bytes).
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