我申请了RK3328的官方公版的 Android 8.1 SDK,用来进行前期调试,在调试 WIFI 的时候碰到了 WIFI 无法正确加载驱动的问题,对比着 firefly 对应的 RK3328 Android 8.1 SDK 源码,把内核配置文件 kernel/arch/arm64/configs/rockchip_defconfig 里面把各个 WIFI 驱动配置成编译为 KO 文件,RTL8723DS 也是在 Android SDK 的 WIFI 兼容列表里面的,其他的 DTS 文件配置也是按照 ROCKCHIP 官方提供的技术文档《ROCKCHIP_ANDROID_8.1_WIFI配置说明_V1.2.pdf》来进行修改的,而且还参考了 firefly 提供的 Android SDK 8.1 版本里面本来就可以正常工作的源码,这里想请问下要在公版的 SDK 上修改到可以使用 firefly 板子的 WIFI ,需要进行哪些修改?
附加信息:
/sys/bus/sdio/devices 目录下没有任何内容
lsmod 看到加载的是博通的 WIFI 驱动 bcmdhd
[ 168.285168] sdcardfs : options - gid:9997
[ 168.285678] sdcardfs : options - mask:7
[ 168.570631] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.2 (r)
[ 168.570664] ======== dhd_wlan_init_plat_data ========
[ 168.570672] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[ 168.570678] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[ 168.570685] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[ 168.570695] dhd_wlan_init_gpio: host_oob_irq: 149
[ 168.570701] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[ 168.570707] dhd_wifi_platform_load: Enter
[ 168.570737] Power-up adapter ‘DHD generic adapter’
[ 168.570868] wifi_platform_set_power = 1
[ 168.570880] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 168.570888] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 168.570895] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 168.570902] [WLAN_RFKILL]: wifi turn on power. -1
[ 168.883892] wifi_platform_bus_enumerate device present 1
[ 168.883932] ======== Card detection to detect SDIO card! ========
[ 168.883941] mmc1:mmc host rescan start!
[ 169.210909] FAT-fs (sda4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 169.279948] type=1400 audit(1603463658.663:18): avc: denied { execute } for pid=430 comm=“system_server” path=“/data/dalvik-cache/arm64/system@framework@services.jar@classes.dex” dev=“mmcblk2p17” ino=178 scontext=u:r:system_server:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=1
[ 169.279996] type=1400 audit(1603674697.790:19): avc: denied { execute } for pid=430 comm=“system_server” path=“/data/dalvik-cache/arm64/system@framework@com.android.location.provider.jar@classes.dex” dev=“mmcblk2p17” ino=196 scontext=u:r:system_server:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=1
[ 169.280980] sdcardfs version 2.0
[ 169.280997] sdcardfs: dev_name → /mnt/media_rw/B4FE-5315
[ 169.281003] sdcardfs: options → fsuid=1023,fsgid=1023,mask=6,userid=0,gid=1015
[ 169.281010] sdcardfs: mnt → ffffffc02cb531a0
[ 169.281086] sdcardfs: mounted on top of /mnt/media_rw/B4FE-5315 type vfat
[ 169.281734] Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299148e0.
[ 169.281756] sdcardfs : options - debug:1
[ 169.281763] sdcardfs : options - gid:9997
[ 169.281768] sdcardfs : options - mask:18
[ 169.282296] Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299156e0.
[ 169.282317] sdcardfs : options - debug:1
[ 169.282323] sdcardfs : options - gid:9997
[ 169.282328] sdcardfs : options - mask:18
[ 169.416935] ret = 0
[ 169.420081] of_dma_request_slave_channel: dma-names property of node ‘/serial@ff110000’ missing or empty
[ 169.420121] ttyS0 - failed to request DMA
[ 170.853908] rk_gmac-dwmac ff550000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
[ 170.883507] failed to power up DHD generic adapter, 1 retry left
[ 170.899637] wifi_platform_set_power = 0
[ 170.899660] ======== PULL WL_REG_ON(-1) LOW! ========
[ 170.899669] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 170.899685] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 170.899692] [WLAN_RFKILL]: wifi shut off power.
[ 170.899699] wifi_platform_bus_enumerate device present 0
[ 170.899705] ======== Card detection to remove SDIO card! ========
[ 170.899711] mmc1:mmc host rescan start!
[ 170.899758] wifi_platform_set_power = 1
[ 170.899764] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 170.899770] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 170.899776] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 170.899782] [WLAN_RFKILL]: wifi turn on power. -1
[ 171.203504] wifi_platform_bus_enumerate device present 1
[ 171.203528] ======== Card detection to detect SDIO card! ========
[ 171.203536] mmc1:mmc host rescan start!
[ 173.203493] failed to power up DHD generic adapter, 0 retry left
[ 173.219630] wifi_platform_set_power = 0
[ 173.219653] ======== PULL WL_REG_ON(-1) LOW! ========
[ 173.219661] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 173.219678] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[ 173.219685] [WLAN_RFKILL]: wifi shut off power.
[ 173.219691] wifi_platform_bus_enumerate device present 0
[ 173.219697] ======== Card detection to remove SDIO card! ========
[ 173.219703] mmc1:mmc host rescan start!
[ 173.219709] failed to power up DHD generic adapter, max retry reached**
[ 173.219737] unregister wifi platform drivers
[ 173.219743] wifi_platform_bus_enumerate device present 0
[ 173.219749] ======== Card detection to remove SDIO card! ========
[ 173.219754] mmc1:mmc host rescan start!
[ 173.219760] ======== dhd_wlan_deinit_plat_data ========
[ 173.219767] dhd_module_init: Failed to load the driver, try cnt 0
[ 173.219812] dhd_module_init: Failed to load driver max retry reached**
[ 173.219819] dhd_module_init: Exit err=-19
[ 173.962534] init: Service ‘bootanim’ (pid 268) exited with status 0
tommyhzx 发表于 2020-10-26 10:11
[ 168.285168] sdcardfs : options - gid:9997
[ 168.285678] sdcardfs : options - mask:7
[ 168.570 …
该模块在支持列表里面,按RK文档调试应该没问题。
jpchen 发表于 2020-10-26 10:22
该模块在支持列表里面,按RK文档调试应该没问题。
是在兼容列表里面,按RK文档说应该是不用做啥修改直接可用的,但不知道 firefly 从RK源码改过来是做了哪些修改导致不能直接使用的。能否把你们修改wifi部分的代码patch给提供下呢?
tommyhzx 发表于 2020-10-26 11:01
是在兼容列表里面,按RK文档说应该是不用做啥修改直接可用的,但不知道 firefly 从RK源码改过来是做了哪 …
你只需要把之前的wifi模块选择你当前使用的型号就可以了吧
jpchen 发表于 2020-10-26 14:08
你只需要把之前的wifi模块选择你当前使用的型号就可以了吧
你这块板子怎么连硬件原理图都没有提供?我怎么调试?
公版的sdk在哪申请,可以发一下给我吗
官网的:http://opensource.rock-chips.com/wiki_RK3328
遇到同样的问题,我的是在一个电视盒子上跑的,
也是出现[ 14.123165] dhd_module_init: dhd_wifi_platform_register_drv** ,wifi 蓝牙没有
请问现在解决了吗?怎么解决