Experienced hang issue when firmware loading into M7 via remoteproc in Linux.
Initial setup in uboot
$ setenv fdtfile imx8mp-evk-rpmsg.dtb
$ saveenv
Issue reproduce steps :
$ echo -n /lib/firmware/ > /sys/module/firmware_class/parameters/path
$ echo -n imx8mp_m7_TCM_hello_world.elf > /sys/class/remoteproc/remoteproc0/firmware
$ echo start > /sys/class/remoteproc/remoteproc0/state
Issue happened... can refer to picture attached.
已解决! 转到解答。
Hi @Jimmychea
it's working. But wondering why required to run the command "run prepare_mcore", i can't find this in any documents. Can you explain on this ? And also how to make it to auto run when booting ? Thanks
Hi @Jimmychea
Hi @Jimmychea
Do we also need the code changes described in AN12225
Section 5.2. My M7 just uses ECSPI-1. So I tried that code change but with the following in /drivers/clk/imx/clk-imx8mp.c
clk_prepare_enable(clks[IMX8MP_CLK_M4_CG]->clk);
clk_prepare_enable(clks[IMX8MP_CLK_M7_CORE]->clk);
clk_prepare_enable(clks[IMX8MP_CLK_ECSPI1]->clk);
And the kernel hung. Do I not need the IMX8MP_CLK_M7_CORE?