将wq9001驱动集成到rv1106 SDK

下载代码

上次修改好的代码已经上传到仓库,通过git clone下载到SDK的luckfox-pico/sysdrv/drv_ko/wifi文件夹中

修改上级Makefile文件

打开luckfox-pico/sysdrv/drv_ko/wifi中的Makefile

添加

bash 复制代码
ifneq ($(findstring $(RK_ENABLE_WIFI_CHIP),"WQ9001"),)
	@make -C wq9001-wifi/
endif

修改wq9001 的Makefile

bash 复制代码
# 这里要注意不能用$(shell pwd)及$(PWD)
# 防止在进入kernel后包含头文件时路径变化
DRV_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
DRV_PATH := $(dir $(DRV_PATH))
export DRV_PATH

ARCH ?= arm
CROSS_COMPILE ?= arm-rockchip830-linux-uclibcgnueabihf-
KSRC ?= ../../../source/kernel
......

all:
ifeq ($(KSRC),)
	$(error KSRC must be defined. Please specify the kernel source directory)
endif
	@echo $(DRV_PATH)
	$(MAKE) V=1 -C $(KSRC) M=$(DRV_PATH) \
		ARCH=$(ARCH) \
		CROSS_COMPILE=$(CROSS_COMPILE) \
		modules
	#添加strip进行瘦身
	$(CROSS_COMPILE)strip --strip-debug $(shell pwd)/*.ko
	#复制驱动到out目录
	cp $(shell pwd)/wq9001.ko $(M_OUT_DIR)

clean:
	rm -f *.o *.ko *.mod.c *.mod.o .*.cmd modules.order Module.symvers
	rm -rf .tmp_versions
	find . -name '*.o' -delete
	find . -name '.*.o.d' -delete
	find . -name '.*.o.cmd' -delete

使用

从新编译后,烧录镜像到TF卡,能正常找到wifi。

相关推荐
旖旎夜光1 天前
Linux(13)(上)
linux·网络
忧郁的橙子.1 天前
26期_01_Pyhton linux基本命令
linux·运维·服务器
郝学胜-神的一滴1 天前
深入解析Linux网络编程之bind函数:从基础到实践的艺术
linux·服务器·网络·c++·websocket·程序人生
西京刀客1 天前
macOS 打出来的 tar 包,Linux 常见告警(tar 包里带了 macOS 的扩展属性(xattr))
linux·运维·macos
mango_mangojuice1 天前
Linux学习笔记(角色,权限管理)1.21
linux·笔记·学习
遇见火星1 天前
Linux综合性能监控工具dstat命令详解
linux·服务器·php·dstat
咕噜咕噜啦啦1 天前
ROS入门
linux·vscode·python
Yana.nice1 天前
证书格式的适用场景与核心对比
java·linux
爱装代码的小瓶子1 天前
【C++与Linux基础】文件篇(8)磁盘文件系统:从块、分区到inode与ext2
linux·开发语言·c++
PPPPPaPeR.1 天前
程序地址空间
linux·算法