基于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=arm
export CROSS_COMPILE=${TOOLCHAIN}/arm-none-linux-gnueabi-
export TOOLPREFIX=${CROSS_COMPILE}
# For backports
export 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_meta
cp -frv wlan_firmware /lib/firmare
copy configuraiton files to "/lib/firmware/wlan"
cd ~/meta_build/load_meta
cp -frv AIO/rootfs-cus12-9.build/lib/firmware/wlan /lib/firmare/wlan
3.5 Insmod KO
sh wlan-load.sh or
insmod $MODULE_PATH/compat.ko
insmod $MODULE_PATH/cfg80211.ko
insmod $MODULE_PATH/wlan.ko