Build, Install and load the Wi-Fi driver
Note that the oWL SDIO layer requires linux kernel version 2.6.23 or higher. If such kernel version is not available on the host platform, the oWL SDIO layer must be modified.
Also note that the owl driver is tested on linux kernel 2.6.30, Wireless Extensions 22, WPA Supplicant 0.6.7 and Wireless Tools 29.
To compile the owl driver for a particular host platform, a cross compiler and the include files and configuration for the Linux kernel must be available. Make sure to replace /path/to/kernel with the actual path to the Linux kernel source tree used on the host platform. Also make sure to replace /path/to/prefix with the proper cross compiler prefix, e.g. arm-linux- if the name of the GCC binary is arm-linux-gcc. If building for a non-arm architecture, make sure to set the ARCH parameter accordingly (however, note that the wl_api core library included in the owl driver package is compiled for specific architecture).
$ tar xvzf owl-linux-arm-1.0.4.tar.gz
$ cd owl-linux-arm-1.0.4
$ make KERNELDIR=/path/to/kernel CROSS_COMPILE=/path/to/prefix ARCH=arm
This should produce the owl.ko binary.
Copy the owl.ko file to the host platform. The details of this step depend on the tools and interfaces available on the host platform. In most cases, scp, can be used to transfer files over an ssh connection.
$ scp owl.ko user@host:/path/to
Load the owl device driver, e.g. by issuing insmod owl.ko on the host platform. The owl device driver will output net owl0: ready in the kernel log (usually /var/log/messages). The owl device driver should now appear as interface owl0 and should be listed by ifconfig owl0.
$ insmod owl.ko
$ ifconfig owl0
owl0 Link encap:Ethernet HWaddr 7A:C4:0E:A1:DD:9C
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)
Note that the device is usable on a link-level also when it is not up.
Topic revision: r2 - 2010-10-08 - 20:02:47 -
AndersGrahn