Yes, it can. ISTR there is a branch in our kernel repo specifically for the RT patches.The Traveler wrote: ↑Fri Jun 15, 2018 2:55 pmBack in the old days, we compiled the linux kernel for real time. This usually meant activating the PREEMPT_RT patch code during a kernel configuration session, recompiling the kernel and installing it. You can find some general aspects here: https://www.linuxfoundation.org/blog/in ... evelopers/
I don't know if the ARM kernel can be compiled this way.
Ah, good to know, thanks.Yes, it can. ISTR there is a branch in our kernel repo specifically for the RT patches.
For real Stepper motor gadgets I use the Hybrid stepper motors, 17, 23 or 34 size with proper step/direction drivers 24VDC+.I think you are correct, provided that you use a stepper driver which takes step/direction inputs rather than raw waveforms (with raw waveforms you'd need both channels just to provide simple quadrature for a single motor).
Code: Select all
#include <sched.h> int prio = sched_get_priority_max(SCHED_FIFO); struct sched_param param; param.sched_priority = prio; sched_setscheduler(0,SCHED_FIFO,¶m); // This permits realtime processes to use 100% of a CPU, but on a // RPi that starves the kernel. Without this there are latencies // up to 50 MILLISECONDS. system("echo -1 >/proc/sys/kernel/sched_rt_runtime_us");