A couple of years ago I used the Pi as a soft PLC in which you could apply an rt-preempt patch to the kernel to reduce jitter. I remember that Edwin also made a short post on how to do this. Is there still a quick way to patch a kernel for a Raspi 3B? Or do I really have to build a kernel?
Thanks!
Carsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could use Debian image.
In Debian repo you can find RT PREEMPT precompiled path.
Tuning kernel cmdline using CPU pinning and using a fixed pinning on codesys task make possible a jitter <30us on a PI4.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$unxz20220121_raspi_2_bullseye.img.xz$sudolosetup-Pf20220121_raspi_2_bullseye.img$sudomount/dev/loop24p2/mnt$cd/mnt/etc/apt$catsources.listdebhttp://deb.debian.org/debianbullseyemaincontribnon-freedebhttp://security.debian.org/debian-securitybullseye-securitymaincontribnon-free# Backports are _not_ enabled by default.# Enable them by uncommenting the following line:# deb http://deb.debian.org/debian bullseye-backports main contrib non-free
I tried very hard to get Raspberry working with RT PREEMPT Kernel,
But still i cannot get it working. Is there someone who can provide a Image for Raspberry 3b or 4(4gb)
Thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
A couple of years ago I used the Pi as a soft PLC in which you could apply an rt-preempt patch to the kernel to reduce jitter. I remember that Edwin also made a short post on how to do this. Is there still a quick way to patch a kernel for a Raspi 3B? Or do I really have to build a kernel?
Thanks!
Carsten
You could use Debian image.
In Debian repo you can find RT PREEMPT precompiled path.
Tuning kernel cmdline using CPU pinning and using a fixed pinning on codesys task make possible a jitter <30us on a PI4.
Thanks for your comment. Do you have link for the debian repo?
https://wiki.debian.org/RaspberryPi4
Thanks. I went through it but only saw standard builds (tested). Could you point me to the precompiled images with preempt-rt patch?
I searched again!
RPI 2 is supported in debian with
linux-image-rt-armmp in 32 bits arch
RPI 3 I cannot find info
RPI 4 apparently only in 64 bits linux-image-rt-arm64 (Tested by me in debian daily build) and CODESYS for arm at 64 bits
Last edit: mondinmr 2022-04-19
I just mounted a PI2 image:
Enable those repo in raspbian than:
NEVER DO apt-get upgrade!!!!
Remove repos before!!!
In a Raspberry PI 4 64bit it worked for me, but now I'm switching to a my distro built with YOCTO.
Hello,
I tried very hard to get Raspberry working with RT PREEMPT Kernel,
But still i cannot get it working. Is there someone who can provide a Image for Raspberry 3b or 4(4gb)
Thanks a lot!