cubieplayer 发表于 2015-9-14 22:00:24

发个教程,编译8812au驱动

本帖最后由 cubieplayer 于 2015-9-14 22:20 编辑

这里排版有点乱,推荐去github上看
https://github.com/cubieplayer/Cubian/issues/470


操作步骤如下:
apt-get install linux-headers-3.4.79-sun7i
git clone --depth=1 https://github.com/gnab/rtl8812au.git
cd rtl8812au
修改makefile
...CONFIG_PLATFORM_I386_PC = n...CONFIG_PLATFORM_ARM_RPI = y
make
整个过程log如下:root@Cubian:/home/cubie# apt-get install linux-headers
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package linux-headers is a virtual package provided by:
linux-headers-3.4.79-sun7i 3.4.79-4cubian
linux-headers-3.4.79-sun4i 3.4.79-4cubian
linux-headers-vexpress 3.2+46
linux-headers-omap 3.2+46
linux-headers-mx5 3.2+46
linux-headers-3.2.0-4-vexpress 3.2.68-1+deb7u3
linux-headers-3.2.0-4-omap 3.2.68-1+deb7u3
linux-headers-3.2.0-4-mx5 3.2.68-1+deb7u3
You should explicitly select one to install.

E: Package 'linux-headers' has no installation candidate
root@Cubian:/home/cubie# apt-get install linux-headers-3.4.79-sun4i
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-base libc-bin libc-dev-bin libc6
libc6-dev libgomp1 libmpc2 libmpfr4 linux-libc-dev make manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales gcc-multilib autoconf automake1.9
libtool flex bison gdb gcc-doc libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg
libgomp1-dbg libquadmath-dbg libmudflap0-dbg binutils-gold glibc-doc
make-doc
The following NEW packages will be installed:
binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-base libc-dev-bin libc6-dev
libgomp1 libmpc2 libmpfr4 linux-headers-3.4.79-sun4i linux-libc-dev make
manpages-dev
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 15 newly installed, 0 to remove and 69 not upgraded.
Need to get 31.9 MB of archives.
After this operation, 82.4 MB of additional disk space will be used.
Do you want to continue ? y
Get:1 http://packages.cubian.org/ wheezy/main linux-headers-3.4.79-sun4i armhf 3.4.79-4cubian
Get:2 http://http.debian.net/debian/ wheezy/main libc-bin armhf 2.13-38+deb7u8
Get:3 http://http.debian.net/debian/ wheezy/main libc6 armhf 2.13-38+deb7u8
Get:4 http://http.debian.net/debian/ wheezy/main manpages-dev all 3.44-1
Get:5 http://http.debian.net/debian/ wheezy/main libgomp1 armhf 4.7.2-5
Get:6 http://http.debian.net/debian/ wheezy/main libmpfr4 armhf 3.1.0-5
Get:7 http://http.debian.net/debian/ wheezy/main libmpc2 armhf 0.9-4+b1
Get:8 http://http.debian.net/debian/ wheezy/main binutils armhf 2.22-8+deb7u2
Get:9 http://http.debian.net/debian/ wheezy/main gcc-4.6-base armhf 4.6.3-14
Get:10 http://http.debian.net/debian/ wheezy/main cpp-4.6 armhf 4.6.3-14
Get:11 http://http.debian.net/debian/ wheezy/main cpp armhf 4:4.6.3-8
Get:12 http://http.debian.net/debian/ wheezy/main gcc-4.6 armhf 4.6.3-14
Get:13 http://http.debian.net/debian/ wheezy/main gcc armhf 4:4.6.3-8
Get:14 http://http.debian.net/debian/ wheezy/main libc-dev-bin armhf 2.13-38+deb7u8
Get:15 http://http.debian.net/debian/ wheezy/main linux-libc-dev armhf 3.2.68-1+deb7u3
Get:16 http://http.debian.net/debian/ wheezy/main libc6-dev armhf 2.13-38+deb7u8
Get:17 http://http.debian.net/debian/ wheezy/main make armhf 3.81-8.2
Fetched 31.9 MB in 4min 14s (125 kB/s)                                       
Preconfiguring packages ...
(Reading database ... 26652 files and directories currently installed.)
Preparing to replace libc-bin 2.13-38+deb7u4 (using .../libc-bin_2.13-38+deb7u8_armhf.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.13-38+deb7u8) ...
(Reading database ... 26653 files and directories currently installed.)
Preparing to replace libc6:armhf 2.13-38+deb7u4 (using .../libc6_2.13-38+deb7u8_armhf.deb) ...
Unpacking replacement libc6:armhf ...
Setting up libc6:armhf (2.13-38+deb7u8) ...
INIT: version 2.88 reloading
Selecting previously unselected package libgomp1:armhf.
(Reading database ... 26653 files and directories currently installed.)
Unpacking libgomp1:armhf (from .../libgomp1_4.7.2-5_armhf.deb) ...
Selecting previously unselected package libmpfr4:armhf.
Unpacking libmpfr4:armhf (from .../libmpfr4_3.1.0-5_armhf.deb) ...
Selecting previously unselected package libmpc2:armhf.
Unpacking libmpc2:armhf (from .../libmpc2_0.9-4+b1_armhf.deb) ...
Selecting previously unselected package binutils.
Unpacking binutils (from .../binutils_2.22-8+deb7u2_armhf.deb) ...
Selecting previously unselected package gcc-4.6-base:armhf.
Unpacking gcc-4.6-base:armhf (from .../gcc-4.6-base_4.6.3-14_armhf.deb) ...
Selecting previously unselected package cpp-4.6.
Unpacking cpp-4.6 (from .../cpp-4.6_4.6.3-14_armhf.deb) ...
Selecting previously unselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.6.3-8_armhf.deb) ...
Selecting previously unselected package gcc-4.6.
Unpacking gcc-4.6 (from .../gcc-4.6_4.6.3-14_armhf.deb) ...
Selecting previously unselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.6.3-8_armhf.deb) ...
Selecting previously unselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-38+deb7u8_armhf.deb) ...
Selecting previously unselected package linux-libc-dev:armhf.
Unpacking linux-libc-dev:armhf (from .../linux-libc-dev_3.2.68-1+deb7u3_armhf.deb) ...
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[BSelecting previously unselected package libc6-dev:armhf.
Unpacking libc6-dev:armhf (from .../libc6-dev_2.13-38+deb7u8_armhf.deb) ...
Selecting previously unselected package linux-headers-3.4.79-sun4i.
Unpacking linux-headers-3.4.79-sun4i (from .../linux-headers-3.4.79-sun4i_3.4.79-4cubian_armhf.deb) ...
Selecting previously unselected package make.
Unpacking make (from .../make_3.81-8.2_armhf.deb) ...
Selecting previously unselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.44-1_all.deb) ...
Processing triggers for man-db ...
Setting up libgomp1:armhf (4.7.2-5) ...
Setting up libmpfr4:armhf (3.1.0-5) ...
Setting up libmpc2:armhf (0.9-4+b1) ...
Setting up binutils (2.22-8+deb7u2) ...
Setting up gcc-4.6-base:armhf (4.6.3-14) ...
Setting up cpp-4.6 (4.6.3-14) ...
Setting up cpp (4:4.6.3-8) ...
Setting up gcc-4.6 (4.6.3-14) ...
Setting up gcc (4:4.6.3-8) ...
Setting up libc-dev-bin (2.13-38+deb7u8) ...
Setting up linux-libc-dev:armhf (3.2.68-1+deb7u3) ...
Setting up libc6-dev:armhf (2.13-38+deb7u8) ...
Setting up linux-headers-3.4.79-sun4i (3.4.79-4cubian) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/000_header_prepare 3.4.79-sun4i /boot/uImage-3.4.79-sun4i
############################
#    preparing headers   #
#      please wait         #
############################
HOSTCCscripts/basic/fixdep
HOSTCCscripts/kconfig/conf.o
HOSTCCscripts/kconfig/zconf.tab.o
HOSTLDscripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
CHK   include/linux/version.h
CHK   include/generated/utsrelease.h
Generating include/generated/mach-types.h
HOSTCCscripts/genksyms/genksyms.o
HOSTCCscripts/genksyms/lex.lex.o
HOSTCCscripts/genksyms/parse.tab.o
HOSTLDscripts/genksyms/genksyms
CC      scripts/mod/empty.o
HOSTCCscripts/mod/mk_elfconfig
MKELF   scripts/mod/elfconfig.h
HOSTCCscripts/mod/file2alias.o
HOSTCCscripts/mod/modpost.o
HOSTCCscripts/mod/sumversion.o
HOSTLDscripts/mod/modpost
HOSTCCscripts/kallsyms
HOSTCCscripts/pnmtologo
HOSTCCscripts/conmakehash
HOSTCCscripts/bin2c
############################
# headers is ready to use#
############################
Setting up make (3.81-8.2) ...
Setting up manpages-dev (3.44-1) ...
root@Cubian:/home/cubie# clear











