NXP

sdiowifi_rtl8189移植

2019-07-12 11:59发布

kerne:NXP官方4.9.123 硬件:天嵌IMX6Q_coreC 1.到官网下载驱动源码解压 2.修改源码目录下的Makefile ###################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
CONFIG_PLATFORM_ARM_PXA2XX = n
CONFIG_PLATFORM_ARM_S3C6K4 = n
CONFIG_PLATFORM_MIPS_RMI = n
CONFIG_PLATFORM_RTD2880B = n
CONFIG_PLATFORM_MIPS_AR9132 = n
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_MT53XX = n
CONFIG_PLATFORM_ARM_MX51_241H = n
CONFIG_PLATFORM_FS_MX61 = y           //添加项 搜索CONFIG_PLATFORM_ARM_MX51_241H,模仿添加自己的配置项 ifeq ($(CONFIG_PLATFORM_FS_MX61), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-poky-linux-gnueabi-                          //交叉编译器名称
KSRC ?= /opt/ying/mountnfs/tmp/kernel-source                          //内核源码路径 3.make编译      报错: rtl8189ES/include/rtw_debug.h:188:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf 这是打印debug相关函数,可以去掉 修改 vi include/rtw_debug.h +188 将 #define _seqdump seq_printf        修改成#define _seqdump 再次编译成功,出现8189es.ko 4.拷贝8189es.ko到文件系统内       insmod 8189es.ko 加载       拨号wpa_supplicant -i wlan0 -Dwext -c /etc/wpa_supplicant.conf &