将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。

相关推荐
tan180°1 小时前
MySQL表的操作(3)
linux·数据库·c++·vscode·后端·mysql
典学长编程1 小时前
Linux操作系统从入门到精通!第二天(命令行)
linux·运维·chrome
wuk9982 小时前
基于MATLAB编制的锂离子电池伪二维模型
linux·windows·github
独行soc4 小时前
#渗透测试#批量漏洞挖掘#HSC Mailinspector 任意文件读取漏洞(CVE-2024-34470)
linux·科技·安全·网络安全·面试·渗透测试
BD_Marathon4 小时前
Ubuntu下Tomcat的配置
linux·ubuntu·tomcat
饥饿的半导体5 小时前
Linux快速入门
linux·运维
BD_Marathon5 小时前
Ubuntu:Tomcat里面的catalina.sh
linux·ubuntu·tomcat
BD_Marathon5 小时前
设置LInux环境变量的方法和区别_Ubuntu/Centos
linux·ubuntu·centos
Me4神秘5 小时前
Linux国产与国外进度对垒
linux·服务器·安全
zhaowangji5 小时前
ubuntu 20.04 安装中文输入法 (sougou pin yin)
linux·ubuntu