TWiki
>
Linux Web
>
BuildDrivers
(2015-02-16,
AndersGrahn
)
(raw view)
E
dit
A
ttach
---+ Build, Install and load the Wi-Fi driver For building of HDG200 driver, please read <a href="BuildHDG200" title="Build HDG200">here</a>. 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). <verbatim>$ tar xvzf owl-linux-1.0.7.tar.gz $ cd owl-linux-1.0.7 $ make KERNELDIR=/path/to/kernel CROSS_COMPILE=/path/to/prefix ARCH=arm</verbatim> <span style="background-color: transparent;">This should produce the owl.ko binary.</span> 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. <verbatim>$ scp owl.ko user@host:/path/to</verbatim> For station mode, 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. <pre><verbatim>$ 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) </verbatim> </pre> Note that the device is usable on a link-level also when it is not up. The *access point mode* requires a separate kernel module (that can not be loaded at the same time as the kernel module for station mode). Therefore, if access point mode is required, another kernel module must be built. <pre><verbatim> $ make KERNELDIR=/path/to/kernel CROSS_COMPILE=/path/to/prefix ARCH=arm CONFIG=ap</verbatim> </pre> <span style="background-color: transparent;">The kernel module for access point mode will be named owl-ap.ko. Similar to the kernel module for station mode; c</span><span style="background-color: transparent;">opy the owl-ap.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.</span> <verbatim>$ scp owl-ap.ko user@host:/path/to</verbatim> <span style="background-color: transparent;">For access point mode, load the owl-ap device driver, e.g. by issuing insmod owl-ap.ko on the host platform. The owl device driver should now appear as interface owl0 and should be listed by ifconfig owl0.</span> <pre><verbatim>$ insmod owl-ap.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)</verbatim> </pre>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r6
<
r5
<
r4
<
r3
<
r2
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r6 - 2015-02-16 - 08:31:23 -
AndersGrahn
Linux
Log In
(Admin Only)
Getting Started
Download
Build
Use
Wireless Tools
WPA Supplicant
Throughput Test
Roaming
Ifup and ifdown
Platforms
Atmel SAM9
Demo Images
Atmel SAM9
HDG200
Platforms
Download and Build
Demo Images
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback