Hi!
I want to use the A9 kernel of imx6sx to start the M4 kernel. Does anyone know what to do. The information on the official website is to first put the bin file into the SD card, and then use u-boot to start it. Our product does not use SD card, so can we boot A9 core (linux boot) first, and then boot M4 through A9? Use DDR as memory. What information can be used as a reference?
Hi 2548903578,
What kernel version are you using?
On 5.4.x kernel, there's a remoteproc driver which can be used to send firmware to M4 from A9 user space.
User needs to change default dtb to xxx-m4.dtb.
See 4.1.1 in https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview
Some notes on using remoteproc on i.MX soc:
Thanks!
Regards
Terry
Which dtb file are you using?
Hi,
The device tree I am using is generated by Yocto, as shown in the figure:
Hi,
Sorry for that imx6sx and imx7d don't support remoteproc yet.
Just confirmed the information from RD.
Thanks!
Regards
Terry
could you try imx6sx-sdb-m4.dts
~igor
also one can look at m4ctrl tool
https://source.codeaurora.org/external/imxsupport/m4ctrl/tree/README.md
Best regards
igor
Hi igorpadykov,
The screenshot is the cross-compiled version I'm using, generated by Yocto. It's different from the version you gave me. I can compile imx-m4fwloader, but cannot compile m4ctrl.
Hi igorpadykov,
What should I do now, can you give me some suggestions? I have tried many methods and I really don't know how to do it.
Hi igorpadykov,
I am prompted that some header files cannot be found. Are these header files included with Linux?
for addresses please look at AN5317
Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX 7Dual/7Solo Application Processors
Best regards
igor
Hi igorpadykov,
I think it is the address of my screenshot, but I still can’t use this address.
Hi, terry_lr
We are now using EMMC to start. I have used the xxx-m4.dtb device tree through mfg-tools, and found that the development board did not start normally.
Hi 2548903578
one can look at imx-m4fwloader :
https://lists.yoctoproject.org/pipermail/meta-freescale/2018-March/022340.html
Best regards
igor
Hi igorpadykov,
I tried several addresses that were the same. I cut the picture of the phenomenon as a reference. Hope you can give me some suggestions. thank you very much.
Hi igorpadykov,
Thank you very much for your reply, I don't know which address to give when using this tool. I used DDR, and then used the address 0x8000000 as the starting address. I found that the system crashed directly. May I ask how much my address should be given when using DDR to start M4 on IMX6SX.