Jump to content
Sign in to follow this  
Suleyman Poyraz

I want to compile RT Kernel for Tinkerboard2

Recommended Posts

Hello.
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:

```

 UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
  UPD     include/generated/timeconst.h
  CC      arch/arm64/kernel/asm-offsets.s
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'?
  current->sleeping_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'?
  current->sleeping_lock--;
         ^~
In file included from ./include/linux/cgroup.h:28:0,
                 from ./include/linux/perf_event.h:57,
                 from ./include/kvm/arm_pmu.h:21,
                 from ./arch/arm64/include/asm/kvm_host.h:42,
                 from ./include/linux/kvm_host.h:39,
                 from arch/arm64/kernel/asm-offsets.c:25:
./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[1]: *** [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?

patch.log

Share this post


Link to post
Share on other sites

And also I want to compile image for Tinkerboard2. As I understand, I need to use TinkerBoard2/debian (github.com) bug at the end of the 

./mk-base-debian.sh

command. I take this error:

```

Failed to run livebuild, please check your network connection.

```

Detailed issue in there: mk-base-debian.sh Network Connection error · Issue #2 · TinkerBoard2/debian (github.com) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...