iMX8 Yocto image with PREEMPT RT


I would like to ask, is it possible in the current toradex yocto platform for iMX8QM to build a linux with PREEMPT RT patch directly?
I already added in the local.conf file in yocto

PREFERRED_PROVIDER_virtual/kernel = "linux-toradex-rt"

The image builds without errors, but after flashing it on the iMX8, it shows that it doesnt have RT patch.

Best regards,

Hi @majd.m

Thanks for writing to the Toradex Community!

Which OpenEmbedded branch did you compile?
Have you done any other changes to local.conf? If yes, could you share these changes?

Best regards,

Hi @jaski.tx,

Thank you for the quick response,
The OpenEmbedded branch is thud.
The other local.conf is just some qt libraries.

MAGE_INSTALL_append = " qtquickcontrols qtquickcontrols2 qtwebsockets qtdeclarative qtwayland"
IMAGE_INSTALL_append = " libwebsockets"

the image is built with qt: “qt5-x11-image”

Best regards, Majd

Hi @majd.m

You can basically just switch the DISTRO_mx8 to tdx-xwayland-rt. I did following changes to the conf/local.conf:

# Use this distro
DISTRO = "tdx-x11"
#DISTRO_mx8 = "tdx-xwayland"
DISTRO_mx8 = "tdx-xwayland-rt"


After that, I was able to build the image with bitbake -k qt5-x11-image.

Kind regards

Thank you. Seem to be working. I will test the image soon.

You are welcome. Thanks for your feedback.