Open main menu

DAVE Developer's Wiki β

Changes

Wireless Module (DWM)

2,536 bytes added, 15:21, 5 November 2012
How to enable WiFi support
==How to enable WiFi support==
=== Kernel setup ===
Edit kernel configuration adding support for MMC and WL1271 chipset
 
=== Make Wireless Tools ===
 
[http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html Wifi Tools]
 
[http://www.omappedia.com/wiki/Mac80211_based_open_source_architecture FW DWL]
 
To build Wireless tools you need to modify the Makefile 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
* make all
* sudo make install
 
== Module Firmware ==
 
Download the firmware binaries and copy them into <RFS>/lib/firmware:
 
* wl1271-fw.bin
* wl1271-nvs.bin
 
 
== User Space ==
 
===Boot===
<pre>
[...cut...]
[ 0.980000] cfg80211: Calling CRDA to update world regulatory domain
[...cut...]
[ 12.950000] lib80211: common routines for IEEE802.11 drivers
[ 12.960000] lib80211_crypt: registered algorithm 'NULL'
[...cut...]
[ 13.190000] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 13.210000] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 13.220000] mmc1: new SDIO card at address 0001
[ 13.220000] PM: Adding info for mmc:mmc1:0001
[ 13.230000] PM: Adding info for sdio:mmc1:0001:1
[ 13.370000] PM: Adding info for sdio:mmc1:0001:2
[ 13.380000] PM: Adding info for platform:wl1271
[ 13.380000] PM: Adding info for No Bus:phy0
[ 13.390000] PM: Adding info for No Bus:wlan0
[ 13.390000] wl1271: loaded
[ 13.390000] wl1271: initialized
</pre>
 
===Dev Check===
 
Check module loading and device creation:
 
<pre>
ifconfig -a
[...cut...]
 
wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
</pre>
 
Set the wlan0 MAC address:
 
<pre>
ifconfig wlan0 hw ether xx:yy:zz:kk:ww:jj
</pre>
 
You can create a simple script: '''setwmac''' to set the MAC address:
 
Use:
<pre>
setwmac 00:01:02:03:04:05
</pre>
 
Example:
<pre>
root@dm814x-evm:~# setwmac 00:50:C2:B9:CF:87
Disable Wlan0...
Set Wlan MAC: 00:50:C2:B9:CF:87
Enable Wlan0...
[ 36.960000] PM: Adding info for No Bus:mmc1:0001:2
[ 37.020000] PM: Removing info for No Bus:mmc1:0001:2
[ 37.020000] PM: Adding info for No Bus:mmc1:0001:2
[ 37.060000] PM: Removing info for No Bus:mmc1:0001:2
[ 37.220000] wl1271: firmware booted (Rev 6.1.0.50.350)
Done!
</pre>
==How to enable Bluetooth support==