On Feb 26, 2021, at 3:43 AM, Michael Graichen <email@example.com> wrote:
I have just started working on a IMX7D (https://www.kontron.de/products/boards-and-standard-form-factors/smarc/smarc-samx7.html) together with Zephyr
I noticed that the Colibri iMX7 Board has support for the Cortex M4.
So I've build an example by using:
cmake -GNinja -DBOARD=colibri_imx7d_m4 ../samples/basic/blinky
and tried to load that on the Cortex M4
echo -n zephyr.elf > /sys/class/remoteproc/remoteproc0/firmware
echo -n start > /sys/class/remoteproc/remoteproc0/state
Unfortunatly the start fails because the elf-file has no resource table.
I can select TOP ---> Additional libraries ---> [*] coprocessor resource table within menuconfig
but the resulting elf-file is still missing the resource table.
What am i missing? How can a add a resource table to the elf-file?
I don’t believe the remoteproc loading was ever supported for the imx family with zephyr. This is something you’d need to add support for. I think it might be supported on the STM32 MP1 as an example. (I added Arnaud on CC as he added the STM32 MP1 support).
For the i.mx I think you can load via u-boot and there’s a section in the zephyr board docs here about it:https://docs.zephyrproject.org/latest/boards/arm/colibri_imx7d_m4/doc/index.html