RPMSG does not work on IMX8M-Plus

Hi Takeo san, I’ll try to reproduce the issue next week. I’m having issues downloading the MCUXpresso SDK…

https://community.nxp.com/t5/i-MX-RT/Please-wait-for-the-Middleware-Selector-to-load/m-p/1309087#M15320

I will try again next week. Have a nice weekend.

Alvaro.

Hi again Takeo-san, I further checked and it seems that there is little implementation at the moment for Verdin iMX8M Mini and Plus for FreeRTOS… Our R&D department is currently checking with NXP to try to have everything ready while we are updating the documentation. I’m afraid this is going to take a few weeks/months to get everything ready. I’m sorry for the inconvenience. We will contact you with any further information.

Hi, Alvaro san, Thank you for the new information.

I’m afraid this is going to take a few weeks/months to get everything ready.

Oh, I see. I have to wait for a while :frowning:

Actually, I got IMX8MPlus-EVK from NXP the other day. so after checking the RPMSG, it was working without any problem. But I want to use your toradex evaluation board, so please informed me again once you have some updates.


Best regards, Takeo

Hi Takeo san, this is super informative for us. Thanks a lot for the feedback. I will inform my colleagues.

I hope these news can improve the implementation time and have it earlier. I will keep you posted.

Kind regards, Alvaro.

Hi Takeo san, could you post here the details of the BSP you used in NXP’s IMX8MPlus-EVK? We will probably use them as a reference for our device trees. Thanks in advance. Alvaro.

Hi, Alvaro san

could you post here the details of the BSP you used in NXP’s IMX8MPlus-EVK?

I inform you about some information.