root@Cubian:/home/cubie# ls
rc.local.bakscan.sh
root@Cubian:/home/cubie# <7>cma: dma_alloc_from_contiguous(cma ef02f7c0, count 1, align 0)
<7>cma: dma_alloc_from_contiguous(): returned d1078c40

root@Cubian:/home/cubie# exit
exit
cubie@Cubian:~$ git clone --depth=1 https://github.com/michalliu/rtl8812au.git
-bash: git: command not found
cubie@Cubian:~$ sudo apt-get install git
password for cubie:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch
Suggested packages:
gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-arch
git-cvs git-svn git-email git-gui gitk gitweb ed diffutils-doc
The following NEW packages will be installed:
git git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch
0 upgraded, 7 newly installed, 0 to remove and 69 not upgraded.
Need to get 7,170 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Do you want to continue ?
Get:1 http://http.debian.net/debian/ wheezy/main librtmp0 armhf 2.4+20111222.git4e06e21-1
Get:2 http://http.debian.net/debian/ wheezy/main libssh2-1 armhf 1.4.2-1.1+deb7u1
Get:3 http://http.debian.net/debian/ wheezy/main libcurl3-gnutls armhf 7.26.0-1+wheezy13
Get:4 http://http.debian.net/debian/ wheezy/main patch armhf 2.6.1-3
Get:5 http://http.debian.net/debian/ wheezy/main liberror-perl all 0.17-1
Get:6 http://http.debian.net/debian/ wheezy/main git armhf 1:1.7.10.4-1+wheezy1
Get:7 http://http.debian.net/debian/ wheezy/main git-man all 1:1.7.10.4-1+wheezy1
Fetched 7,170 kB in 50s (143 kB/s)                                             
Selecting previously unselected package librtmp0:armhf.
(Reading database ... 40945 files and directories currently installed.)
Unpacking librtmp0:armhf (from .../librtmp0_2.4+20111222.git4e06e21-1_armhf.deb) ...
Selecting previously unselected package libssh2-1:armhf.
Unpacking libssh2-1:armhf (from .../libssh2-1_1.4.2-1.1+deb7u1_armhf.deb) ...
Selecting previously unselected package libcurl3-gnutls:armhf.
Unpacking libcurl3-gnutls:armhf (from .../libcurl3-gnutls_7.26.0-1+wheezy13_armhf.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3_armhf.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.10.4-1+wheezy1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.10.4-1+wheezy1_armhf.deb) ...
Processing triggers for man-db ...
Setting up librtmp0:armhf (2.4+20111222.git4e06e21-1) ...
Setting up libssh2-1:armhf (1.4.2-1.1+deb7u1) ...
Setting up libcurl3-gnutls:armhf (7.26.0-1+wheezy13) ...
Setting up patch (2.6.1-3) ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.10.4-1+wheezy1) ...
Setting up git (1:1.7.10.4-1+wheezy1) ...
cubie@Cubian:~$ clear











