基于SDIO接口的WIFI,在应用上,功耗低于USB接口,且无须USB Device支持,满足某些应用场景
1 硬件连接
2 Vivado工程配置
3 驱动编译
3.1 KERNRL CONFIG (build ENV) 修改
export KERNELPATH=<path of kernel header>export TOOLCHAIN=<path of toolchain>export KERNELARCH=armexport CROSS_COMPILE=${TOOLCHAIN}/arm-none-linux-gnueabi-export TOOLPREFIX=${CROSS_COMPILE}# For backportsexport KLIB=${KERNELPATH}export KLIB_BUILD=${KERNELPATH}
3.2 Build And Compile
make BOARD_TYPE=cus12-9 IF_TYPE=SDIO
3.3 .KO
in ~/rootfs-cus12-9.build/lib/modules$
3.4 FW install
copy "~/meta_build/load_meta/wlan_firmware" to "/lib/firmware"cd ~/meta_build/load_metacp -frv wlan_firmware /lib/firmare
copy configuraiton files to "/lib/firmware/wlan" cd ~/meta_build/load_metacp -frv AIO/rootfs-cus12-9.build/lib/firmware/wlan /lib/firmare/wlan
3.5 Insmod KO
sh wlan-load.sh orinsmod $MODULE_PATH/compat.koinsmod $MODULE_PATH/cfg80211.koinsmod $MODULE_PATH/wlan.ko