3188 android5 rtl8821cu wifi调试记录
调试过程:
1.rk3188\boardcon_3188mid\kernel\drivers\net\wireless\Makefile
+ obj-$(CONFIG_RTL8821CU) += rtl8821cu/
2.rk3188\boardcon_3188mid\kernel\drivers\net\wireless\Kconfig
+ source "drivers/net/wireless/rtl8821cu/Kconfig"
(如果没有被编译到,请配置rk3188_defconfig )
3.出错:
arch/arm/mach-rk3188/../plat-rk/rk-sdmmc-wifi.c: At top level:
arch/arm/mach-rk3188/../plat-rk/rk-sdmmc-wifi.c:102:31: error: 'RK30SDK_WIFI_GPIO_POWER_N' undeclared here (not in a function)
arch/arm/mach-rk3188/../plat-rk/rk-sdmmc-wifi.c:103:31: error: 'RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE' undeclared here (not in a function)
解决:
+102 .io = RK30_PIN3_PD0,
+103 .enable = GPIO_HIGH,
4.
cd boardcon_3188mid/kernel/
make rk3188_defconfig
make kernel.img
5.关闭 RTW LOG:
+rk3188\boardcon_3188mid\kernel\drivers\net\wireless\rtl8821cu\Makefile
-CONFIG_RTW_LOG_LEVEL = 4
+CONFIG_RTW_LOG_LEVEL = 0
参考:<How to set driver debug log level>