Gumstix Overo – Compile wireless driver for RemierTek PT-8811AU (rtl8812AU 8821AU)

Rev-1.9

Gumstix Overo – Compile wireless driver for RemierTek PT-8811AU (rtl8812AU_8821AU)

Soruce code for PT-8811AU:
Website: http://www.premiertek.net/top/download.html
Direct Link to source: http://www.premiertek.net/support/PT-8811-AU_PT-8812AU/PT-8811_CD%2060G133000-04(330)_win81.rar
Git Master Repo: git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux

Make sure in your headers “/usr/src/linux-headers-3.5.0-2-linaro-omap” there is the link named “source” that points back to you kernel source. More than likely there will be a link named source, but it will be broken, delete it and create the correct link.

Packages needed to compile on source:
$ sudo aptitude install sysfsutils libwrap0-dev gcc libglib2.0-dev libtool automake autoconf pkg-config libsysfs-dev libltdl-dev hwdata module-assistant gawk make

Make sure that the kernel includes support for modules in the .config file:
CONFIG_MODULES=y

1. Move .config into top level of kernel source
For Yocto = /usr/src/kernel
/home/gumstix/yocto/build/tmp/sysroots/overo/usr/src/kernel/.config

For Linaro = /usr/src/linux-omap-3.5
/home/gumstix/linaro/linux/.config

2. From top level of kernel source on the target: (for example, the Linaro build it is /usr/src/linux-omap-3.5)
$ make prepare
$ make scripts

3. Copy the “Module.symvers” file into the top leve of the respective kernel source.
For Yocto = /usr/src/kernel
/home/gumstix/yocto/build/tmp/sysroots/overo/usr/src/kernel/Module.symvers

For Linaro = /usr/src/linux-omap-3.5
/home/gumstix/linaro/linux/Module.symvers

4. Make sure that the “Makefile” is pointing to the correct source and modules folders, ~/RTL8812AU_8821AU_linux_v4.2.3_8123.20130705/driver/rtl8812AU_8821AU_linux_v4.2.3_8123.20130705/Makefile

5. From “~/RTL8812AU_8821AU_linux_v4.2.3_8123.20130705/driver/rtl8812AU_8821AU_linux_v4.2.3_8123.20130705” run the commands below, one at a time:
$ make
$ make install
$ modprobe 8812au

6. Added 8812au.ko to /etc/modules:
$ nano /etc/modules
8812au

7. Add new wlan to /etc/network/interfaces
$ iwconfig # Get name of new wlan, for example wlan1

$ nano /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
down killall wpa_supplicant

auto wlan1
iface wlan1 inet static
address 192.168.1.1
netmask 255.255.255.0

$ service networking restart

Notes:
1. Make PT-8811AU use 5Ghz range:
$ iwconfig wlan0 freq 5G

2. Disable onboard wireless and bluetooth:
# disable wifi
$ echo 0 > /sys/class/gpio/gpio16/value
# disable bluetooth
$ echo 0 > /sys/class/gpio/gpio164/value

3. If you upgrade the kernel you will need to recompile the driver:
$ make
$ make install
$ modprobe 8812au

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s