Enabling Real-Time Processing on i.MX8M Products: A Practical Guide

Slide Note
Embed
Share

This guide covers the process of enabling RT_PREEMPT feature on i.MX8M family products to support real-time processing requirements. It includes steps for applying patches, compiling from source code, testing with tools like cyclictest, and references to necessary software and hardware resources from NXP. The guide also emphasizes the importance of testing latency and conducting real-time tasks in a Linux environment.


Uploaded on Jul 19, 2024 | 3 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Enable Linux RT_PREEMPT on i.MX8M Products FUZHEN LIN APRIL 2021 COVER PAGE SUBTITLE PLACEHOLDER COMPANY CONFIDENTIAL

  2. Feature Introduction Back Ground Linux kernel is not real time OS, while some applications is time sensitive tasks running in Linux environment, this request to extend the real time feature in common Linux kernel, and RT_PREEMPT is one of the methods to enable Linux kernel with real time processing requirement. But RT_PREEMPT is not accepted by kernel, so it needs extra effort to porting this patch-set to i.MX8M family products. Requirement This patch-set is based on L4.14.78 for i.MX8M products, customer need to apply patches based on this release. Enablement Customer need to prepare L4.14.78 environment, and then apply these patch-set, then do the latency test or other realtime tasks test. 1 CONFIDENTIAL AND PROPRIETARY

  3. Feature Enablement Guide Apply patches and Compile from Source Code $cd ${YOUR_KERNEL_PATH} and copy the RT patches to the kernel path $git am LinuxRT_patches_4.14.78/*.patch Then rebuild the kenrel $bitbake c f compile linux $bitbake c deploy linux Note: the new image could be found at your yacto build folder: tmp/deploy/images/imx8mm/ How To Test with Linux RT_PREEMPT A simple tool to test the latency is cyclictest, the source code could be found on github You can build with cross-compile tool chain, and then copy to the target board, then run the cyclictest. For example: $./ cyclictest -p 90 - m -c 0 -i 200 -n -h 100 -q -l 1000000 2 CONFIDENTIAL AND PROPRIETARY

  4. User Guide Name of Document URL Readme.txt Linux RT patch test on i.MX8MM.docx 3 CONFIDENTIAL AND PROPRIETARY

  5. Software Source Code URL 0001-Apply-4.14.78-rt-patches.patch 0002-change-for-RT-linux.patch 4 CONFIDENTIAL AND PROPRIETARY

  6. Products (Optional) Product Category MPU NXP Part Number URL i.MX 8M Mini https://www.nxp.com/products/processors- and-microcontrollers/arm-processors/i-mx- applications-processors/i-mx-8-processors/i- mx-8m-mini-arm-cortex-a53-cortex-m4- audio-voice-video:i.MX8MMINI MPU i.MX 8M Plus https://www.nxp.com/products/processors- and-microcontrollers/arm-processors/i-mx- applications-processors/i-mx-8-processors/i- mx-8m-plus-arm-cortex-a53-machine- learning-vision-multimedia-and-industrial- iot:IMX8MPLUS Linux BSP software Embedded Linux for i.MX Applications Processors https://www.nxp.com/design/software/embed ded-software/i-mx-software/embedded-linux- for-i-mx-applications-processors:IMXLINUX 5 CONFIDENTIAL AND PROPRIETARY

  7. Tools (Optional) NXP Development Board i.MX 8M Mini EVKB URL https://www.nxp.com/design/development- boards/i-mx-evaluation-and-development- boards/evaluation-kit-for-the-i-mx-8m-mini- applications-processor:8MMINILPD4-EVK i.MX 8M Plus EVK https://www.nxp.com/design/development- boards/i-mx-evaluation-and-development- boards/evaluation-kit-for-the-i-mx-8m-plus- applications-processor:8MPLUSLPD4-EVK 6 CONFIDENTIAL AND PROPRIETARY

  8. Contact Information Provide the name, email address of the CAS interface, solution contributors NXP FAE Fuzhen Lin 7 CONFIDENTIAL AND PROPRIETARY

Related


More Related Content