1、下载内核(官方5.2内核)
2、menuconfig配置的decice drivers ->network device support -> wireless lan下的
IEEE 802.111 .........(..../CCMP) 这个选上
3、下载rtl8812au的驱动,把makefile里的
CONFIG_PLATFORM_I386_PC = n #(关闭pc编译)
CONFIG_PLATFORM_ARM_RPI = y # (编译平台选择arm)
ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
ARCH ?= arm #(编译环境)
CROSS_COMPILE ?= arm-linux-gnueabihf- #(编译链)
KVER ?= #(licheepi5.2内核的名字)
KSRC := #(编译内核的位置)
MODDESTDIR :=#(网卡编译位置)
4、然后编译出88xxau.ko
5、编译内核
6、把设备树和zimage 放进去卡里
离线
当我insmod 完驱动
一旦接线就
17.094347] ------------[ cut here ]------------
[ 17.104633] WARNING: CPU: 0 PID: 265 at /home/ookk303/rtl8812au-v5.2.20/os_dep/linux/os_intfs.c:2982 rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb]
[ 17.127575] Modules linked in: 88XXau_wfb(O+)
[ 17.136712] CPU: 0 PID: 265 Comm: insmod Tainted: G W O 5.2.0-licheepi-zero+ #3
[ 17.149880] Hardware name: Allwinner sun8i Family
[ 17.159203] [<c010eb1c>] (unwind_backtrace) from [<c010b61c>] (show_stack+0x10/0x14)
[ 17.171577] [<c010b61c>] (show_stack) from [<c072c200>] (dump_stack+0x84/0x98)
[ 17.183353] [<c072c200>] (dump_stack) from [<c011d830>] (__warn+0xfc/0x114)
[ 17.194764] [<c011d830>] (__warn) from [<c011d960>] (warn_slowpath_null+0x40/0x48)
[ 17.207586] [<c011d960>] (warn_slowpath_null) from [<bf0a29a0>] (rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb])
[ 17.228057] [<bf0a29a0>] (rtw_os_ndevs_register [88XXau_wfb]) from [<bf0a2a38>] (rtw_os_ndevs_init+0x1c/0x44 [88XXau_wfb])
[ 17.249689] [<bf0a2a38>] (rtw_os_ndevs_init [88XXau_wfb]) from [<bf0a3af8>] (rtw_drv_init+0x2dc/0x394 [88XXau_wfb])
[ 17.270231] [<bf0a3af8>] (rtw_drv_init [88XXau_wfb]) from [<c049c284>] (usb_probe_interface+0xf8/0x238)
[ 17.289050] [<c049c284>] (usb_probe_interface) from [<c043388c>] (really_probe+0x1dc/0x2d8)
[ 17.302165] [<c043388c>] (really_probe) from [<c0433b00>] (driver_probe_device+0x60/0x168)
[ 17.315134] [<c0433b00>] (driver_probe_device) from [<c0433da8>] (device_driver_attach+0x58/0x60)
[ 17.328689] [<c0433da8>] (device_driver_attach) from [<c0433e30>] (__driver_attach+0x80/0xbc)
[ 17.341903] [<c0433e30>] (__driver_attach) from [<c0431c30>] (bus_for_each_dev+0x68/0xb4)
[ 17.354771] [<c0431c30>] (bus_for_each_dev) from [<c0432c28>] (bus_add_driver+0x140/0x1e8)
[ 17.367727] [<c0432c28>] (bus_add_driver) from [<c043464c>] (driver_register+0x78/0x110)
[ 17.380478] [<c043464c>] (driver_register) from [<c049aed0>] (usb_register_driver+0x70/0x134)
[ 17.394420] [<c049aed0>] (usb_register_driver) from [<bf204040>] (rtw_drv_entry+0x40/0x1000 [88XXau_wfb])
[ 17.414110] [<bf204040>] (rtw_drv_entry [88XXau_wfb]) from [<c01026fc>] (do_one_initcall+0x54/0x1b8)
[ 17.433008] [<c01026fc>] (do_one_initcall) from [<c019d2c4>] (do_init_module+0x5c/0x20c)
[ 17.446096] [<c019d2c4>] (do_init_module) from [<c019c310>] (load_module+0x1c80/0x22b8)
[ 17.459028] [<c019c310>] (load_module) from [<c019cb94>] (sys_finit_module+0xc8/0xd8)
[ 17.471819] [<c019cb94>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 17.484957] Exception stack(0xc1c35fa8 to 0xc1c35ff0)
[ 17.494922] 5fa0: b687fd00 00446cdc 00000003 0044ae80 00000000 00000002
[ 17.508082] 5fc0: b687fd00 00446cdc b6f06f10 0000017b 00000000 00446cdc 0045d000 00000000
[ 17.521202] 5fe0: be89ec30 be89ec20 004416c3 b6e81a42
[ 17.531326] ---[ end trace 44385726c32a1910 ]---
[ 17.708975] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[ 17.919663] usbcore: registered new interface driver rtl88xxau_wfb
有dalao知道怎么解决吗
离线
给后来人提示,换成4.14内核可以正常加载驱动,原因我找不出来
离线