Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Lichee pi zero linux kernel

  1. #1

    Default Lichee pi zero linux kernel

    Hi to all, Im using tumbleweed to cross compile linux kernel to lichee pi zero board. I was able to compile u-boot but with the linux kernel I'm having some difficulties. I'm getting this error
    Code:
    CC      mm/page_alloc.o
    mm/page_alloc.c: In function ‘mem_init_print_info’:
    mm/page_alloc.c:7515:27:warning: comparison between two arrays [-Warray-compare]
     7515 |                 if (start <= pos && pos < end && size > adj) \
          |                           ^~
    mm/page_alloc.c:7519:9:note: in expansion of macro ‘adj_init_size
     7519 |         adj_init_size(__init_begin, __init_end, init_data_size,
          |         ^~~~~~~~~~~~~
    mm/page_alloc.c:7515:27:note: use ‘&__init_begin[0] <= &_sinittext[0]’ to compare the addresses
     7515 |                 if (start <= pos && pos < end && size > adj) \
          |                           ^~
    mm/page_alloc.c:7519:9:note: in expansion of macro ‘adj_init_size
     7519 |         adj_init_size(__init_begin, __init_end, init_data_size,
          |         ^~~~~~~~~~~~~
    mm/page_alloc.c:7515:41:warning: comparison between two arrays [-Warray-compare]
     7515 |                 if (start <= pos && pos < end && size > adj) \
          |                                         ^
    mm/page_alloc.c:7519:9:note: in expansion of macro ‘adj_init_size
     7519 |         adj_init_size(__init_begin, __init_end, init_data_size,
          |         ^~~~~~~~~~~~~
    mm/page_alloc.c:7515:41:note: use ‘&_sinittext[0] < &__init_end[0]’ to compare the addresses
     7515 |                 if (start <= pos && pos < end && size > adj) \
          |                                         ^
    mm/page_alloc.c:7519:9:note: in expansion of macro ‘adj_init_size
     7519 |         adj_init_size(__init_begin, __init_end, init_data_size,
          |         ^~~~~~~~~~~~~
    mm/page_alloc.c:7515:27:warning: comparison between two arrays [-Warray-compare]
     7515 |                 if (start <= pos && pos < end && size > adj) \
          |                           ^~
    mm/page_alloc.c:7521:9:note: in expansion of macro ‘adj_init_size
     7521 |         adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size);
          |         ^~~~~~~~~~~~~
          |         ^~~~~~~~~~~~~
    arm-linux-gnueabihf-gcc:fatal error: Terminado (killed) signal terminated program cc1
    compilation terminated.
    make[1]: *** [scripts/Makefile.build:279: mm/page_alloc.o] Error 1
    
    
    I really don't know how to solve it because I tried this:
    1) Increased swap memory
    2)increased RAM
    3)I checked and double check environment variables
    4)tried with Linaro
    5)used gcc gpp version 7, version 8 (missing version 9)
    Could someone point me to the right direction?
    Thanks
    Gastón

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    24,445
    Blog Entries
    1

    Default Re: Lichee pi zero linux kernel

    Moving this thread to the Development sub-forum.
    openSUSE Leap 15.4; KDE Plasma 5

  3. #3
    Join Date
    Sep 2012
    Posts
    8,262

    Default Re: Lichee pi zero linux kernel

    Quote Originally Posted by GastonRafaelMelo View Post
    Code:
    arm-linux-gnueabihf-gcc:fatal error: Terminado (killed) signal terminated program cc1
    compilation terminated.
    make[1]: *** [scripts/Makefile.build:279: mm/page_alloc.o] Error 1
    
    
    Reboot, start kernel compilation and if it fails again, provide full output of "journalctl -b" (upload to https://susepaste.org)

  4. #4

    Default Re: Lichee pi zero linux kernel

    Im steel getting this error
    Code:
    • arm-linux-gnueabihf-gcc: fatal error: Terminado (killed) signal terminated program cc1
    • compilation terminated.
    • make[1]: *** [scripts/Makefile.build:278: mm/page_alloc.o] Error 1
    Im using this page as reference https://zee2.github.io/2020/01/18/licheepi-zero/
    I already install gcc7 and g++7 (missing gcc9 and g++9). I already increase swap and RAM memory. I can compile U-Boot but I'm unable to cross compile the linux for lichee pi zero .
    Gastón
    PS: arvidjaar there is a lot of data in there. I will reboot, compile kernel and share link

  5. #5

    Default Re: Lichee pi zero linux kernel

    Im getting this:

    Code:
    ago 23 12:46:40 linux-70ew kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-429fdb1a336f4f0d9efd6>
    ago 23 12:46:40 linux-70ew kernel: Out of memory: Killed process 11619 (cc1) total-vm:36259240kB, anon-rss:6291824kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:70752kB oom_score_adj:200
    
    out of memory?? How much memory for kernel compilation??
    Gastón

  6. #6
    Join Date
    Sep 2012
    Posts
    8,262

    Default Re: Lichee pi zero linux kernel

    Quote Originally Posted by GastonRafaelMelo View Post
    out of memory??
    You still did not provide requested information.

  7. #7

    Default Re: Lichee pi zero linux kernel

    https://susepaste.org/89614223
    link to sudo journalctl -b.
    Gastón


  8. #8
    Join Date
    Sep 2012
    Posts
    8,262

    Default Re: Lichee pi zero linux kernel

    Well, when I try to follow steps on page you mentioned it fails at compiling DTD with yylloc redefinition (which appears to be quite popular on ARM platforms). So you probably need to provide more details to allow anyone to (try to) reproduce it. What compiler are you using, where it comes from, how you installed it, how you managed to get past yylloc error etc. Both for host and cross compilers. It does sound like compiler issue, but to make bug report you need to provides exact steps to reproduce it.
    Code:
    ...
      HOSTCC  scripts/dtc/dtc.o
      HOSTCC  scripts/dtc/flattree.o
      HOSTCC  scripts/dtc/fstree.o
      HOSTCC  scripts/dtc/data.o
      HOSTCC  scripts/dtc/livetree.o
      HOSTCC  scripts/dtc/treesource.o
      HOSTCC  scripts/dtc/srcpos.o
      HOSTCC  scripts/dtc/checks.o
      HOSTCC  scripts/dtc/util.o
      LEX     scripts/dtc/dtc-lexer.lex.c
      YACC    scripts/dtc/dtc-parser.tab.h
      HOSTCC  scripts/dtc/dtc-lexer.lex.o
      YACC    scripts/dtc/dtc-parser.tab.c
      HOSTCC  scripts/dtc/dtc-parser.tab.o
      HOSTLD  scripts/dtc/dtc
    /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x20): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
    collect2: error: ld returned 1 exit status
    make[2]: *** [scripts/Makefile.host:99: scripts/dtc/dtc] Error 1

  9. #9

    Default Re: Lichee pi zero linux kernel

    Thanks for your quick reply, here are some link to solve this "multiple definition of `yylloc' https://github.com/BPI-SINOVOIP/BPI-M4-bsp/issues/4 https://www.soughttech.com/front/art...85/viewArticle

    in dtc-lexer.l I modify the code with :

    extern YYLTYPE yylloc;
    extern bool treesource_error;


    in dtc_parser.tab.h I modify the code with:

    extern YYSTYPE yylval;
    extern YYLTYPE yylloc;




    I download Linaro gcc-linaro-13.0.0-2022.08-x86_64_arm-linux-gnueabihf and include the path
    version of gcc and g++ installed:

    Code:
      
      0            /usr/bin/g++-7    50        auto mode
      1            /usr/bin/g++-12   2         manual mode
    

    Code:
      
      1            /usr/bin/gcc-12   2         manual mode
    * 2            /usr/bin/gcc-7    1         manual mode
    


    I was able to compiled U-Boot without any problems. But for linux kernel for the lichee pi zero always got the out of memory error. I was trying to get the gcc9 and g++9 for opensuse but is only experimental.
    Thanks
    Gastón

  10. #10

    Default Re: Lichee pi zero linux kernel

    I'm getting this error now:

    Code:
    Error: ./include/dt-bindings/input/linux-event-codes.h:1.1-3 syntax error
    FATAL ERROR: Unable to parse input tree
    make[1]: *** [scripts/Makefile.lib:311: arch/arm/boot/dts/sun8i-a23-evb.dtb] Error 1
    make: *** [Makefile:1260: dtbs] Error 2
    make: *** Se espera a que terminen otras tareas....
      HOSTCC  scripts/sortextable
      HOSTCC  scripts/asn1_compiler
      HOSTCC  scripts/extract-cert
    scripts/extract-cert.c: In function ‘display_openssl_errors’:
    scripts/extract-cert.c:46:2:warning: ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
      while ((e = ERR_get_error_line(&file, &line))) {
      ^~~~~
    In file included from scripts/extract-cert.c:23:0:
    /usr/include/openssl/err.h:411:15:note: declared here
     unsigned long ERR_get_error_line(const char **file, int *line);
                   ^~~~~~~~~~~~~~~~~~
    scripts/extract-cert.c: In function ‘drain_openssl_errors’:
    scripts/extract-cert.c:59:2:warning: ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
      while (ERR_get_error_line(&file, &line)) {}
      ^~~~~
    In file included from scripts/extract-cert.c:23:0:
    /usr/include/openssl/err.h:411:15:note: declared here
     unsigned long ERR_get_error_line(const char **file, int *line);
                   ^~~~~~~~~~~~~~~~~~
    scripts/extract-cert.c: In function ‘main’:
    scripts/extract-cert.c:124:3:warning: ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
       ENGINE_load_builtin_engines();
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from scripts/extract-cert.c:24:0:
    /usr/include/openssl/engine.h:358:28:note: declared here
     OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    scripts/extract-cert.c:126:3:warning: ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
       e = ENGINE_by_id("pkcs11");
       ^
    In file included from scripts/extract-cert.c:24:0:
    /usr/include/openssl/engine.h:336:31:note: declared here
     OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
                                   ^~~~~~~~~~~~
    scripts/extract-cert.c:128:3:warning: ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
       if (ENGINE_init(e))
       ^~
    In file included from scripts/extract-cert.c:24:0:
    /usr/include/openssl/engine.h:620:27:note: declared here
     OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
                               ^~~~~~~~~~~
    scripts/extract-cert.c:133:4:warning: ENGINE_ctrl_cmd_string’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
        ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
        ^~~
    In file included from scripts/extract-cert.c:24:0:
    /usr/include/openssl/engine.h:479:5:note: declared here
     int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
         ^~~~~~~~~~~~~~~~~~~~~~
    scripts/extract-cert.c:134:3:warning: ENGINE_ctrl_cmd’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
       ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
       ^~~~~~~~~~~~~~~
    In file included from scripts/extract-cert.c:24:0:
    /usr/include/openssl/engine.h:450:27:note: declared here
     OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
    
    
    whay "deprecated: Since OpenSSL 3.0"? how can I fix this??

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •