Jump to content

Suleyman Poyraz

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by Suleyman Poyraz


  1. 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


  2. Hi, While I try to install some new packages I get broken dependency error. Output is turkish but all about the broken packages:

    ```

    Paket listeleri okunuyor... Bitti
    Bağımlılık ağacı oluşturuluyor       
    Durum bilgisi okunuyor... Bitti      
    Bazı paketler kurulamadı. Bu durum, olanaksız bir durum istemiş
    olduğunuzu ya da kararsız (unstable) dağıtımı kullandığınızı ve
    bazı paketlerin henüz oluşturulamamış  ya da oluşturulmakta
    olduğunu gösterir.
    Aşağıdaki bilgiler durumu çözmenize yardımcı olabilir:

    Aşağıdaki paketler karşılanmamış bağımlılıklara sahip:
     libgtk-3-dev : Bağımlılıklar: libatk-bridge2.0-dev ama kurulmayacak
                    Bağımlılıklar: libatk1.0-dev (>= 2.15.1) ama kurulmayacak
                    Bağımlılıklar: libcairo2-dev (>= 1.14.0) ama kurulmayacak
                    Bağımlılıklar: libgdk-pixbuf2.0-dev (>= 2.30.0) ama kurulmayacak
                    Bağımlılıklar: libglib2.0-dev (>= 2.49.4) ama kurulmayacak
                    Bağımlılıklar: libpango1.0-dev (>= 1.41) ama kurulmayacak
    E: Sorunlar giderilemedi, tutulan bozuk paketleriniz var.
    ```

     

    Probably you patched packages for providing hardware acceleration. But all of this stuff broke all system. It is nearly useless while I try to build opencv from source code.

    Is there any chance to fix it. 

     

    Bests.


  3. I'm working on Tinkerboard 2 and most of the dependencies are broken. I cannot build opencv from source due to lack of some dependencies. It is necessary that a newer version of TinkerOS need.

     

    Is there any plan for Buster images? Or could we create images using uboot and kernel provided in https://github.com/Tinkerboard2 Is there any source to create images from this sources

×
×
  • Create New...