Dear Sir or Madam,I want to compile the RTL8812au driver through the cross-compilation toolchain and run it on the ZYBO board. I tried both methods and all failed:
First:
1. Compile the kernel first (I copied the kernel source from petalinux_prj/build/tmp/work-shared/plnx_arm/kernel-source , and then used petalinux cross compiler tool:"arm-linux-gnueabihf-");
2. In the driver path, modify the makefile, modify the corresponding kernel source path, cross compiler path, kernel version; make
3. Copy the generated 8812au.ko file to the SD card and insmold it. The following error occurs (I tried different versions of the driver source, and appear the same type errors)
root@Zybo:/usr# insmod 8812au.ko
8812au: loading out-of-tree module taints kernel.
8812au: disagrees about version of symbol skb_pull
8812au: Unknown symbol skb_pull (err -22)
8812au: disagrees about version of symbol netif_napi_del
8812au: Unknown symbol netif_napi_del (err -22)
8812au: no symbol version for __cfg80211_alloc_event_skb
8812au: disagrees about version of symbol __netdev_alloc_skb
8812au: Unknown symbol __netdev_alloc_skb (err -22)
8812au: disagrees about version of symbol netif_tx_stop_all_queues
8812au: Unknown symbol netif_tx_stop_all_queues (err -22)
8812au: disagrees about version of symbol __pskb_pull_tail
8812au: Unknown symbol __pskb_pull_tail (err -22)
8812au: disagrees about version of symbol netif_wake_subqueue
8812au: Unknown symbol netif_wake_subqueue (err -22)
8812au: disagrees about version of symbol skb_clone
8812au: Unknown symbol skb_clone (err -22)
8812au: disagrees about version of symbol skb_put
8812au: Unknown symbol skb_put (err -22)
8812au: disagrees about version of symbol init_net
8812au: Unknown symbol init_net (err -22)
8812au: disagrees about version of symbol netif_device_attach
8812au: Unknown symbol netif_device_attach (err -22)
8812au: disagrees about version of symbol netif_tx_wake_queue
8812au: Unknown symbol netif_tx_wake_queue (err -22)
8812au: disagrees about version of symbol skb_dequeue
8812au: Unknown symbol skb_dequeue (err -22)
8812au: disagrees about version of symbol netif_rx
8812au: Unknown symbol netif_rx (err -22)
8812au: disagrees about version of symbol skb_copy_bits
8812au: Unknown symbol skb_copy_bits (err -22)
8812au: disagrees about version of symbol skb_copy
8812au: Unknown symbol skb_copy (err -22)
8812au: disagrees about version of symbol register_netdevice
8812au: Unknown symbol register_netdevice (err -22)
8812au: disagrees about version of symbol wake_up_process
8812au: Unknown symbol wake_up_process (err -22)
8812au: disagrees about version of symbol netif_carrier_off
8812au: Unknown symbol netif_carrier_off (err -22)
8812au: disagrees about version of symbol napi_complete_done
8812au: Unknown symbol napi_complete_done (err -22)
8812au: disagrees about version of symbol register_netdev
8812au: Unknown symbol register_netdev (err -22)
8812au: disagrees about version of symbol netif_napi_add
8812au: Unknown symbol netif_napi_add (err -22)
8812au: disagrees about version of symbol skb_trim
8812au: Unknown symbol skb_trim (err -22)
8812au: disagrees about version of symbol skb_push
8812au: Unknown symbol skb_push (err -22)
8812au: disagrees about version of symbol find_vpid
8812au: Unknown symbol find_vpid (err -22)
8812au: disagrees about version of symbol __dev_kfree_skb_any
8812au: Unknown symbol __dev_kfree_skb_any (err -22)
8812au: disagrees about version of symbol netif_carrier_on
8812au: Unknown symbol netif_carrier_on (err -22)
8812au: disagrees about version of symbol dev_alloc_name
8812au: Unknown symbol dev_alloc_name (err -22)
8812au: disagrees about version of symbol unregister_netdev
8812au: Unknown symbol unregister_netdev (err -22)
8812au: disagrees about version of symbol alloc_etherdev_mqs
8812au: Unknown symbol alloc_etherdev_mqs (err -22)
8812au: disagrees about version of symbol netif_receive_skb
8812au: Unknown symbol netif_receive_skb (err -22)
8812au: disagrees about version of symbol __pskb_copy_fclone
8812au: Unknown symbol __pskb_copy_fclone (err -22)
8812au: disagrees about version of symbol unregister_netdevice_queue
8812au: Unknown symbol unregister_netdevice_queue (err -22)
8812au: disagrees about version of symbol free_netdev
8812au: Unknown symbol free_netdev (err -22)
8812au: disagrees about version of symbol napi_disable
8812au: Unknown symbol napi_disable (err -22)
8812au: disagrees about version of symbol dev_get_by_name
8812au: Unknown symbol dev_get_by_name (err -22)
8812au: disagrees about version of symbol skb_queue_tail
8812au: Unknown symbol skb_queue_tail (err -22)
8812au: disagrees about version of symbol napi_gro_receive
8812au: Unknown symbol napi_gro_receive (err -22)
8812au: disagrees about version of symbol eth_type_trans
8812au: Unknown symbol eth_type_trans (err -22)
8812au: disagrees about version of symbol __napi_schedule
8812au: Unknown symbol __napi_schedule (err -22)
insmod: can't insert '8812au.ko': Invalid argument
2) Copy 8812au.ko to the directory of this module (and then I don't know how to do it... I tried putting .ko in files, modifying the 8812au.bb file plus the .ko path, modifying the makefile, removing all: , clean: the latter operation, but petalinux-build -c 8812au error, the error is in the "moudule_install“)
Question
fangzr
Board: ZYBO
Environment: Vivado2017.4, Petalinux2017.4, ZYBO BSP package (Digilent Github )
description:
Dear Sir or Madam,I want to compile the RTL8812au driver through the cross-compilation toolchain and run it on the ZYBO board. I tried both methods and all failed:
First:
1. Compile the kernel first (I copied the kernel source from petalinux_prj/build/tmp/work-shared/plnx_arm/kernel-source , and then used petalinux cross compiler tool:"arm-linux-gnueabihf-");
2. In the driver path, modify the makefile, modify the corresponding kernel source path, cross compiler path, kernel version; make
3. Copy the generated 8812au.ko file to the SD card and insmold it. The following error occurs (I tried different versions of the driver source, and appear the same type errors)
root@Zybo:/usr# insmod 8812au.ko 8812au: loading out-of-tree module taints kernel. 8812au: disagrees about version of symbol skb_pull 8812au: Unknown symbol skb_pull (err -22) 8812au: disagrees about version of symbol netif_napi_del 8812au: Unknown symbol netif_napi_del (err -22) 8812au: no symbol version for __cfg80211_alloc_event_skb 8812au: disagrees about version of symbol __netdev_alloc_skb 8812au: Unknown symbol __netdev_alloc_skb (err -22) 8812au: disagrees about version of symbol netif_tx_stop_all_queues 8812au: Unknown symbol netif_tx_stop_all_queues (err -22) 8812au: disagrees about version of symbol __pskb_pull_tail 8812au: Unknown symbol __pskb_pull_tail (err -22) 8812au: disagrees about version of symbol netif_wake_subqueue 8812au: Unknown symbol netif_wake_subqueue (err -22) 8812au: disagrees about version of symbol skb_clone 8812au: Unknown symbol skb_clone (err -22) 8812au: disagrees about version of symbol skb_put 8812au: Unknown symbol skb_put (err -22) 8812au: disagrees about version of symbol init_net 8812au: Unknown symbol init_net (err -22) 8812au: disagrees about version of symbol netif_device_attach 8812au: Unknown symbol netif_device_attach (err -22) 8812au: disagrees about version of symbol netif_tx_wake_queue 8812au: Unknown symbol netif_tx_wake_queue (err -22) 8812au: disagrees about version of symbol skb_dequeue 8812au: Unknown symbol skb_dequeue (err -22) 8812au: disagrees about version of symbol netif_rx 8812au: Unknown symbol netif_rx (err -22) 8812au: disagrees about version of symbol skb_copy_bits 8812au: Unknown symbol skb_copy_bits (err -22) 8812au: disagrees about version of symbol skb_copy 8812au: Unknown symbol skb_copy (err -22) 8812au: disagrees about version of symbol register_netdevice 8812au: Unknown symbol register_netdevice (err -22) 8812au: disagrees about version of symbol wake_up_process 8812au: Unknown symbol wake_up_process (err -22) 8812au: disagrees about version of symbol netif_carrier_off 8812au: Unknown symbol netif_carrier_off (err -22) 8812au: disagrees about version of symbol napi_complete_done 8812au: Unknown symbol napi_complete_done (err -22) 8812au: disagrees about version of symbol register_netdev 8812au: Unknown symbol register_netdev (err -22) 8812au: disagrees about version of symbol netif_napi_add 8812au: Unknown symbol netif_napi_add (err -22) 8812au: disagrees about version of symbol skb_trim 8812au: Unknown symbol skb_trim (err -22) 8812au: disagrees about version of symbol skb_push 8812au: Unknown symbol skb_push (err -22) 8812au: disagrees about version of symbol find_vpid 8812au: Unknown symbol find_vpid (err -22) 8812au: disagrees about version of symbol __dev_kfree_skb_any 8812au: Unknown symbol __dev_kfree_skb_any (err -22) 8812au: disagrees about version of symbol netif_carrier_on 8812au: Unknown symbol netif_carrier_on (err -22) 8812au: disagrees about version of symbol dev_alloc_name 8812au: Unknown symbol dev_alloc_name (err -22) 8812au: disagrees about version of symbol unregister_netdev 8812au: Unknown symbol unregister_netdev (err -22) 8812au: disagrees about version of symbol alloc_etherdev_mqs 8812au: Unknown symbol alloc_etherdev_mqs (err -22) 8812au: disagrees about version of symbol netif_receive_skb 8812au: Unknown symbol netif_receive_skb (err -22) 8812au: disagrees about version of symbol __pskb_copy_fclone 8812au: Unknown symbol __pskb_copy_fclone (err -22) 8812au: disagrees about version of symbol unregister_netdevice_queue 8812au: Unknown symbol unregister_netdevice_queue (err -22) 8812au: disagrees about version of symbol free_netdev 8812au: Unknown symbol free_netdev (err -22) 8812au: disagrees about version of symbol napi_disable 8812au: Unknown symbol napi_disable (err -22) 8812au: disagrees about version of symbol dev_get_by_name 8812au: Unknown symbol dev_get_by_name (err -22) 8812au: disagrees about version of symbol skb_queue_tail 8812au: Unknown symbol skb_queue_tail (err -22) 8812au: disagrees about version of symbol napi_gro_receive 8812au: Unknown symbol napi_gro_receive (err -22) 8812au: disagrees about version of symbol eth_type_trans 8812au: Unknown symbol eth_type_trans (err -22) 8812au: disagrees about version of symbol __napi_schedule 8812au: Unknown symbol __napi_schedule (err -22) insmod: can't insert '8812au.ko': Invalid argument
Other Way:
1) Create a module project 8812au:
petalinux-create -t modules --name 8812au --enable
2) Copy 8812au.ko to the directory of this module (and then I don't know how to do it... I tried putting .ko in files, modifying the 8812au.bb file plus the .ko path, modifying the makefile, removing all: , clean: the latter operation, but petalinux-build -c 8812au error, the error is in the "moudule_install“)
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.