Add Wi-Fi support to Atmel SAM9 platforms

This page will provide short information on how to build and install the Wi-Fi Linux driver on the Atmel AT91 SAM9M10-EKES, SAM9M10 G45-EK, SAM9X5-EK and SAM9RL-EK development boards.

NOTE: This information should be used in addition to the instructions given on http://www.linux4sam.org

To be able to use the owl wifi driver on the SAM9 boards, the kernel must be patched and the owl wifi driver kernel module must be built and installed. This can be performed "standalone" or from the Angstrom/OpenEmbedded environment.

It is also possible to use a pre-built image that is provided by HD Wireless. See DemoSAM9 for information about the demo image.

This page will describe the two options for building and installing the Wi-Fi driver on the Atmel SAM9 development boards.

Adding Wi-Fi support to Angstrom/OpenEmbedded

When building a kernel and a rootfs using Angstrom/OpenEmbedded, the oe_at91sam-owl-wifi patch should be applied to the oe_at91sam.tgz overlay tree (ftp://ftp.linux4sam.org/pub/oe/linux4sam_2.1/oe_at91sam.tgz).

First, follow the instructions at: http://www.at91.com/linux4sam/bin/view/Linux4SAM/OpenEmbeddedAngstromBuild#How_to_build_Angstrom_for_AT91

After applying the AT91 OpenEmbedded overlay tree, apply the owl wifi patch: oe_at91sam-owl-wifi.patch

angr@blorg:~/oe$ cd oe_at91sam
angr@blorg:~/oe/oe_at91sam$ cp /path/to/oe_at91sam-owl-wifi.patch .
angr@blorg:~/oe/oe_at91sam$ patch -p1 < oe_at91sam-owl-wifi.patch

Then continue with the remainig steps as described in "Setup local configuration" on http://www.at91.com/linux4sam/bin/view/Linux4SAM/OpenEmbeddedAngstromBuild#How_to_build_Angstrom_for_AT91

The kernel and rootfs image will now have wifi support, and the module will be loaded upon system start.

NOTE: The owl-wifi recipe currently uses the 1.0.5 driver.

Adding Wi-Fi support to a "custom" kernel

In "standalone" mode, it is assumed that a custom kernel image is built and used according to http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel.

During the "Get and patch the Linux kernel", as described in http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel, apply the 2.6.30-at91-sdio-irq-support-both-slots.patch after applying the 2.6.30-at91-exp.4.tar.gz patchset:

angr@blorg:~$ cd linux-2.6.30
angr@blorg:~/linux-2.6.30$ cp /path/to/2.6.30-at91-sdio-irq-support-both-slots.patch .
angr@blorg:~/linux-2.6.30$ patch -p1 < 2.6.30-at91-sdio-irq-support-both-slots.patch

After applying the patch, follow the remaining steps as described in http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel to configure, build and install the kernel.

See the topic about building the Wi-Fi driver BuildDriver for information on how to build and install the owl wifi driver kernel module.

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatpatch 2.6.30-at91-sdio-irq-support-both-slots.patch manage 3.3 K 2011-02-02 - 07:14 AndersGrahn Linux kernel patch for SDIO performance enhancement (both slots).
Unknown file formatpatch 2.6.30-at91-sdio-irq-support.patch manage 3.4 K 2010-10-08 - 14:22 AndersGrahn Linux kernel patch for SDIO performance enhancement.
Unknown file formatpatch oe_at91sam-owl-wifi-1.0.6.patch manage 27.5 K 2011-11-18 - 13:49 AndersGrahn Patch for OpenEmbedded build that supports SAM9G20 and uses owl-wifi 1.0.6.
Unknown file formatpatch oe_at91sam-owl-wifi.patch manage 4.6 K 2011-02-17 - 13:08 AndersGrahn Patch for OpenEmbedded build
Topic revision: r7 - 2012-11-01 - 15:09:39 - AndersGrahn
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback