I need RT linux for my project. So, I'm trying to compile a base image for Tinkerboard2 with RT patches. As I look to TinkerBoard2/kernel (github.com) , it is 4.19.193 but appling related patch https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.193-rt81.patch.xz is not succeed.
look output: patch.log
When I pass the this step, I got error:
In file included from arch/arm64/kernel/asm-offsets.c:22:0:
./include/linux/sched.h: In function 'sleeping_lock_inc':
./include/linux/sched.h:1974:9: error: 'struct task_struct' has no member named 'sleeping_lock'; did you mean 'pi_lock'?
./include/linux/sched.h: In function 'sleeping_lock_dec':
./include/linux/sched.h:1979:9: error: 'struct task_struct' has no member named 'sleeping_lock'; did you mean 'pi_lock'?
In file included from ./include/linux/cgroup.h:28:0,
./include/linux/cgroup-defs.h: At top level:
./include/linux/cgroup-defs.h:168:21: error: field 'destroy_swork' has incomplete type
struct swork_event destroy_swork;
In file included from arch/arm64/kernel/asm-offsets.c:36:0:
arch/arm64/kernel/asm-offsets.c: In function 'main':
././include/linux/compiler_types.h:255:35: error: 'struct thread_info' has no member named 'preempt_lazy_count'; did you mean 'preempt_count'?
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
./include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
./include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
arch/arm64/kernel/asm-offsets.c:45:31: note: in expansion of macro 'offsetof'
DEFINE(TSK_TI_PREEMPT_LAZY, offsetof(struct task_struct, thread_info.preempt_lazy_count));
make: *** [Kbuild:56: arch/arm64/kernel/asm-offsets.s] Error 1
make: *** [Makefile:1245: prepare0] Error 2
Is there any way to compile RT linux kernel or build newer kernel releases with RT Patches?