cubie@Cubian:~$ ls
rc.local.bakscan.sh
cubie@Cubian:~$ git clone --depth=1 https://github.com/michalliu/rtl8812au.git
Cloning into 'rtl8812au'...
remote: Counting objects: 330, done.
remote: Compressing objects: 100% (233/233), done.
remote: Total 330 (delta 93), reused 320 (delta 93), pack-reused 0
Receiving objects: 100% (330/330), 1.45 MiB | 309 KiB/s, done.
Resolving deltas: 100% (93/93), done.
cubie@Cubian:~$ ls
rc.local.bakrtl8812auscan.sh
cubie@Cubian:~$ cd rtl8812au/
cubie@Cubian:~/rtl8812au$ ls
cleanhal          include   Kconfig   os_dep   runwpa
core   ifcfg-wlan0install.shMakefileREADME.mdwlan0dhcp
cubie@Cubian:~/rtl8812au$ make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.4.79-sun4i/build M=/home/cubie/rtl8812aumodules
make: Entering directory `/usr/src/linux-headers-3.4.79-sun4i'
Makefile:567: /usr/src/linux-headers-3.4.79-sun4i/arch/armv7l/Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-headers-3.4.79-sun4i/arch/armv7l/Makefile'.Stop.
make: Leaving directory `/usr/src/linux-headers-3.4.79-sun4i'
make: *** Error 2
cubie@Cubian:~/rtl8812au$ clear











