Beginning with the Bookworm OS, it is now possible to easily install a real-time kernel to a ComfilePi panel PC. Simply follow the following procedure:
sudo apt update followed by sudo apt full-upgrade to ensure you've updated your software packages to the latest releases.sudo apt install linux-image-rpi-v8-rt to install the real-time kernel package.kernel=kernel8_rt.img and arm_64bit=1 to the /boot/firmware/config.txt file.uname -a and ensure it outputs “PREEMPT_RT”. If it does, the ComfilePi panel PC is running the real-time kernel.
To switch back to the ordinary kernel, simply comment out the kernel=kernel8_rt.img line in the /boot/firmware/config.txt file.
To better utilize the features of the real-time kernel in your solution, see improving real-time performance.