# REMOTEPROC in imx7d-pico with Yocto Hardknott (A7-Side) and Zephyr (m4-side)

**URL:** <https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840>\
**Category:** General Discussions\
**Tags:** yocto, imx7, nxp, rtos\
**Created:** [May 12, 2023, 3:07pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840 "2023-05-12T15:07:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neuberfran](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neuberfran/32/369_2.png) [@neuberfran](https://hub.mender.io/u/neuberfran)\
**Post date:** [May 12, 2023, 3:07pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/1 "2023-05-12T15:07:01Z")

</div>

Hi,

I truly love the imx7d-pico. I have two here.

[![](https://img.youtube.com/vi/2VZWySnnd3Y/maxresdefault.jpg "Yocto kikstone (A7-Side) And FreeRTOS(M4-Side) - RPMsg in imx7d-pico - U-boot 2022.04 Customized") ](https://www.youtube.com/watch?v=2VZWySnnd3Y)

[![](https://img.youtube.com/vi/z9PzPP7TEYQ/hqdefault.jpg "RPMsg in imx7d-pico (Ex Android Things) using Yocto Hardknott(Linux-A7-Side) And FreeRTOS(M4-Side)") ](https://www.youtube.com/watch?v=z9PzPP7TEYQ)

[![](https://img.youtube.com/vi/B1-DNodOFK0/maxresdefault.jpg "imx7d-pico: splash screen (bmp file) didn't appear boot. Now solved") ](https://www.youtube.com/watch?v=B1-DNodOFK0)

[![](https://img.youtube.com/vi/s4DdUwebd0Y/maxresdefault.jpg "imx7d-pico - issue with u-boot and splash screen") ](https://www.youtube.com/watch?v=s4DdUwebd0Y)

[![](https://img.youtube.com/vi/Cllga3Sy_tA/maxresdefault.jpg "imx7d-pico: splash screen (bmp file) not appear in boot") ](https://www.youtube.com/watch?v=Cllga3Sy_tA)

I’m trying to do REMOTEPROC on this device.  
The first step of populating the folder /sys/class/remoteproc with remoteproc0 I already managed via device tree changes

I need help to add a gpio-leds (the device’s default led) and create the zephyr.elf file via west build. So that when I will use the commands below in the userspace of Yocto hardknott and/or dunfell (A7-side) the led will turn on or off.

Board $\> cp zephyr.elf /lib/firmware  
Board $\> echo start \>/sys/class/remoteproc/remoteprocX/state  
Board $\> echo stop \>/sys/class/remoteproc/remoteprocX/state

Note.:

1. This device was added by @jorisoffouga on zephyr in 2019:

[https://docs.zephyrproject.org/latest/boards/arm/pico\_pi\_m4/doc/index.html?fbclid=IwAR03kRcW7st3k2Dqp0xK-J9Fjz0Vxt6zYM8tANrF634Y8KkjB74DTNtzgC8](https://docs.zephyrproject.org/latest/boards/arm/pico_pi_m4/doc/index.html?fbclid=IwAR03kRcW7st3k2Dqp0xK-J9Fjz0Vxt6zYM8tANrF634Y8KkjB74DTNtzgC8)

1. Remoteproc Api:  
[https://www.kernel.org/doc/Documentation/remoteproc.txt](https://www.kernel.org/doc/Documentation/remoteproc.txt)

2. Current status of the zephyr.elf build project on github:  
[GitHub - neuberfran/pico\_pi\_m4](https://github.com/neuberfran/pico_pi_m4/tree/main)

---

<div class="post-metadata">

**Author:** ![neuberfran](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neuberfran/32/369_2.png) [@neuberfran](https://hub.mender.io/u/neuberfran)\
**Post date:** [June 7, 2023, 7:03pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/3 "2023-06-07T19:03:05Z")

</div>

Unfortunately, this issue (different from what I had said and thought) has not yet been completely resolved.

What happens is the following:  
I have two linux distributions here:  
The first is ubuntu 22.04 which produced a yocto-kirkstone image, where indeed this issue was resolved.

**Next is ubuntu 20.04 which produced a yocto-hardknott image where this issue remains.**

Below is what I said when I thought this issue had been resolved:

I solved When I change Device Tree in the Yocto-A7-Side and enable in DTS RPMsg options

Tks

Cheers

---

<div class="post-metadata">

**Author:** ![neuberfran](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neuberfran/32/369_2.png) [@neuberfran](https://hub.mender.io/u/neuberfran)\
**Post date:** [June 7, 2023, 7:05pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/4 "2023-06-07T19:05:50Z")

</div>

@drewmoseley I couldn’t find the moderator and I couldn’t change this topic to unresolved. I also couldn’t delete the topic where I mistakenly say that the topic is fully resolved, but it isn’t.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 7, 2023, 7:52pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/5 "2023-06-07T19:52:27Z")

</div>

@TheYoctoJester can you help here?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 7, 2023, 7:55pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/6 "2023-06-07T19:55:48Z")

</div>

Sure thing @drewmoseley.

@neuberfran I removed the “solved” mark. Note though that the post has no recognizable connection to Mender, so while I am okay with keeping it, please do not expect a lot of activity.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![neuberfran](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/neuberfran/32/369_2.png) [@neuberfran](https://hub.mender.io/u/neuberfran)\
**Post date:** [June 25, 2023, 8:31pm UTC](https://hub.mender.io/t/remoteproc-in-imx7d-pico-with-yocto-hardknott-a7-side-and-zephyr-m4-side/5840/7 "2023-06-25T20:31:01Z")

</div>

[![](https://img.youtube.com/vi/NFyEJXIpq4E/maxresdefault.jpg "Remoteproc in imx7d-pico (Ex Android Things) using Yocto-A7-Side and Zephyr-M4-Side.") ](https://www.youtube.com/watch?v=NFyEJXIpq4E)
