Because the kernel 3.0 does not support 9300 Series network card, need to modify the kernel, more trouble. Therefore, the direct use of Compat Open source driver code, because the latest 4.1, 4.2 version of the bug compiled run after the problem, the current use of the 4.0.1-1 version backports-4.0.1-1. Linux kernel compilation and installation Configuring the Linux kernel
Select general Setup->kernel->user Space Relay Support (formerly RELAYFS)
Compile Build Uimage
Make Uimage arch=arm cross_compile=arm-linux-
Compiling kernel modules
Make Modules Arch=arm cross_compile=arm-linux-
Installing Modules
Make Modules_install install_mod_path= root file system directory backports compilation modification Makefile
Vim drivers/net/wireless/ath/makefile
#obj-$ (Cptcfg_ath_common) + + ath.o
obj-m + = ATH.O
Configure Backports
Make defconfig-ath9k
Configuration
Make Menuconfig
Cut out unnecessary configuration and other chip drivers
Such as: can remove USB network adapters
Remove the Realtek network card,
Just:
compiling
Make arch=arm cross_compile=arm-linux-klib= root file system/lib/modules/3.0.35 klib_build= Linux kernel directory prefix= root file system/lib/modules/ 3.0.45/kernel/driver/wifi
Find./-name *.ko|xargs-i CP {}/rootfs/lib/modules/3.0.45/kernel/driver/wifi//Copy all the WiFi drives in the modules directory of Ko to root file system
installation
Download the generated KO file to the board, modify the/etc/profile file boot load kernel module
The loading order is as follows:
Insmod Compat.ko
insmod cfg80211.ko
insmod mac80211.ko
insmod
ath.ko
insmod Ath9k_hw.ko insmod Ath9k_common.ko
Insmod Ath9k.ko