Apalis-IMX8 cortex m4 remoteproc not working

Hello,

I am using the Apalis-IMX8 with torizonOS kernel 6.6.94-7.3.0-g5a62539de8f9 to develop a measurement system. I am trying to use the M4 cores and ideally I would like to use them via remoteproc (I have done this successfully on the verdin-imx8mm and on the var-som-mx8 from variscite). When I try to access the cores on the apalis, I see no available cores via remoteproc

ls /sys/class/remoteproc/

returns empty. I also cannot find an available devicetree overlay to potentially activate and when looking at this page:

It seems like it is not yet supported? Is this page up-to-date?

What steps should I take to use the M4 cores and the remoteproc driver?

Best regards

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


Hello! Thank you for your detailed question.

You are correct in your observation. According to the latest RemoteProc documentation for Toradex devices, RemoteProc support for the Apalis iMX8 (including device tree overlays to enable the M4 cores via remoteproc) is currently not available. The documentation states that the Apalis iMX8 HMP overlay (required to expose the M4 cores to the remoteproc framework) is marked as “Coming soon” and has not yet been released for the current kernel/BSP versions you are using (Reference).

What does this mean?

  • At this time, neither the /sys/class/remoteproc/ entries nor a pre-built overlay to enable them exist for the Apalis iMX8 on Torizon OS 6.
  • The page you referenced is up-to-date and reflects the current status for Apalis iMX8: no official remoteproc support is available as of now.

Alternatives you can consider:

  1. Cortex-M4 Firmware Loading via U-Boot

    • You can load and run M4 firmware by using U-Boot shell commands, as described in the Toradex Cortex-M documentation:
      How to use Cortex-M on Apalis iMX8
    • This approach does not provide runtime control via remoteproc but does allow you to run your code on the M4 cores.
  2. Custom Device Tree Overlay

    • If you are experienced with device tree development, you could attempt to develop your own overlays for M4 remoteproc support. This approach requires significant effort and validation, and at this point, reference overlays or documentation for the exact required changes are not publicly available.

Summary

  • RemoteProc is not yet supported for Apalis iMX8.
  • Please use the U-Boot loading method for now for M4 firmware.
  • Keep an eye on the official documentation for updates.

If you have specific needs in setting up the U-Boot method or wish for guidance on custom overlay development, feel free to ask!

Best regards,
Toradex AI Assistant.

Hi @Jens0501!

Unfortunately, we don’t have an overlay to enable HMP on Apalis iMX8 ready for now, but R&D is working on this as we speak, so in the next few weeks, it should be available.

Best regards.

Hi Lucas,

So at the moment there is no way of using the M4 cores? Or can I still use them by loading the binary firmware via uboot?

Is there something I can follow (forum post or mailing list) that will keep me updated when HMP is available for the apailis imx8?

Thanks for your quick reply.
Best regards

Hi @Jens0501!

As far as I’m aware, the only way to use it for now would be to implement it based on NXP’s device tree (this one, for example).

Regarding following the status of it, you could check on our Issue Tracker.

Best regards.

Hi,

Is there an update regarding the implementation of HMP on the apalis imx8?

Best regards

Hi @Jens0501!

Unfortunately no. It is in the R&D to-do list, but I can’t give you a precise date right now.

Best regards.

Hi Lucas,

Would there be any possibility to have maybe some kind of 1-on-1 meeting with someone that could help us get started with implementing it ourselves or to look at temporary alternatives? It’s in the context of a spin-off where we will be needing multiple modules (specifically ones with two real-time cores like the Apalis IMX8).

I did ask on the NXP forums, but there they cannot offer support since it’s not one of their modules.

Best regards

Hi @Jens0501!

Unfortunately, our teams are currently focused on other projects and are unable to schedule a meeting.

That being said, I can recommend our Partner Network, where you’ll find specialized partners with the expertise to ease and accelerate your project.

Feel free to contact us if you face any issues trying to find/contact the right partner.

Best regards.

Hi,

Still no update on the Apalis HMP issue I assume?

Best regards

Hi @Jens0501!

Unfortunately, no.

Best regards.