CubieBoard博客-HomeCubieTech公司网站

cubie.cc CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 5521|回复: 1

发个教程,编译8812au驱动

[复制链接]

24

主题

10

好友

1万

积分

版主

Rank: 7Rank: 7Rank: 7

贡献
1924
金钱
3700
威望
1932
买家信用
卖家信用
积分
10040
发表于 2015-9-14 22:00:24 |显示全部楼层
本帖最后由 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如下:
  1. root@Cubian:/home/cubie# apt-get install linux-headers
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. Package linux-headers is a virtual package provided by:
  6.   linux-headers-3.4.79-sun7i 3.4.79-4cubian
  7.   linux-headers-3.4.79-sun4i 3.4.79-4cubian
  8.   linux-headers-vexpress 3.2+46
  9.   linux-headers-omap 3.2+46
  10.   linux-headers-mx5 3.2+46
  11.   linux-headers-3.2.0-4-vexpress 3.2.68-1+deb7u3
  12.   linux-headers-3.2.0-4-omap 3.2.68-1+deb7u3
  13.   linux-headers-3.2.0-4-mx5 3.2.68-1+deb7u3
  14. You should explicitly select one to install.

  15. E: Package 'linux-headers' has no installation candidate
  16. root@Cubian:/home/cubie# apt-get install linux-headers-3.4.79-sun4i
  17. Reading package lists... Done
  18. Building dependency tree      
  19. Reading state information... Done
  20. The following extra packages will be installed:
  21.   binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-base libc-bin libc-dev-bin libc6
  22.   libc6-dev libgomp1 libmpc2 libmpfr4 linux-libc-dev make manpages-dev
  23. Suggested packages:
  24.   binutils-doc cpp-doc gcc-4.6-locales gcc-multilib autoconf automake1.9
  25.   libtool flex bison gdb gcc-doc libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg
  26.   libgomp1-dbg libquadmath-dbg libmudflap0-dbg binutils-gold glibc-doc
  27.   make-doc
  28. The following NEW packages will be installed:
  29.   binutils cpp cpp-4.6 gcc gcc-4.6 gcc-4.6-base libc-dev-bin libc6-dev
  30.   libgomp1 libmpc2 libmpfr4 linux-headers-3.4.79-sun4i linux-libc-dev make
  31.   manpages-dev
  32. The following packages will be upgraded:
  33.   libc-bin libc6
  34. 2 upgraded, 15 newly installed, 0 to remove and 69 not upgraded.
  35. Need to get 31.9 MB of archives.
  36. After this operation, 82.4 MB of additional disk space will be used.
  37. Do you want to continue [Y/n]? y
  38. Get:1 http://packages.cubian.org/ wheezy/main linux-headers-3.4.79-sun4i armhf 3.4.79-4cubian [7,620 kB]
  39. Get:2 http://http.debian.net/debian/ wheezy/main libc-bin armhf 2.13-38+deb7u8 [1,170 kB]
  40. Get:3 http://http.debian.net/debian/ wheezy/main libc6 armhf 2.13-38+deb7u8 [4,021 kB]
  41. Get:4 http://http.debian.net/debian/ wheezy/main manpages-dev all 3.44-1 [1,737 kB]
  42. Get:5 http://http.debian.net/debian/ wheezy/main libgomp1 armhf 4.7.2-5 [25.7 kB]
  43. Get:6 http://http.debian.net/debian/ wheezy/main libmpfr4 armhf 3.1.0-5 [516 kB]
  44. Get:7 http://http.debian.net/debian/ wheezy/main libmpc2 armhf 0.9-4+b1 [31.9 kB]
  45. Get:8 http://http.debian.net/debian/ wheezy/main binutils armhf 2.22-8+deb7u2 [4,481 kB]
  46. Get:9 http://http.debian.net/debian/ wheezy/main gcc-4.6-base armhf 4.6.3-14 [141 kB]
  47. Get:10 http://http.debian.net/debian/ wheezy/main cpp-4.6 armhf 4.6.3-14 [4,065 kB]
  48. Get:11 http://http.debian.net/debian/ wheezy/main cpp armhf 4:4.6.3-8 [16.7 kB]
  49. Get:12 http://http.debian.net/debian/ wheezy/main gcc-4.6 armhf 4.6.3-14 [4,290 kB]
  50. Get:13 http://http.debian.net/debian/ wheezy/main gcc armhf 4:4.6.3-8 [5,012 B]
  51. Get:14 http://http.debian.net/debian/ wheezy/main libc-dev-bin armhf 2.13-38+deb7u8 [219 kB]
  52. Get:15 http://http.debian.net/debian/ wheezy/main linux-libc-dev armhf 3.2.68-1+deb7u3 [814 kB]
  53. Get:16 http://http.debian.net/debian/ wheezy/main libc6-dev armhf 2.13-38+deb7u8 [2,355 kB]
  54. Get:17 http://http.debian.net/debian/ wheezy/main make armhf 3.81-8.2 [382 kB]
  55. Fetched 31.9 MB in 4min 14s (125 kB/s)                                         
  56. Preconfiguring packages ...
  57. (Reading database ... 26652 files and directories currently installed.)
  58. Preparing to replace libc-bin 2.13-38+deb7u4 (using .../libc-bin_2.13-38+deb7u8_armhf.deb) ...
  59. Unpacking replacement libc-bin ...
  60. Processing triggers for man-db ...
  61. Setting up libc-bin (2.13-38+deb7u8) ...
  62. (Reading database ... 26653 files and directories currently installed.)
  63. Preparing to replace libc6:armhf 2.13-38+deb7u4 (using .../libc6_2.13-38+deb7u8_armhf.deb) ...
  64. Unpacking replacement libc6:armhf ...
  65. Setting up libc6:armhf (2.13-38+deb7u8) ...
  66. INIT: version 2.88 reloading
  67. Selecting previously unselected package libgomp1:armhf.
  68. (Reading database ... 26653 files and directories currently installed.)
  69. Unpacking libgomp1:armhf (from .../libgomp1_4.7.2-5_armhf.deb) ...
  70. Selecting previously unselected package libmpfr4:armhf.
  71. Unpacking libmpfr4:armhf (from .../libmpfr4_3.1.0-5_armhf.deb) ...
  72. Selecting previously unselected package libmpc2:armhf.
  73. Unpacking libmpc2:armhf (from .../libmpc2_0.9-4+b1_armhf.deb) ...
  74. Selecting previously unselected package binutils.
  75. Unpacking binutils (from .../binutils_2.22-8+deb7u2_armhf.deb) ...
  76. Selecting previously unselected package gcc-4.6-base:armhf.
  77. Unpacking gcc-4.6-base:armhf (from .../gcc-4.6-base_4.6.3-14_armhf.deb) ...
  78. Selecting previously unselected package cpp-4.6.
  79. Unpacking cpp-4.6 (from .../cpp-4.6_4.6.3-14_armhf.deb) ...
  80. Selecting previously unselected package cpp.
  81. Unpacking cpp (from .../cpp_4%3a4.6.3-8_armhf.deb) ...
  82. Selecting previously unselected package gcc-4.6.
  83. Unpacking gcc-4.6 (from .../gcc-4.6_4.6.3-14_armhf.deb) ...
  84. Selecting previously unselected package gcc.
  85. Unpacking gcc (from .../gcc_4%3a4.6.3-8_armhf.deb) ...
  86. Selecting previously unselected package libc-dev-bin.
  87. Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-38+deb7u8_armhf.deb) ...
  88. Selecting previously unselected package linux-libc-dev:armhf.
  89. Unpacking linux-libc-dev:armhf (from .../linux-libc-dev_3.2.68-1+deb7u3_armhf.deb) ...
  90. ^[[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.
  91. Unpacking libc6-dev:armhf (from .../libc6-dev_2.13-38+deb7u8_armhf.deb) ...
  92. Selecting previously unselected package linux-headers-3.4.79-sun4i.
  93. Unpacking linux-headers-3.4.79-sun4i (from .../linux-headers-3.4.79-sun4i_3.4.79-4cubian_armhf.deb) ...
  94. Selecting previously unselected package make.
  95. Unpacking make (from .../make_3.81-8.2_armhf.deb) ...
  96. Selecting previously unselected package manpages-dev.
  97. Unpacking manpages-dev (from .../manpages-dev_3.44-1_all.deb) ...
  98. Processing triggers for man-db ...
  99. Setting up libgomp1:armhf (4.7.2-5) ...
  100. Setting up libmpfr4:armhf (3.1.0-5) ...
  101. Setting up libmpc2:armhf (0.9-4+b1) ...
  102. Setting up binutils (2.22-8+deb7u2) ...
  103. Setting up gcc-4.6-base:armhf (4.6.3-14) ...
  104. Setting up cpp-4.6 (4.6.3-14) ...
  105. Setting up cpp (4:4.6.3-8) ...
  106. Setting up gcc-4.6 (4.6.3-14) ...
  107. Setting up gcc (4:4.6.3-8) ...
  108. Setting up libc-dev-bin (2.13-38+deb7u8) ...
  109. Setting up linux-libc-dev:armhf (3.2.68-1+deb7u3) ...
  110. Setting up libc6-dev:armhf (2.13-38+deb7u8) ...
  111. Setting up linux-headers-3.4.79-sun4i (3.4.79-4cubian) ...
  112. Examining /etc/kernel/header_postinst.d.
  113. run-parts: executing /etc/kernel/header_postinst.d/000_header_prepare 3.4.79-sun4i /boot/uImage-3.4.79-sun4i
  114. ############################
  115. #    preparing headers     #
  116. #      please wait         #
  117. ############################
  118.   HOSTCC  scripts/basic/fixdep
  119.   HOSTCC  scripts/kconfig/conf.o
  120.   HOSTCC  scripts/kconfig/zconf.tab.o
  121.   HOSTLD  scripts/kconfig/conf
  122. scripts/kconfig/conf --oldconfig Kconfig
  123. drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
  124. #
  125. # configuration written to .config
  126. #
  127. scripts/kconfig/conf --silentoldconfig Kconfig
  128. drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
  129.   CHK     include/linux/version.h
  130.   CHK     include/generated/utsrelease.h
  131.   Generating include/generated/mach-types.h
  132.   HOSTCC  scripts/genksyms/genksyms.o
  133.   HOSTCC  scripts/genksyms/lex.lex.o
  134.   HOSTCC  scripts/genksyms/parse.tab.o
  135.   HOSTLD  scripts/genksyms/genksyms
  136.   CC      scripts/mod/empty.o
  137.   HOSTCC  scripts/mod/mk_elfconfig
  138.   MKELF   scripts/mod/elfconfig.h
  139.   HOSTCC  scripts/mod/file2alias.o
  140.   HOSTCC  scripts/mod/modpost.o
  141.   HOSTCC  scripts/mod/sumversion.o
  142.   HOSTLD  scripts/mod/modpost
  143.   HOSTCC  scripts/kallsyms
  144.   HOSTCC  scripts/pnmtologo
  145.   HOSTCC  scripts/conmakehash
  146.   HOSTCC  scripts/bin2c
  147. ############################
  148. # headers is ready to use  #
  149. ############################
  150. Setting up make (3.81-8.2) ...
  151. Setting up manpages-dev (3.44-1) ...
  152. root@Cubian:/home/cubie# clear











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

  157. root@Cubian:/home/cubie# exit
  158. exit
  159. cubie@Cubian:~$ git clone --depth=1 https://github.com/michalliu/rtl8812au.git
  160. -bash: git: command not found
  161. cubie@Cubian:~$ sudo apt-get install git
  162. [sudo] password for cubie:
  163. Reading package lists... Done
  164. Building dependency tree      
  165. Reading state information... Done
  166. The following extra packages will be installed:
  167.   git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch
  168. Suggested packages:
  169.   gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-arch
  170.   git-cvs git-svn git-email git-gui gitk gitweb ed diffutils-doc
  171. The following NEW packages will be installed:
  172.   git git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch
  173. 0 upgraded, 7 newly installed, 0 to remove and 69 not upgraded.
  174. Need to get 7,170 kB of archives.
  175. After this operation, 11.2 MB of additional disk space will be used.
  176. Do you want to continue [Y/n]?
  177. Get:1 http://http.debian.net/debian/ wheezy/main librtmp0 armhf 2.4+20111222.git4e06e21-1 [55.2 kB]
  178. Get:2 http://http.debian.net/debian/ wheezy/main libssh2-1 armhf 1.4.2-1.1+deb7u1 [121 kB]
  179. Get:3 http://http.debian.net/debian/ wheezy/main libcurl3-gnutls armhf 7.26.0-1+wheezy13 [294 kB]
  180. Get:4 http://http.debian.net/debian/ wheezy/main patch armhf 2.6.1-3 [119 kB]
  181. Get:5 http://http.debian.net/debian/ wheezy/main liberror-perl all 0.17-1 [23.6 kB]
  182. Get:6 http://http.debian.net/debian/ wheezy/main git armhf 1:1.7.10.4-1+wheezy1 [5,484 kB]
  183. Get:7 http://http.debian.net/debian/ wheezy/main git-man all 1:1.7.10.4-1+wheezy1 [1,074 kB]
  184. Fetched 7,170 kB in 50s (143 kB/s)                                             
  185. Selecting previously unselected package librtmp0:armhf.
  186. (Reading database ... 40945 files and directories currently installed.)
  187. Unpacking librtmp0:armhf (from .../librtmp0_2.4+20111222.git4e06e21-1_armhf.deb) ...
  188. Selecting previously unselected package libssh2-1:armhf.
  189. Unpacking libssh2-1:armhf (from .../libssh2-1_1.4.2-1.1+deb7u1_armhf.deb) ...
  190. Selecting previously unselected package libcurl3-gnutls:armhf.
  191. Unpacking libcurl3-gnutls:armhf (from .../libcurl3-gnutls_7.26.0-1+wheezy13_armhf.deb) ...
  192. Selecting previously unselected package patch.
  193. Unpacking patch (from .../patch_2.6.1-3_armhf.deb) ...
  194. Selecting previously unselected package liberror-perl.
  195. Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
  196. Selecting previously unselected package git-man.
  197. Unpacking git-man (from .../git-man_1%3a1.7.10.4-1+wheezy1_all.deb) ...
  198. Selecting previously unselected package git.
  199. Unpacking git (from .../git_1%3a1.7.10.4-1+wheezy1_armhf.deb) ...
  200. Processing triggers for man-db ...
  201. Setting up librtmp0:armhf (2.4+20111222.git4e06e21-1) ...
  202. Setting up libssh2-1:armhf (1.4.2-1.1+deb7u1) ...
  203. Setting up libcurl3-gnutls:armhf (7.26.0-1+wheezy13) ...
  204. Setting up patch (2.6.1-3) ...
  205. Setting up liberror-perl (0.17-1) ...
  206. Setting up git-man (1:1.7.10.4-1+wheezy1) ...
  207. Setting up git (1:1.7.10.4-1+wheezy1) ...
  208. cubie@Cubian:~$ clear











  209. cubie@Cubian:~$ ls
  210. rc.local.bak  scan.sh
  211. cubie@Cubian:~$ git clone --depth=1 https://github.com/michalliu/rtl8812au.git
  212. Cloning into 'rtl8812au'...
  213. remote: Counting objects: 330, done.
  214. remote: Compressing objects: 100% (233/233), done.
  215. remote: Total 330 (delta 93), reused 320 (delta 93), pack-reused 0
  216. Receiving objects: 100% (330/330), 1.45 MiB | 309 KiB/s, done.
  217. Resolving deltas: 100% (93/93), done.
  218. cubie@Cubian:~$ ls
  219. rc.local.bak  rtl8812au  scan.sh
  220. cubie@Cubian:~$ cd rtl8812au/
  221. cubie@Cubian:~/rtl8812au$ ls
  222. clean  hal          include     Kconfig   os_dep     runwpa
  223. core   ifcfg-wlan0  install.sh  Makefile  README.md  wlan0dhcp
  224. cubie@Cubian:~/rtl8812au$ make
  225. make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.4.79-sun4i/build M=/home/cubie/rtl8812au  modules
  226. make[1]: Entering directory `/usr/src/linux-headers-3.4.79-sun4i'
  227. Makefile:567: /usr/src/linux-headers-3.4.79-sun4i/arch/armv7l/Makefile: No such file or directory
  228. make[1]: *** No rule to make target `/usr/src/linux-headers-3.4.79-sun4i/arch/armv7l/Makefile'.  Stop.
  229. make[1]: Leaving directory `/usr/src/linux-headers-3.4.79-sun4i'
  230. make: *** [modules] Error 2
  231. cubie@Cubian:~/rtl8812au$ clear











  232. cubie@Cubian:~/rtl8812au$ ls
  233. clean  hal          include     Kconfig   os_dep     runwpa
  234. core   ifcfg-wlan0  install.sh  Makefile  README.md  wlan0dhcp
  235. cubie@Cubian:~/rtl8812au$ vim Makefile






























  236. EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
  237. EXTRA_CFLAGS += -O1
  238. #EXTRA_CFLAGS += -O3
  239. #EXTRA_CFLAGS += -Wall
  240. #EXTRA_CFLAGS += -Wextra
  241. #EXTRA_CFLAGS += -Werror
  242. #EXTRA_CFLAGS += -pedantic
  243. #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmisss
  244. ing-prototypes

  245. EXTRA_CFLAGS += -Wno-unused-variable
  246. EXTRA_CFLAGS += -Wno-unused-value
  247. EXTRA_CFLAGS += -Wno-unused-label
  248. EXTRA_CFLAGS += -Wno-unused-parameter
  249. EXTRA_CFLAGS += -Wno-unused-function
  250. EXTRA_CFLAGS += -Wno-unused

  251. EXTRA_CFLAGS += -Wno-uninitialized

  252. EXTRA_CFLAGS += -I$(src)/include

  253. CONFIG_AUTOCFG_CP = n

  254. /ARM










  255. CONFIG_RTL8192CU_REDEFINE_1X1 = n
  256. CONFIG_INTEL_WIDI = n
  257. CONFIG_WAPI_SUPPORT = n
  258. CONFIG_EFUSE_CONFIG_FILE = n
  259. CONFIG_EXT_CLK = n
  260. CONFIG_FTP_PROTECT = n
  261. CONFIG_WOWLAN = n

  262. CONFIG_PLATFORM_I386_PC = n
  263. CONFIG_PLATFORM_ANDROID_X86 = n
  264. CONFIG_PLATFORM_JB_X86 = n
  265. CONFIG_PLATFORM_ARM_S3C2K4 = n
  266. CONFIG_PLATFORM_ARM_PXA2XX = n
  267. CONFIG_PLATFORM_ARM_S3C6K4 = n
  268. CONFIG_PLATFORM_ARM_RPI = y
  269. CONFIG_PLATFORM_MIPS_RMI = n
  270. CONFIG_PLATFORM_RTD2880B = n
  271. CONFIG_PLATFORM_MIPS_AR9132 = n
  272. CONFIG_PLATFORM_RTK_DMP = n
  273. CONFIG_PLATFORM_MIPS_PLM = n
  274. CONFIG_PLATFORM_MSTAR389 = n
  275. CONFIG_PLATFORM_MT53XX = n
  276. CONFIG_PLATFORM_ARM_MX51_241H = n
  277. CONFIG_PLATFORM_FS_MX61 = n
  278. CONFIG_PLATFORM_ACTIONS_ATJ227X = n
  279. CONFIG_PLATFORM_TEGRA3_CARDHU = n
  280. CONFIG_PLATFORM_TEGRA4_DALMORE = n
  281. CONFIG_PLATFORM_ARM_TCC8900 = n
  282. "Makefile" 1085L, 31130C written
  283. cubie@Cubian:~/rtl8812au$ make
  284. make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.4.79-sun4i/build M=/home/cubie/rtl8812au  modules
  285. make[1]: Entering directory `/usr/src/linux-headers-3.4.79-sun4i'
  286.   CC [M]  /home/cubie/rtl8812au/core/rtw_cmd.o
  287.   CC [M]  /home/cubie/rtl8812au/core/rtw_security.o
  288.   CC [M]  /home/cubie/rtl8812au/core/rtw_debug.o
  289.   CC [M]  /home/cubie/rtl8812au/core/rtw_io.o
  290.   CC [M]  /home/cubie/rtl8812au/core/rtw_ioctl_query.o
  291.   CC [M]  /home/cubie/rtl8812au/core/rtw_ioctl_set.o
  292.   CC [M]  /home/cubie/rtl8812au/core/rtw_ieee80211.o
  293.   CC [M]  /home/cubie/rtl8812au/core/rtw_mlme.o
  294.   CC [M]  /home/cubie/rtl8812au/core/rtw_mlme_ext.o
  295.   CC [M]  /home/cubie/rtl8812au/core/rtw_wlan_util.o
  296.   CC [M]  /home/cubie/rtl8812au/core/rtw_vht.o
  297.   CC [M]  /home/cubie/rtl8812au/core/rtw_pwrctrl.o
  298.   CC [M]  /home/cubie/rtl8812au/core/rtw_rf.o
  299.   CC [M]  /home/cubie/rtl8812au/core/rtw_recv.o
  300.   CC [M]  /home/cubie/rtl8812au/core/rtw_sta_mgt.o
  301.   CC [M]  /home/cubie/rtl8812au/core/rtw_ap.o
  302.   CC [M]  /home/cubie/rtl8812au/core/rtw_xmit.o
  303.   CC [M]  /home/cubie/rtl8812au/core/rtw_p2p.o
  304.   CC [M]  /home/cubie/rtl8812au/core/rtw_tdls.o
  305.   CC [M]  /home/cubie/rtl8812au/core/rtw_br_ext.o
  306.   CC [M]  /home/cubie/rtl8812au/core/rtw_iol.o
  307.   CC [M]  /home/cubie/rtl8812au/core/rtw_sreset.o
  308.   CC [M]  /home/cubie/rtl8812au/core/efuse/rtw_efuse.o
  309.   CC [M]  /home/cubie/rtl8812au/os_dep/osdep_service.o
  310.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/os_intfs.o
  311.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/usb_intf.o
  312.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/usb_ops_linux.o
  313.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/ioctl_linux.o
  314.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/xmit_linux.o
  315.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/mlme_linux.o
  316.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/recv_linux.o
  317.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/ioctl_cfg80211.o
  318.   CC [M]  /home/cubie/rtl8812au/os_dep/linux/rtw_android.o
  319.   CC [M]  /home/cubie/rtl8812au/hal/hal_intf.o
  320.   CC [M]  /home/cubie/rtl8812au/hal/hal_com.o
  321.   CC [M]  /home/cubie/rtl8812au/hal/hal_com_phycfg.o
  322.   CC [M]  /home/cubie/rtl8812au/hal/hal_phy.o
  323.   CC [M]  /home/cubie/rtl8812au/hal/led/hal_usb_led.o
  324.   CC [M]  /home/cubie/rtl8812au/hal/HalPwrSeqCmd.o
  325.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/Hal8812PwrSeq.o
  326.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/Hal8821APwrSeq.o
  327.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_xmit.o
  328.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_sreset.o
  329.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_hal_init.o
  330.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_phycfg.o
  331.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_rf6052.o
  332.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_dm.o
  333.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_rxdesc.o
  334.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_cmd.o
  335.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/usb/usb_halinit.o
  336.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_led.o
  337.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_xmit.o
  338.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/usb/rtl8812au_recv.o
  339.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/usb/usb_ops_linux.o
  340.   CC [M]  /home/cubie/rtl8812au/hal/rtl8812a/rtl8812a_mp.o
  341.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/odm_debug.o
  342.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/odm_interface.o
  343.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/odm_HWConfig.o
  344.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/odm.o
  345.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/HalPhyRf.o
  346.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_FW.o
  347.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_MAC.o
  348.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_BB.o
  349.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_RF.o
  350.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_FW.o
  351.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_MAC.o
  352.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_BB.o
  353.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalHWImg8812A_TestChip_RF.o
  354.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/HalPhyRf_8812A.o
  355.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8812a/odm_RegConfig8812A.o
  356.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_FW.o
  357.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_MAC.o
  358.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_BB.o
  359.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_RF.o
  360.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_MAC.o
  361.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_BB.o
  362.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalHWImg8821A_TestChip_RF.o
  363.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/HalPhyRf_8821A.o
  364.   CC [M]  /home/cubie/rtl8812au/hal/OUTSRC/rtl8821a/odm_RegConfig8821A.o
  365.   CC [M]  /home/cubie/rtl8812au/core/rtw_mp.o
  366.   CC [M]  /home/cubie/rtl8812au/core/rtw_mp_ioctl.o
  367.   LD [M]  /home/cubie/rtl8812au/8812au.o
  368.   Building modules, stage 2.
  369.   MODPOST 1 modules
  370.   CC      /home/cubie/rtl8812au/8812au.mod.o
  371.   LD [M]  /home/cubie/rtl8812au/8812au.ko
  372. make[1]: Leaving directory `/usr/src/linux-headers-3.4.79-sun4i'
  373. cubie@Cubian:~/rtl8812au$ ls
  374. 8812au.ko     8812au.o  hal          install.sh  modules.order   README.md
  375. 8812au.mod.c  clean     ifcfg-wlan0  Kconfig     Module.symvers  runwpa
  376. 8812au.mod.o  core      include      Makefile    os_dep          wlan0dhcp
  377. cubie@Cubian:~/rtl8812au$ sudo -s
  378. root@Cubian:/home/cubie/rtl8812au# isnmod ./8812au.ko
  379. bash: isnmod: command not found
  380. root@Cubian:/home/cubie/rtl8812au# insmod 8812au.ko
  381. <6>usbcore: registered new interface driver rtl8812au
  382. root@Cubian:/home/cubie/rtl8812au# lsmod
  383. Module                  Size  Used by
  384. 8812au                921495  0
  385. 8021q                  17936  0
  386. garp                    6120  1 8021q
  387. stp                     1992  1 garp
  388. llc                     5276  2 stp,garp
  389. ipt_MASQUERADE          2242  1
  390. iptable_nat             4838  1
  391. nf_nat                 18746  2 ipt_MASQUERADE,iptable_nat
  392. nf_conntrack_ipv4      14320  3 nf_nat,iptable_nat
  393. nf_defrag_ipv4          1358  1 nf_conntrack_ipv4
  394. nf_conntrack           84756  4 ipt_MASQUERADE,nf_nat,iptable_nat,nf_conntrack_ipv4
  395. iptable_filter          1533  1
  396. ip_tables              12581  2 iptable_filter,iptable_nat
  397. x_tables               16829  4 ip_tables,ipt_MASQUERADE,iptable_filter,iptable_nat
  398. sunxi_cedar_mod        10544  0
  399. mali                  113556  0
  400. ump                    56983  1 mali
  401. gpio_sunxi              9412  0
  402. rt73usb                22257  0
  403. rt2x00usb              11279  1 rt73usb
  404. rt2x00lib              42406  2 rt73usb,rt2x00usb
  405. 8188eu                525404  0
  406. mac80211              247465  2 rt2x00lib,rt2x00usb
复制代码
回复

使用道具 举报

3

主题

0

好友

449

积分

中级会员

Rank: 3Rank: 3

贡献
90
金钱
171
威望
90
买家信用
卖家信用
积分
449
发表于 2015-11-5 22:13:38 |显示全部楼层
本帖最后由 xcc1997 于 2015-11-5 22:15 编辑

为什么我想编译个hid-sony.ko就是不成功,载入mod时总是提示Invalid modue format?
或者求大神帮忙编译个hid-sony驱动,我想连接ps3手柄用的,百度google找了好久也找不到解决方案
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|Archiver|手机版|邮件群发|cubie.cc---深刻的嵌入式技术和应用讨论中文社区 ( 粤ICP备13051116号-1  

GMT+8, 2019-10-16 11:14 , Processed in 0.017803 second(s), 8 queries , Apc On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc. | Style by Coxxs

回顶部