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

neuberfran
Fri, 12 May 2023 15:07:01 +0000
General Discussions

Hi,

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

Yocto kikstone (A7-Side) And FreeRTOS(M4-Side) - RPMsg in imx7d-pico - U-boot 2022.04 Customized

RPMsg in imx7d-pico (Ex Android Things) using Yocto Hardknott(Linux-A7-Side) And FreeRTOS(M4-Side)

imx7d-pico: splash screen (bmp file) didn't appear boot. Now solved

imx7d-pico - issue with u-boot and splash screen

imx7d-pico: splash screen (bmp file) not appear in boot

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

2. Remoteproc Api:
https://www.kernel.org/doc/Documentation/remoteproc.txt

3. Current status of the zephyr.elf build project on github:
GitHub - neuberfran/pico_pi_m4

6 posts - 3 participants