IMX8MP CM7 Zephyr booting by remoteproc #75160
-
Hi, Hope you are well. I compile a sample code for IMX8MP CM7 and a Do you know if Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 17 replies
-
Hi @mbahmani90 , The memory used by the linker is set in devicetree using the chosen nodes Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi, @mbahmani90, Currently we have two problems: The first problem is remoteproc can't load elf issue. If CM7 uses ddr_code and ddr_sys, for example, currently uses 0x80000000 as code start address and uses 0x80200000 as sys start address. we can found currently there is already one mapping entry in the mapping table of imx_rproc_att_imx8mn[] in remoteproc Linux driver imx_rproc.c:
After we fixed the first problem, elf segments can be loaded into related memory correctly, but as you said, no response from M7 Core. the root cause is when we use ddr_code to put the code in the DDR memory, but M7 will still to get the first instruction from ITCM zero address, so we need to put rom_start section to ITCM zero address, the solution is to enabled CONFIG_ROMSTART_RELOCATION_ROM:
You can refer to discussion in PR: #71684 After the second problem is fixed, you should run ddr zephyr image by using remoteproc correctly. |
Beta Was this translation helpful? Give feedback.
-
Updated board document to address the issues we found in this discussion: |
Beta Was this translation helpful? Give feedback.
-
Let's close this discussion as it is resolved by PR #75426 which has been merged, thanks. |
Beta Was this translation helpful? Give feedback.
Let's close this discussion as it is resolved by PR #75426 which has been merged, thanks.