How to get Realtime Kernel

Hello, Could you please tell me how to build "preempt-rt” kernel to achieve realtime kernel?

Thank you.

1 Like

You can apply the RT patches yourself.

Thank you. could you please tell me the specific steps?

I quick google a documentation about this, hope it will help you.

hello, after patching, when I made kerne, I found the mistake:
in file included from ./include/linux/sched.h:62:0,
from arch/arm64/kernel/asm-offsets.c:21:
./include/linux/cgroup-defs.h:142:21: 错误: 字段‘destroy_swork’的类型不完全
struct swork_event destroy_swork;
^~~~~~~~~~~~~

its not easy problem to get RT kernel just apply some patches - if some kernel subsystem will work not as RT
for example some usb / WIFI / sound - drivers cant accept RT
and as result u still will have some lags and freezes in some cases

1 Like

Hello,we are mainly engaged in SPI communication, other parts can be sacrificed.