将WiFi驱动交叉编译成ko文件
原厂提供驱动,默认是x86平台编译
修改Makefile文件
在顶层Makefile中开头增加以下三个变量
KERNEL_OBJ_PATH 是内核文件路径
CROSS_COMPILE 交叉编译工具链
ARCH 架构
KERNEL_OBJ_PATH := /home/sdk/kernel
CROSS_COMPILE :=/opt/arm-linux-gnueabihf-
ARCH := arm
编译
make clean
make
遇到问题WARNING: "ieee80211_beacon_get_tim" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_beacon_get_tim" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_unregister_hw" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_scan_completed" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_stop_queues" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_tx_status" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_free_txskb" [/home/ssv6x5x/ssv6x5x.ko] undefined!
WARNING: "ieee80211_wake_queues"