①This is EVK Website. I have “8MPLUSLPD4-EVK”(Lot# BOTR212602).
iMX8M Plus EVK WebSite

②This is the device tree I used.
freescale-imx8mp-evk.7z (155.7 KB)

③This is the Linux boot log and FreeRTOS log.
Linux_BootLog.txt (49.5 KB)
FreeRTOS_Log.txt (153 Bytes)

④ BSP information
・imx-yocto-bsp
・repo init -u imx-manifest - i.MX Release Manifest -b imx-linux-hardknott -m imx-5.10.35-2.0.0.xml
・NXP i.MX Release Distro 5.10-hardknott
・DISTRO=fsl-imx-xwayland
・MACHINE=imx8mpevk

I hope that this piece of information will be of help to you.
Let me know if you need any additional information.

Kind regards, Takeo.

Thanks a lot Takeo san, we will keep you posted.

Hi @deepimpact Takeo san, sorry for the late update. Our BSP team managed to make RPMSG work. They’ve created a DTO based on the changes. Could you try this?

verdin-imx8mp_rpmsg_overlay.dts (1.8 KB)

In case you need some documentation to activate this: Device Tree Overlays (Linux)

Kindly let me know how this goes.
Alvaro.

Hi alvaro san. Thank you for contacting me.

Our BSP team managed to make RPMSG work.

That’s good to hear !!
I’ll try to use that dts file. I will contact you again when I know the result.

Thanks and regards, Takeo

Hi, alvaro san. I tried to use your dts file, but RPMSG did not work.
Perhaps there is something wrong with the way I am doing things. or Is linux kernel old ?

[Case1]
step1. repo init -u Index of /toradex-manifest.git -b dunfell-5.x.y -m tdxref/default.xml
step2. repo sync
step3. Convert verdin-imx8mp_rpmsg_overlay.dts to verdin-imx8mp_rpmsg_overlay.dtbo on host machine.
make_dtbo.sh (508 Bytes)
step4. Copy verdin-imx8mp_rpmsg_overlay.dtbo file to /boot/overlay directory.
step5. Edit the overlays.txt
overlays.txt (115 Bytes)
overlay_directory.txt (504 Bytes)
step6. reboot
boot-case1.log (43.9 KB)
cortex-m7.log (43 Bytes)

[Case2]
step1. repo init -u Index of /toradex-manifest.git -b dunfell-5.x.y -m tdxref/default.xml
step2. repo sync
step3. Edit ~/oe-core/layers/meta-toradex-nxp/conf/machine/verdin-imx8mp.conf.
Add verdin-imx8mp_rpmsg_overlay.dtb in KERNEL_DEVICETREE variable
step4. bitbake -c compile -f virtual/kernel
step5. bitbake -c deploy virtual/kernel
step6. bitbake tdx-reference-minimal-image
step7. Copy image to microSD
step8. boot
step9. In u-boot, setenv fdtfile “verdin-imx8mp_rpmsg_overlay.dtb”
boot.log (2.4 KB)

Best Regards, Takeo

Hi Takeo san, thanks for the feedback!

@gustavo.tx It seems the customer tried but it didn’t work. I think the Case 1 is the supported way of working but there is no /dev/ttyRPMSG

Can you check? Thanks a lot! :pray:

Hi Takeo-san,

I was checking the boot log and it looks strange that the
Applying Overlay: verdin-imx_rpmsg_overlay.dtbo
doesn’t have a X bytes read in Y ms (Z KiB/s) line.

Could it be that the DTBO is not correctly created? I’m not proficient in Bash so I’m not sure if your sh script is correct, but can you check? That is definitely strange :thinking:

For adding the overlay through Yocto (your case 2) is also a bit different in our documentation: Device Tree Overlays (Linux)

Also, in case 2, are you launching Toradex Easy Installer and installing the new image?

Alvaro.

Hi, Alvaro san.

Sorry. I was mistaken about overlays.txt.

Applying Overlay: verdin-imx_rpmsg_overlay.dtbo
doesn’t have a X bytes read in Y ms (Z KiB/s) line.

Invalid → verdin-imx_rpmsg_overlay.dtbo
Correct → verdin-imx8mp_rpmsg_overlay.dtbo

Then, Applying overlay message is here.

Applying Overlay: verdin-imx8mp_rpmsg_overlay.dtbo
2989 bytes read in 21 ms (138.7 KiB/s)

But finally, booting message is stopped.

printk: bootconsole [ec_imx6q0] disabled

boot.log (6.8 KB)


Also, in case 2, are you launching Toradex Easy Installer and installing the new image?

I don’t use Toradex Easy Installer.
I unzipped the new image (.wic.gz), then copied the new image(.wic) to microSD by Win32 Disk Imager free software.

Regards, Takeo.

Hi Takeo san, thanks for the update. Understood, that looks some conflict issue with the TTY driver. Hopefully @gustavo.tx can help us.

I don’t use Toradex Easy Installer.
I unzipped the new image ( .wic.gz), then copied the new image( .wic) to microSD by Win32 Disk Imager free software.

But are you booting from the SD card in that case? I didn’t see any indication it did but maybe I’m missing something.

Alvaro.

I am also very keen to get this working.
I just compiled your overlay and enabled it on a clean reference-minimal-image (I disabled the other 2 overlays which were enabled by default).
However this leads to a kernel panic during boot.
See attached logfile.toradex-minimal-with-rpmsg-overlay.log (23.8 KB)

@alvaro.tx @gustavo.tx
Can I provide further information to help you investigate this problem?
I tested on a Verdin iMX87M Plus Quad 2GB V1.0B / clean installed Toradex Minimal Reference Image.

Any help is very much appreciated.

Thanks @dpenning . I pinged @gustavo.tx yesterday and hopefully he can help us soon-ish. Please wait a little longer.

BTW if you disable the verdin-imx8mp_rpmsg_overlay.dtbo, the module boots, right? Just to confirm that you didn’t disable needed stuff.

Thanks for the quick feedback @alvaro.tx

Yes, the system boots fine when I disable the rpmsg overlay.

1 Like

Hi @deepimpact @dpenning it seems that there are some additional changes needed in the kernel as well: caam.patch (944 Bytes)

Also, please add the following in U-boot before running Linux:

setenv fdt_high 0xffffffffffffff
saveenv

Please try this and let me know how it goes.

Kind regards,
Alvaro.

1 Like

Greetings @deepimpact @dpenning,

I’m working on reproducing that and will update you accordingly.

1 Like