cubie@Cubian:~/rtl8812au$ ls
cleanhal          include   Kconfig   os_dep   runwpa
core   ifcfg-wlan0install.shMakefileREADME.mdwlan0dhcp
cubie@Cubian:~/rtl8812au$ vim Makefile






























EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wextra
#EXTRA_CFLAGS += -Werror
#EXTRA_CFLAGS += -pedantic
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmisss
ing-prototypes

EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-unused-value
EXTRA_CFLAGS += -Wno-unused-label
EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wno-unused

EXTRA_CFLAGS += -Wno-uninitialized

EXTRA_CFLAGS += -I$(src)/include

CONFIG_AUTOCFG_CP = n

/ARM










CONFIG_RTL8192CU_REDEFINE_1X1 = n
CONFIG_INTEL_WIDI = n
CONFIG_WAPI_SUPPORT = n
CONFIG_EFUSE_CONFIG_FILE = n
CONFIG_EXT_CLK = n
CONFIG_FTP_PROTECT = n
CONFIG_WOWLAN = n

CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
CONFIG_PLATFORM_ARM_PXA2XX = n
CONFIG_PLATFORM_ARM_S3C6K4 = n
CONFIG_PLATFORM_ARM_RPI = y
CONFIG_PLATFORM_MIPS_RMI = n
CONFIG_PLATFORM_RTD2880B = n
CONFIG_PLATFORM_MIPS_AR9132 = n
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_MT53XX = n
CONFIG_PLATFORM_ARM_MX51_241H = n
CONFIG_PLATFORM_FS_MX61 = n
CONFIG_PLATFORM_ACTIONS_ATJ227X = n
CONFIG_PLATFORM_TEGRA3_CARDHU = n
CONFIG_PLATFORM_TEGRA4_DALMORE = n
CONFIG_PLATFORM_ARM_TCC8900 = n
"Makefile" 1085L, 31130C written
cubie@Cubian:~/rtl8812au$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.4.79-sun4i/build M=/home/cubie/rtl8812aumodules
make: Entering directory `/usr/src/linux-headers-3.4.79-sun4i'
CC /home/cubie/rtl8812au/core/rtw_cmd.o
CC /home/cubie/rtl8812au/core/rtw_security.o
CC /home/cubie/rtl8812au/core/rtw_debug.o
CC /home/cubie/rtl8812au/core/rtw_io.o
CC /home/cubie/rtl8812au/core/rtw_ioctl_query.o
CC /home/cubie/rtl8812au/core/rtw_ioctl_set.o
CC /home/cubie/rtl8812au/core/rtw_ieee80211.o
CC /home/cubie/rtl8812au/core/rtw_mlme.o
CC /home/cubie/rtl8812au/core/rtw_mlme_ext.o
CC /home/cubie/rtl8812au/core/rtw_wlan_util.o
CC /home/cubie/rtl8812au/core/rtw_vht.o
CC /home/cubie/rtl8812au/core/rtw_pwrctrl.o
CC /home/cubie/rtl8812au/core/rtw_rf.o
CC /home/cubie/rtl8812au/core/rtw_recv.o
CC /home/cubie/rtl8812au/core/rtw_sta_mgt.o
CC /home/cubie/rtl8812au/core/rtw_ap.o
CC /home/cubie/rtl8812au/core/rtw_xmit.o
CC /home/cubie/rtl8812au/core/rtw_p2p.o
CC /home/cubie/rtl8812au/core/rtw_tdls.o
CC /home/cubie/rtl8812au/core/rtw_br_ext.o
CC /home/cubie/rtl8812au/core/rtw_iol.o
CC /home/cubie/rtl8812au/core/rtw_sreset.o
CC /home/cubie/rtl8812au/core/efuse/rtw_efuse.o
CC /home/cubie/rtl8812au/os_dep/osdep_service.o
CC /home/cubie/rtl8812au/os_dep/linux/os_intfs.o
CC /home/cubie/rtl8812au/os_dep/linux/usb_intf.o
CC /home/cubie/rtl8812au/os_dep/linux/usb_ops_linux.o
CC /home/cubie/rtl8812au/os_dep/linux/ioctl_linux.o
CC /home/cubie/rtl8812au/os_dep/linux/xmit_linux.o
CC /home/cubie/rtl8812au/os_dep/linux/mlme_linux.o
CC /home/cubie/rtl8812au/os_dep/linux/recv_linux.o
CC /home/cubie/rtl8812au/os_dep/linux/ioctl_cfg80211.o
CC /home/cubie/rtl8812au/os_dep/linux/rtw_android.o
CC /home/cubie/rtl8812au/hal/hal_intf.o
CC /home/cubie/rtl8812au/hal/hal_com.o
CC /home/cubie/rtl8812au/hal/hal_com_phycfg.o
CC /home/cubie/rtl8812au/hal/hal_phy.o
CC /home/cubie/rtl8812au/hal/led/hal_usb_led.o
CC /home/cubie/rtl8812au/hal/HalPwrSeqCmd.o
CC /home/cubie/rtl8812au/hal/rtl8812a/Hal8812PwrSeq.o
CC /home/cubie/rtl8812au/hal/rtl8812a/Hal8821APwrSeq.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_xmit.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_sreset.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_hal_init.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_phycfg.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_rf6052.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_dm.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_rxdesc.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_cmd.o
CC /home/cubie/rtl8812au/hal/rtl8812a/usb/usb_halinit.o
CC /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_led.o
CC /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_xmit.o
CC /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_recv.o
CC /home/cubie/rtl8812au/hal/rtl8812a/usb/usb_ops_linux.o
CC /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_mp.o
CC /home/cubie/rtl8812au/hal/OUTSRC/odm_debug.o
CC /home/cubie/rtl8812au/hal/OUTSRC/odm_interface.o
CC /home/cubie/rtl8812au/hal/OUTSRC/odm_HWConfig.o
CC /home/cubie/rtl8812au/hal/OUTSRC/odm.o
CC /home/cubie/rtl8812au/hal/OUTSRC/HalPhyRf.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_FW.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_MAC.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_BB.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_RF.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_FW.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_MAC.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_BB.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_RF.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalPhyRf_8812A.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/odm_RegConfig8812A.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_FW.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_MAC.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_BB.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_RF.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_MAC.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_BB.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_RF.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalPhyRf_8821A.o
CC /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/odm_RegConfig8821A.o
CC /home/cubie/rtl8812au/core/rtw_mp.o
CC /home/cubie/rtl8812au/core/rtw_mp_ioctl.o
LD /home/cubie/rtl8812au/8812au.o
Building modules, stage 2.
MODPOST 1 modules
CC      /home/cubie/rtl8812au/8812au.mod.o
LD /home/cubie/rtl8812au/8812au.ko
make: Leaving directory `/usr/src/linux-headers-3.4.79-sun4i'
cubie@Cubian:~/rtl8812au$ ls
8812au.ko   8812au.ohal          install.shmodules.order   README.md
8812au.mod.cclean   ifcfg-wlan0Kconfig   Module.symversrunwpa
8812au.mod.ocore      include      Makefile    os_dep          wlan0dhcp
cubie@Cubian:~/rtl8812au$ sudo -s
root@Cubian:/home/cubie/rtl8812au# isnmod ./8812au.ko
bash: isnmod: command not found
root@Cubian:/home/cubie/rtl8812au# insmod 8812au.ko
<6>usbcore: registered new interface driver rtl8812au
root@Cubian:/home/cubie/rtl8812au# lsmod
Module                  SizeUsed by
8812au                9214950
8021q                  179360
garp                  61201 8021q
stp                     19921 garp
llc                     52762 stp,garp
ipt_MASQUERADE          22421
iptable_nat             48381
nf_nat               187462 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      143203 nf_nat,iptable_nat
nf_defrag_ipv4          13581 nf_conntrack_ipv4
nf_conntrack         847564 ipt_MASQUERADE,nf_nat,iptable_nat,nf_conntrack_ipv4
iptable_filter          15331
ip_tables            125812 iptable_filter,iptable_nat
x_tables               168294 ip_tables,ipt_MASQUERADE,iptable_filter,iptable_nat
sunxi_cedar_mod      105440
mali                  1135560
ump                  569831 mali
gpio_sunxi            94120
rt73usb                222570
rt2x00usb            112791 rt73usb
rt2x00lib            424062 rt73usb,rt2x00usb
8188eu                5254040
mac80211            2474652 rt2x00lib,rt2x00usb

xcc1997 发表于 2015-11-5 22:13:38

本帖最后由 xcc1997 于 2015-11-5 22:15 编辑

为什么我想编译个hid-sony.ko就是不成功,载入mod时总是提示Invalid modue format?
或者求大神帮忙编译个hid-sony驱动,我想连接ps3手柄用的,百度google找了好久也找不到解决方案
页: [1]
查看完整版本: 发个教程,编译8812au驱动