meta-plcos
Yocto/Bitbake layer for building PLC-OS images
PLC-OS is a project to make an open-source Operating System emphasizing real-time performance (low-jitter, reliable latency) for time-sensitive tasks, such as machine control.
Please see the corresponding sections below for details.
Dependencies
URI: meta-plcopen branch: main
Patches
Please submit any patches against the meta-plcos layer to the Issues section on the git repository on which this project is hosted. Additionally, please e-mail the maintainer for a faster response:
Maintainer: Vaughn Varma vaughnvarma+plcos@gmail.com
Table of Contents
I. Adding the meta-plcos layer to your build II. AI Notice III. Misc
I. Adding the meta-plcos layer to your build
Run 'bitbake-layers add-layer meta-plcos'
II. AI Notice
The maintainer of this project kindly requests that you not use an LLM (or any other generative AI) in any capacity in your interactions with this project. This includes, but is not limited to, the following:
Training any LLM on the data in this repository, i.e. scraping Asking an LLM to modify any files within, or in any other way, to contribute to, this project Integrating an LLM into a system running PLC-OS, or otherwise shipping an LLM alongside PLC-OS Deriving a version of this project (e.g. forking) in order to allow an LLM to interact with this project
III. Misc
PLC-OS is derived from Yocto Linux, and as such uses Bitbake to build both installer (.iso) and direct boot (.wic) images. The following architectures have been nominally tested: Intel x86 Generic x86 64 bit ARM (specifically, Raspberry Pi 4*)
*Testing on the Raspberry Pi 5 revealed latency behavior indicative of a non-realtime system; further testing and OS modification are required to ensure reasonable realtime performance. Until this time, it is recommended to avoid using the Raspberry Pi 5 with PLC-OS for real-time tasks.
Real-time performance will depend on factors beyond just the CPU architecture, and so it is ultimately up to user to test any given hardware system with PLC-OS to verify the suitability of said system for the user's needs.
The Preempt-RT patch was brought into the mainline linux kernel, but simply using a compatible kernel with full preemption enabled is not enough for reliable performance. Additional optimizations include, but are not limited to, the following:
I. Core Isolation II. IRQ Reassignment
Even with these modifications, in its current state, PLC-OS can only reasonably be considered a "Soft" real-time OS, and is not suitable for applications with "Hard" real-time requirements or constraints.
PLC-OS builds with PLCOpen v4 (not to be confused with OpenPLC), an open-source runtime environment for running PLC logic, and so this layer must also be included, unless it is removed from the list of packages to install.