tommyhzx 发表于 2020-10-26 10:08:09

RK3328 Android8.1 SDK WIFI 移植问题

我申请了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
C:\Users\LEOVO\Downloads\wifi_failed.png

tommyhzx 发表于 2020-10-26 10:11:04

sdcardfs : options - gid:9997
sdcardfs : options - mask:7
dhd_module_init: in Dongle Host Driver, version 1.579.77.41.2 (r)
======== dhd_wlan_init_plat_data ========
dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
: rockchip_wifi_get_oob_irq: Enter
dhd_wlan_init_gpio: host_oob_irq: 149
dhd_wlan_init_gpio: host_oob_irq_flags=0x414
dhd_wifi_platform_load: Enter
Power-up adapter 'DHD generic adapter'
wifi_platform_set_power = 1
======== PULL WL_REG_ON(-1) HIGH! ========
: rockchip_wifi_power: 1
: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
: wifi turn on power. -1
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
mmc1:mmc host rescan start!
FAT-fs (sda4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
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
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
sdcardfs version 2.0
sdcardfs: dev_name -> /mnt/media_rw/B4FE-5315
sdcardfs: options -> fsuid=1023,fsgid=1023,mask=6,userid=0,gid=1015
sdcardfs: mnt -> ffffffc02cb531a0
sdcardfs: mounted on top of /mnt/media_rw/B4FE-5315 type vfat
Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299148e0.
sdcardfs : options - debug:1
sdcardfs : options - gid:9997
sdcardfs : options - mask:18
Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299156e0.
sdcardfs : options - debug:1
sdcardfs : options - gid:9997
sdcardfs : options - mask:18
ret = 0
of_dma_request_slave_channel: dma-names property of node '/serial@ff110000' missing or empty
ttyS0 - failed to request DMA
rk_gmac-dwmac ff550000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
failed to power up DHD generic adapter, 1 retry left
wifi_platform_set_power = 0
======== PULL WL_REG_ON(-1) LOW! ========
: rockchip_wifi_power: 0
: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
: wifi shut off power.
wifi_platform_bus_enumerate device present 0
======== Card detection to remove SDIO card! ========
mmc1:mmc host rescan start!
wifi_platform_set_power = 1
======== PULL WL_REG_ON(-1) HIGH! ========
: rockchip_wifi_power: 1
: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
: wifi turn on power. -1
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
mmc1:mmc host rescan start!
failed to power up DHD generic adapter, 0 retry left
wifi_platform_set_power = 0
======== PULL WL_REG_ON(-1) LOW! ========
: rockchip_wifi_power: 0
: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
: wifi shut off power.
wifi_platform_bus_enumerate device present 0
======== Card detection to remove SDIO card! ========
mmc1:mmc host rescan start!
failed to power up DHD generic adapter, max retry reached**
unregister wifi platform drivers
wifi_platform_bus_enumerate device present 0
======== Card detection to remove SDIO card! ========
mmc1:mmc host rescan start!
======== dhd_wlan_deinit_plat_data ========
dhd_module_init: Failed to load the driver, try cnt 0
dhd_module_init: Failed to load driver max retry reached**
dhd_module_init: Exit err=-19
init: Service 'bootanim' (pid 268) exited with status 0

jpchen 发表于 2020-10-26 10:22:23

tommyhzx 发表于 2020-10-26 10:11
sdcardfs : options - gid:9997
sdcardfs : options - mask:7


该模块在支持列表里面,按RK文档调试应该没问题。

tommyhzx 发表于 2020-10-26 11:01:11

jpchen 发表于 2020-10-26 10:22
该模块在支持列表里面,按RK文档调试应该没问题。

是在兼容列表里面,按RK文档说应该是不用做啥修改直接可用的,但不知道 firefly 从RK源码改过来是做了哪些修改导致不能直接使用的。能否把你们修改wifi部分的代码patch给提供下呢?

jpchen 发表于 2020-10-26 14:08:58

tommyhzx 发表于 2020-10-26 11:01
是在兼容列表里面,按RK文档说应该是不用做啥修改直接可用的,但不知道 firefly 从RK源码改过来是做了哪 ...

你只需要把之前的wifi模块选择你当前使用的型号就可以了吧

tommyhzx 发表于 2020-10-27 11:11:53

jpchen 发表于 2020-10-26 14:08
你只需要把之前的wifi模块选择你当前使用的型号就可以了吧

你这块板子怎么连硬件原理图都没有提供?我怎么调试?

wo゜ 发表于 2020-12-21 13:53:31

公版的sdk在哪申请,可以发一下给我吗

xiaoye 发表于 2022-7-3 22:26:16

官网的:http://opensource.rock-chips.com/wiki_RK3328
遇到同样的问题,我的是在一个电视盒子上跑的,
也是出现[   14.123165] dhd_module_init: dhd_wifi_platform_register_drv** ,wifi 蓝牙没有
请问现在解决了吗?怎么解决
页: [1]
查看完整版本: RK3328 Android8.1 SDK WIFI 移植问题