IMX6 AR9580 Wireless network card driver support with PCI interface added

Source: Internet
Author: User
Tags imx6

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.