RK3568制作Debian固件后系统一直报错
[ 70.948359] dhd_open: Enter wlan0[ 70.948434] dhd_open : no mutex held. set lock
[ 70.948475]
[ 70.948475] Dongle Host Driver, version 100.10.545.9 (r826445-20200316-8)
[ 70.948531] wl_android_wifi_on : in g_wifi_on=0
[ 70.948556] wifi_platform_set_power = 1, delay: 200 msec
[ 70.948587] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 70.948640] : rockchip_wifi_power: 1
[ 70.948699] : rockchip_wifi_power: toggle = false
[ 70.948761] : wifi turn on power
[ 71.255111] sdio_reset_comm():
[ 71.375254] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[ 71.392769] dwmmc_rockchip fe000000.dwmmc: failed to set rate 100000Hz
[ 71.392820] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 100000Hz, actual 93750HZ div = 2)
[ 71.408414] dwmmc_rockchip fe000000.dwmmc: failed to set rate 100000Hz
[ 71.452979] mmc3: queuing unknown CIS tuple 0x80 (2 bytes)
[ 71.459853] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[ 71.466557] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[ 71.478871] mmc3: queuing unknown CIS tuple 0x80 (7 bytes)
[ 71.803901] dwmmc_rockchip fe000000.dwmmc: failed to set rate 100000Hz
[ 71.806858] dwmmc_rockchip fe000000.dwmmc: failed to set rate 100000Hz
[ 71.807039] mmc_host mmc3: Bus speed (slot 0) = 50000000Hz (slot req 100000000Hz, actual 50000000HZ div = 0)
[ 71.822769] dwmmc_rockchip fe000000.dwmmc: Successfully tuned phase to 351
[ 71.822858] sdioh_start: set sd_f2_blocksize 256
[ 71.823234]
[ 71.823234]
[ 71.823234] dhd_bus_devreset: == Power ON ==
[ 71.823434] F1 signature read @0x18000000=0x1042aae8
[ 71.828584] F1 signature OK, socitype:0x1 chip:0xaae8 rev:0x2 pkg:0x4
[ 71.829554] DHD: dongle ram size is set to 1310720(orig 1310720) at 0x170000
[ 71.829639] dhd_bus_devreset: making DHD_BUS_DOWN
[ 71.829703] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 71.829931] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt
[ 71.829958] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[ 71.829972] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
[ 71.829983] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
[ 71.829996] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt
[ 71.830485] dhdsdio_download_code_file: Open firmware file failed /vendor/etc/firmware/fw_bcm43752a2_ag.bin
[ 71.830502] _dhdsdio_download_firmware: dongle image file download failed
[ 71.830548] dhd_bus_devreset Failed to download binary to the dongle
[ 71.830571] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 71.830590] dhd_dbg_detach_pkt_monitor, 2100
[ 71.830601] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 71.830661] wifi_platform_set_power = 0, delay: 0 msec
[ 71.830681] ======== PULL WL_REG_ON(-1) LOW! ========
[ 71.830694] : rockchip_wifi_power: 0
[ 71.830717] : rockchip_wifi_power: toggle = false
[ 71.830730] : wifi shut off power
[ 71.830742] wl_android_wifi_on : Failed
[ 71.830754] dhd_open : wl_android_wifi_on failed (-35)
[ 71.830767] dhd_stop: Enter wlan0
[ 71.830782] wl_android_wifi_off : in g_wifi_on=0, on_failure=1
[ 71.830795] dhd_dbg_detach_pkt_monitor, 2100
[ 71.830810] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 71.830854] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xffffff92
[ 71.830870] wifi_platform_set_power = 0, delay: 0 msec
[ 71.830888] ======== PULL WL_REG_ON(-1) LOW! ========
[ 71.830900] : rockchip_wifi_power: 0
[ 71.830912] : rockchip_wifi_power: toggle = false
[ 71.830926] : wifi shut off power
[ 71.830936] wl_android_wifi_off : out
[ 71.868582] dhd_stop: Exit wlan0
[ 71.868653] dhd_open : the lock is released.
[ 71.868678] dhd_open: Exit wlan0 ret=-1
[ 71.868700] Failed to open primary dev ret -1 系统没有找到wifi模组的固件,检查这些文件是否存在,不存在就需要手动把文件放进去。
Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
这些文件在sdk中,external/rkwifibt/firmware/broadcom/对应的模组文件夹里 Liuth 发表于 2021-8-9 16:42
系统没有找到wifi模组的固件,检查这些文件是否存在,不存在就需要手动把文件放进去。
Final fw_path=/v ...
Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
上文说的/vendor/etc/路径指的是SDK源码的/rk356x_linux_release_20210511/debian/binary/etc?
2014 发表于 2021-8-10 10:46
Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
Final nv_path=/vendor/etc/firmware/nvram_ ...
[ 71.829958] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[ 71.829972] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
[ 71.829983] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
板子的log打印肯定是指板子的/vendor/etc/firmware/
没有这个路径就自己创建然后把文件放进去 Liuth 发表于 2021-8-10 11:06
[ 71.829958] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_a ...
不是你说的这样,看了一下编译的脚本mk-rootfs-buster.sh,问题应该出在这几行代码
# bt/wifi firmware
sudo mkdir -p $TARGET_ROOTFS_DIR/system/lib/modules/
sudo mkdir -p $TARGET_ROOTFS_DIR/vendor/etc
sudo find ../kernel/drivers/net/wireless/rockchip_wlan/*-name "*.ko" | \
xargs -n1 -i sudo cp {} $TARGET_ROOTFS_DIR/system/lib/modules/
没有复制文件到$TARGET_ROOTFS_DIR/vendor/etc这个目录,而且后面的命令执行完,找不到.ko文件 本帖最后由 Liuth 于 2021-8-11 16:14 编辑
2014 发表于 2021-8-11 11:34
不是你说的这样,看了一下编译的脚本mk-rootfs-buster.sh,问题应该出在这几行代码
# bt/wifi firmwar ...
{:4_106:}既然你想从源头解决问题.......
不是这几行哦,已经不用了,重点在后面的
#------------------rkwifibt------------
echo -e "\033[36m Install rkwifibt.................... \033[0m"
dpkg -i/packages/rkwifibt/*.deb
apt-get install -f -y
ln -s /system/etc/firmware /vendor/etc/
它是通过sdk/debian/packages/arm64/rkwifibt/rkwifibt-broadcom-firmware_1.0.0-1_arm64.deb装载文件进去的
问题的根源在于这个deb包里面没有AP6275S需要的固件
你可以从sdk/external/rkwifibt里面拿固件重新做一个deb包
也可以按照我之前说的直接放进板子里临时解决
非常不好意思,我们目前不怎么维护debian,所以会导致这些问题
之后我们会计划适配debian10 Liuth 发表于 2021-8-11 16:08
既然你想从源头解决问题.......
不是这几行哦,已经不用了,重点在后面的
重新将固件打包到XXX.deb文件果然就好了,,,感谢指导
页:
[1]