Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uboot 加载 dsp.elf 报错 #4

Closed
xyq1113723547 opened this issue May 6, 2023 · 3 comments
Closed

uboot 加载 dsp.elf 报错 #4

xyq1113723547 opened this issue May 6, 2023 · 3 comments

Comments

@xyq1113723547
Copy link

xyq1113723547 commented May 6, 2023

开发板是 Sipeed Lichee RV,系统镜像是 LicheeRV_Tina_dock_hdmi_8723ds.img ,利用了 Tina Linux 中魔改的 uboot,其中包括了 bootr 命令来给 DSP 加载 firmware。

uboot 命令行下加载 firmware 报错

=> echo $(boot_dsp0)
sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
=> sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
dsp0:uart config fail
dsp0:gpio init config fail
dsp0:find section err

修改 bootdelay

在 /etc/fw_env.config 中添加 /dev/by-name/env /dev/by-name/env-redund
之后通过 fw_setenv 编辑 bootdelay

制作 dsp 分区

dd if=dsp.elf of=/dev/mmcblk0p5

@YuzukiTsuru
Copy link
Contributor

设备树内没配置dsp相关参数,启核失败

@xyq1113723547
Copy link
Author

是 FreeRTOS 的设备树吗?
我看了 https://github.com/100askTeam/NezaD1_u-boot-2018/blob/master/drivers/dsp/sun20iw1/dsp.c#L129
uart config fail gpio init config fail find section err 都在 sunxi_dsp_init 函数里

@YuzukiTsuru
Copy link
Contributor

是uboot的设备树,描述了dsp核心分配的uart,io,还有efl解析地址,入口地址等

另外在适配linux下的remoteproc驱动之后可以使用linux的rproc框架启动dsp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants