Files
2026-10-09 11:35:17 -04:00

4.7 KiB

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

layer: 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. Current Status III. AI Notice IV. Misc

I. Adding the meta-plcos layer to your build

Run 'bitbake-layers add-layer meta-plcos'

II. Current Status

This project has build files for a handful of architectures and bootloader configurations.

The goal is ultimately to have broad device support, however currently only a couple configurations are actually working. The following configurations are planned or implemented to some degree

config name architecture manufacturer bootloader status
intel-x86 x86-64 intel UEFI working
x86 x86-64 any UEFI working
x86-eboot x86-64 any EBoot* not implemented
arm-uefi aarch64 any UEFI** untested
arm-uboot aarch64 any U-Boot unfinished
arm-eboot aarch64 any EBoot* unfinished
sunxi aarch64 allwinner U-Boot unfinished
rpi*** aarch64 Raspberry Pi U-Boot working

*These bootloaders are designed to boot straight to Windows Embedded from ROM, so we need to do some trickery to chainload U-Boo t **Very few aarch64 devices ship with UEFI, though several make it possible to manually flash UEFI firmware (e.g. TianoCore EDK II). This may be a viable option for devices which allow bootloader flashing but, for one reason or another, don't work with other images

*** Currently Raspberry Pi 4 and 5 both boot; no other compatible device has been tested yet. the Pi 5 has some runaway latency that has not yet been corrected, and so currently the Pi 4 is the only device confirmed to have suitable performance for any real-time task using PLC-OS

III. 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

IV. 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.