Firefly开源社区

打印 上一主题 下一主题

[技术讨论] RK3568制作Debian固件后系统一直报错

62

积分

0

威望

0

贡献

技术小白

积分
62

RK3568制作Debian固件后系统一直报错

发表于 2021-8-6 10:34:50      浏览:7658 | 回复:6        打印      只看该作者   [复制链接] 楼主
[   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] [dhd-wlan0] 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] [WLAN_RFKILL]: rockchip_wifi_power: 1
[   70.948699] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[   70.948761] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[   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] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt
[   71.829958] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[   71.829972] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
[   71.829983] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
[   71.829996] [dhd] 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] [WLAN_RFKILL]: rockchip_wifi_power: 0
[   71.830717] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[   71.830730] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[   71.830742] [dhd-wlan0] wl_android_wifi_on : Failed
[   71.830754] dhd_open : wl_android_wifi_on failed (-35)
[   71.830767] dhd_stop: Enter wlan0
[   71.830782] [dhd-wlan0] 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] [WLAN_RFKILL]: rockchip_wifi_power: 0
[   71.830912] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[   71.830926] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[   71.830936] [dhd-wlan0] 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
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2021-8-9 16:42:11        只看该作者  沙发
系统没有找到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/对应的模组文件夹里
回复

使用道具 举报

62

积分

0

威望

0

贡献

技术小白

积分
62
发表于 2021-8-10 10:46:04        只看该作者  板凳
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?
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2021-8-10 11:06:02        只看该作者  地板
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] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[   71.829972] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6275s.txt
[   71.829983] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob

板子的log打印肯定是指板子的/vendor/etc/firmware/
没有这个路径就自己创建然后把文件放进去
回复

使用道具 举报

62

积分

0

威望

0

贡献

技术小白

积分
62
发表于 2021-8-11 11:34:55        只看该作者  5#
Liuth 发表于 2021-8-10 11:06
[   71.829958] [dhd] 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文件
回复

使用道具 举报

2122

积分

20

威望

24

贡献

中级创客

Rank: 4

积分
2122
发表于 2021-8-11 16:08:28        只看该作者  6#
本帖最后由 Liuth 于 2021-8-11 16:14 编辑
2014 发表于 2021-8-11 11:34
不是你说的这样,看了一下编译的脚本mk-rootfs-buster.sh,问题应该出在这几行代码

# bt/wifi firmwar ...

既然你想从源头解决问题.......

不是这几行哦,已经不用了,重点在后面的
#------------------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
回复

使用道具 举报

62

积分

0

威望

0

贡献

技术小白

积分
62
发表于 2021-8-12 14:28:53        只看该作者  7#
Liuth 发表于 2021-8-11 16:08
既然你想从源头解决问题.......

不是这几行哦,已经不用了,重点在后面的

重新将固件打包到  XXX.deb文件果然就好了,,,感谢指导
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表