Jump to content

shaddow501

Members
  • Posts

    80
  • Joined

  • Last visited

Posts posted by shaddow501

  1. Hello

     

    After spending hours of trying to create an older DEV kernel (5.1.21) here are the following steps in order that it will work.

    I will describle here about the 5.1.21 kernel but I think it can work for any kernel.

     

    1. create lib.config file under build/userpatches with the following: KERNELBRANCH='branch:orange-pi-5.1'

    2. And this is what create the magic:

    download the Armbian files that matches that distribution and replace all the files in the build directory:

    for example I have downloaded from here - This link is the build version from the branch of the 5.1.:

     

    https://github.com/FireflyTeam/armbian-build/tree/e79c54c73b04ca1354a189477374bd02113553b5

     

    replace all the files in the build folder and build your kernel for example:

     

    BOARD=bananapim64 BRANCH=dev RELEASE=bionic BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no (CREATE_PATCHES=yes/no depends on your needs)

     

    And now the compiler finish the build without any issue and create a working image.

     

     

    It could be that not all the files that I have described in section "2" are needed, but lack of support, answers  and directions I have no idea which are the files that are needed, so replaced them all.

     

     

     

    Tested and working.

     

    NOTE: Without downloading the matching build environment the process fail and no working image is created, although it create an image but the image fail to load, also it doesnt create the "dtb"  package.

     

    Good Luck.

     

     

  2. On 2/11/2020 at 11:50 PM, martinayotte said:

    Go inside your 5.1.15 tree, check the beginning of the Makefile to verify the version, you should have :

    
    VERSION = 5
    PATCHLEVEL = 1
    SUBLEVEL = 15

    Then you can rebuild it using those commands :

    
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" oldconfig
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" Image modules
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" INSTALL_PATH=$PWD/output  install
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" INSTALL_MOD_PATH=$PWD/output modules_install
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" INSTALL_HDR_PATH=$PWD/output headers_install
    make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" INSTALL_DTBS_PATH=$PWD/output/dtb dtbs

    Kernel files will be produced in "output" folder.

    When trying to compile the debs file using the debug switch I get those errors.

     

     

    sudo make -j4 ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" INSTALL_DTBS_PATH=$PWD/output/dtb dtbs --debug
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File 'dtbs' does not exist.
       File 'prepare3' does not exist.
           File 'FORCE' does not exist.
          Must remake target 'FORCE'.
          Successfully remade target file 'FORCE'.
         Prerequisite 'FORCE' of target 'include/config/kernel.release' does not exist.
        Must remake target 'include/config/kernel.release'.
       File 'scripts_dtc' does not exist.
         File 'scripts_basic' does not exist.
        Must remake target 'scripts_basic'.
      File 'prepare3' does not exist.
      File 'scripts_dtc' does not exist.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
         File 'FORCE' does not exist.
        Must remake target 'FORCE'.
        Successfully remade target file 'FORCE'.
       Prerequisite 'FORCE' of target 'scripts/basic/fixdep' does not exist.
      Must remake target 'scripts/basic/fixdep'.
      Successfully remade target file 'scripts/basic/fixdep'.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     File 'dtbs' does not exist.
       File 'prepare3' does not exist.
       File 'scripts_dtc' does not exist.
      Must remake target 'scripts_dtc'.
      File 'prepare3' does not exist.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
         File 'FORCE' does not exist.
        Must remake target 'FORCE'.
        Successfully remade target file 'FORCE'.
         Prerequisite 'FORCE' of target 'scripts/dtc/dtc.o' does not exist.
        Must remake target 'scripts/dtc/dtc.o'.
        Successfully remade target file 'scripts/dtc/dtc.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/flattree.o' does not exist.
        Must remake target 'scripts/dtc/flattree.o'.
        Successfully remade target file 'scripts/dtc/flattree.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/fstree.o' does not exist.
        Must remake target 'scripts/dtc/fstree.o'.
        Successfully remade target file 'scripts/dtc/fstree.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/data.o' does not exist.
        Must remake target 'scripts/dtc/data.o'.
        Successfully remade target file 'scripts/dtc/data.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/livetree.o' does not exist.
        Must remake target 'scripts/dtc/livetree.o'.
        Successfully remade target file 'scripts/dtc/livetree.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/treesource.o' does not exist.
        Must remake target 'scripts/dtc/treesource.o'.
        Successfully remade target file 'scripts/dtc/treesource.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/srcpos.o' does not exist.
        Must remake target 'scripts/dtc/srcpos.o'.
        Successfully remade target file 'scripts/dtc/srcpos.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/checks.o' does not exist.
        Must remake target 'scripts/dtc/checks.o'.
        Successfully remade target file 'scripts/dtc/checks.o'.
         Prerequisite 'FORCE' of target 'scripts/dtc/util.o' does not exist.
        Must remake target 'scripts/dtc/util.o'.
        Successfully remade target file 'scripts/dtc/util.o'.
           Prerequisite 'FORCE' of target 'scripts/dtc/dtc-lexer.lex.c' does not exist.
          Must remake target 'scripts/dtc/dtc-lexer.lex.c'.
          Successfully remade target file 'scripts/dtc/dtc-lexer.lex.c'.
           Prerequisite 'FORCE' of target 'scripts/dtc/dtc-parser.tab.h' does not exist.
          Must remake target 'scripts/dtc/dtc-parser.tab.h'.
          Successfully remade target file 'scripts/dtc/dtc-parser.tab.h'.
         Prerequisite 'FORCE' of target 'scripts/dtc/dtc-lexer.lex.o' does not exist.
        Must remake target 'scripts/dtc/dtc-lexer.lex.o'.
        Successfully remade target file 'scripts/dtc/dtc-lexer.lex.o'.
           Prerequisite 'FORCE' of target 'scripts/dtc/dtc-parser.tab.c' does not exist.
          Must remake target 'scripts/dtc/dtc-parser.tab.c'.
          Successfully remade target file 'scripts/dtc/dtc-parser.tab.c'.
         Prerequisite 'FORCE' of target 'scripts/dtc/dtc-parser.tab.o' does not exist.
        Must remake target 'scripts/dtc/dtc-parser.tab.o'.
     File 'dtbs' does not exist.
       File 'prepare3' does not exist.
      Must remake target 'prepare3'.
      Successfully remade target file 'prepare3'.
        Successfully remade target file 'scripts/dtc/dtc-parser.tab.o'.
       Prerequisite 'FORCE' of target 'scripts/dtc/dtc' does not exist.
      Must remake target 'scripts/dtc/dtc'.
      Successfully remade target file 'scripts/dtc/dtc'.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     File 'dtbs' does not exist.
    Must remake target 'dtbs'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
       File 'arch/arm64/boot/dts/actions' does not exist.
      Must remake target 'arch/arm64/boot/dts/actions'.
       File 'arch/arm64/boot/dts/al' does not exist.
      Must remake target 'arch/arm64/boot/dts/al'.
       File 'arch/arm64/boot/dts/allwinner' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner'.
       File 'arch/arm64/boot/dts/altera' does not exist.
      Must remake target 'arch/arm64/boot/dts/altera'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
       File 'arch/arm64/boot/dts/amd' does not exist.
    GNU Make 4.1
      Must remake target 'arch/arm64/boot/dts/amd'.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/amlogic' does not exist.
      Must remake target 'arch/arm64/boot/dts/amlogic'.
       File 'arch/arm64/boot/dts/apm' does not exist.
      Must remake target 'arch/arm64/boot/dts/apm'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
         File 'FORCE' does not exist.
        Must remake target 'FORCE'.
        Successfully remade target file 'FORCE'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dtb'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dtb'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dtb'.
       File 'arch/arm64/boot/dts/arm' does not exist.
      Must remake target 'arch/arm64/boot/dts/arm'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dtb'.
       File 'arch/arm64/boot/dts/bitmain' does not exist.
      Must remake target 'arch/arm64/boot/dts/bitmain'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dtb'.
    GNU Make 4.1
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dtb'.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus.dtb'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus-v1.2.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus-v1.2.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-bananapi-m2-plus-v1.2.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h3-cc.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h3-cc.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h3-cc.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dtb' does not exist.
    Updating goal targets....
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dtb'.
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dtb'.
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dtb'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dtb'.
       File 'arch/arm64/boot/dts/broadcom' does not exist.
      Must remake target 'arch/arm64/boot/dts/broadcom'.
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dtb' does not exist.
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dtb'.
       File 'arch/arm64/boot/dts/cavium' does not exist.
      Must remake target 'arch/arm64/boot/dts/cavium'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dtb'.
       Prerequisite 'FORCE' of target 'arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dtb' does not exist.
    GNU Make 4.1
      Must remake target 'arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dtb'.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
      Successfully remade target file 'arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dtb'.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/exynos' does not exist.
      Must remake target 'arch/arm64/boot/dts/exynos'.
    GNU Make 4.1
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
       File 'arch/arm64/boot/dts/freescale' does not exist.
      Must remake target 'arch/arm64/boot/dts/freescale'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Updating goal targets....
     File '__build' does not exist.
       File 'arch/arm64/boot/dts/broadcom/northstar2' does not exist.
      Must remake target 'arch/arm64/boot/dts/broadcom/northstar2'.
       File 'arch/arm64/boot/dts/hisilicon' does not exist.
      Must remake target 'arch/arm64/boot/dts/hisilicon'.
    Reading makefiles...
       File 'arch/arm64/boot/dts/broadcom/stingray' does not exist.
      Must remake target 'arch/arm64/boot/dts/broadcom/stingray'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/lg' does not exist.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
      Must remake target 'arch/arm64/boot/dts/lg'.
    Successfully remade target file '__build'.
     File '__build' does not exist.
       File 'arch/arm64/boot/dts/marvell' does not exist.
      Must remake target 'arch/arm64/boot/dts/marvell'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    There is NO WARRANTY, to the extent permitted by law.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/mediatek' does not exist.
      Must remake target 'arch/arm64/boot/dts/mediatek'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
       File 'arch/arm64/boot/dts/nvidia' does not exist.
      Must remake target 'arch/arm64/boot/dts/nvidia'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/qcom' does not exist.
      Must remake target 'arch/arm64/boot/dts/qcom'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/realtek' does not exist.
      Must remake target 'arch/arm64/boot/dts/realtek'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
       File 'arch/arm64/boot/dts/renesas' does not exist.
      Must remake target 'arch/arm64/boot/dts/renesas'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
       File 'arch/arm64/boot/dts/rockchip' does not exist.
      Must remake target 'arch/arm64/boot/dts/rockchip'.
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/socionext' does not exist.
      Must remake target 'arch/arm64/boot/dts/socionext'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    GNU Make 4.1
    Reading makefiles...
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/sprd' does not exist.
      Must remake target 'arch/arm64/boot/dts/sprd'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/synaptics' does not exist.
      Must remake target 'arch/arm64/boot/dts/synaptics'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
       File 'arch/arm64/boot/dts/ti' does not exist.
      Must remake target 'arch/arm64/boot/dts/ti'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
       File 'arch/arm64/boot/dts/xilinx' does not exist.
      Must remake target 'arch/arm64/boot/dts/xilinx'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    GNU Make 4.1
       File 'arch/arm64/boot/dts/zte' does not exist.
      Must remake target 'arch/arm64/boot/dts/zte'.
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
    Updating goal targets....
     File '__build' does not exist.
     File '__build' does not exist.
    Must remake target '__build'.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     File '__build' does not exist.
    GNU Make 4.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Reading makefiles...
    Updating goal targets....
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     File '__build' does not exist.
    Must remake target '__build'.
    Successfully remade target file '__build'.
     

  3. On 2/24/2020 at 4:03 PM, martinayotte said:

    Ahahah ! :lol:

    It is not as simple as that ...

    Why are you come to this conclusion ? Armbian folks are not responsible for all the issues, most comes from upstream ...

     

    I have set in the lib.config file the version 5.1 (same thing happen with version 5.6)

     

    After fixing all the compiling issues I was able to compule:

     

    dpkg-deb: building package 'linux-headers-5.1.21-sunxi64' in '../linux-headers-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.
    dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_20.05.0-trunk_arm64.deb'.
    dpkg-deb: building package 'linux-image-5.1.21-sunxi64' in '../linux-image-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.
    dpkg-buildpackage: info: binary-only upload (no source included)
    dpkg-deb: building package 'linux-source-5.1.21-dev-sunxi64' in '/home/ilan/armbian/build/.tmp/linux-source-dev-sunxi64_20.05.0-trunk_all.deb'.
    dpkg-deb: error: failed to read archive '/home/ilan/armbian/build/output/debs/linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
    [ o.k. ] Starting rootfs and image building process for [ bananapim64 bionic ]
    [ o.k. ] Checking for local cache [ bionic-cli-arm64.881...e08.tar.lz4 ]
    [ o.k. ] Extracting bionic-cli-arm64.881...e08.tar.lz4 [ 2 days old ]
    [ .... ] bionic-cli-arm64.881...e08.tar.lz4:  364MiB [64.3MiB/s] [==========================================================================================================>] 100%
    [ o.k. ] Adding Armbian repository and authentication key [ /etc/apt/sources.list.d/armbian.list ]
    [ o.k. ] Applying distribution specific tweaks for [ bionic ]
    [ o.k. ] Applying common tweaks 
    cp: cannot stat '/home/ilan/armbian/build/output/debs/linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
    [ .... ] Installing [ linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb ]
    [ .... ] Installing [ linux-u-boot-dev-bananapim64_20.05.0-trunk_arm64.deb ]
    cp: cannot stat '/home/ilan/armbian/build/output/debs/linux-headers-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
    [ .... ] Installing [ linux-headers-dev-sunxi64_20.05.0-trunk_arm64.deb ]
    [ .... ] Installing [ armbian-config_20.05.0-trunk_all.deb ]
    [ .... ] Installing [ armbian-firmware_20.05.0-trunk_all.deb ]
    [ o.k. ] Enabling serial console [ ttyS0 ]

     

    As you can see it  creates the headers and kernel version 5.1.21 but when it going to the stage to implement it in the image it looks for other deb files that are not created...

    also doesnt create the DTB deb file.

    eventually the image that is created doest work.

     

    So changing the linux-headers-5.1.21... and the linux-image-5.1.21 to  linux-headers-dev... and the linux-image-dev.... then running the compilation again and switch the file names a second before it implement them I manage to overcome this error.

     

    but no DTB file and the implentation in the linux image doesnt work. there is not even a link from Image-> to the vmlinuz-5.1.21-sunxi64 at the boot folder.

     

     

    I havent found anywhere why it doesnt create the DTB file and why it doesnt link the image correctly.

     

    Here is the patch I have created for the compilation to complete.

    diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
    index f670458ae..b81175502 100644
    --- a/arch/arm64/boot/dts/allwinner/Makefile
    +++ b/arch/arm64/boot/dts/allwinner/Makefile
    @@ -1,29 +1,3 @@
     # SPDX-License-Identifier: GPL-2.0
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
     dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-cc.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2-v1.1.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-core2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-k1-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-m1-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
    +
    diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    index 7793ebb5d..38f54fef4 100644
    --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    @@ -43,6 +43,7 @@
     /dts-v1/;
     
     #include "sun50i-a64.dtsi"
    +#include "sun50i-a64-cpu-opp.dtsi"
     
     #include <dt-bindings/gpio/gpio.h>
     
    @@ -108,6 +109,22 @@
     	status = "okay";
     };
     
    +&cpu0 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu1 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu2 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu3 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
     &dai {
     	status = "okay";
     };
    diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
    new file mode 100644
    index 000000000..578c37490
    --- /dev/null
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
    @@ -0,0 +1,75 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Copyright (C) 2020 Vasily khoruzhick <anarsoul@gmail.com>
    + */
    +
    +/ {
    +	cpu0_opp_table: opp_table0 {
    +		compatible = "operating-points-v2";
    +		opp-shared;
    +
    +		opp-648000000 {
    +			opp-hz = /bits/ 64 <648000000>;
    +			opp-microvolt = <1040000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-816000000 {
    +			opp-hz = /bits/ 64 <816000000>;
    +			opp-microvolt = <1100000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-912000000 {
    +			opp-hz = /bits/ 64 <912000000>;
    +			opp-microvolt = <1120000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-960000000 {
    +			opp-hz = /bits/ 64 <960000000>;
    +			opp-microvolt = <1160000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1008000000 {
    +			opp-hz = /bits/ 64 <1008000000>;
    +			opp-microvolt = <1200000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1056000000 {
    +			opp-hz = /bits/ 64 <1056000000>;
    +			opp-microvolt = <1240000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1104000000 {
    +			opp-hz = /bits/ 64 <1104000000>;
    +			opp-microvolt = <1260000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1152000000 {
    +			opp-hz = /bits/ 64 <1152000000>;
    +			opp-microvolt = <1300000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +	};
    +};
    +
    +&cpu0 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu1 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu2 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu3 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
    index 11f80feba..9f5145cdf 100644
    --- a/drivers/net/wireless/Makefile
    +++ b/drivers/net/wireless/Makefile
    @@ -4,7 +4,6 @@
     #
     
     obj-$(CONFIG_WLAN_VENDOR_ADMTEK) += admtek/
    -obj-$(CONFIG_RTL8189ES) += rtl8189es/
     obj-$(CONFIG_WLAN_VENDOR_ATH) += ath/
     obj-$(CONFIG_WLAN_VENDOR_ATMEL) += atmel/
     obj-$(CONFIG_WLAN_VENDOR_BROADCOM) += broadcom/
    @@ -14,7 +13,6 @@ obj-$(CONFIG_WLAN_VENDOR_INTERSIL) += intersil/
     obj-$(CONFIG_WLAN_VENDOR_MARVELL) += marvell/
     obj-$(CONFIG_WLAN_VENDOR_MEDIATEK) += mediatek/
     obj-$(CONFIG_WLAN_VENDOR_RALINK) += ralink/
    -obj-$(CONFIG_WLAN_VENDOR_REALTEK) += realtek/
     obj-$(CONFIG_WLAN_VENDOR_RSI) += rsi/
     obj-$(CONFIG_WLAN_VENDOR_ST) += st/
     obj-$(CONFIG_WLAN_VENDOR_TI) += ti/
    @@ -30,8 +28,6 @@ obj-$(CONFIG_USB_NET_RNDIS_WLAN)	+= rndis_wlan.o
     obj-$(CONFIG_MAC80211_HWSIM)	+= mac80211_hwsim.o
     
     obj-$(CONFIG_VIRT_WIFI)	+= virt_wifi.o
    -obj-$(CONFIG_RTL8812AU) += rtl8812au/
    +
     obj-$(CONFIG_WLAN_VENDOR_XRADIO) += xradio/
    -obj-$(CONFIG_RTL8821CU) += rtl8811cu/
    -obj-$(CONFIG_RTL8188EU) += rtl8188eu/
    -obj-$(CONFIG_RTL8822BU) += rtl88x2bu/
    +
    diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
    index 8ee8af4e7..127247759 100644
    --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
    +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
    @@ -5886,7 +5886,7 @@ static s32 wl_init_priv(struct brcmf_cfg80211_info *cfg)
     	s32 err = 0;
     
     	cfg->scan_request = NULL;
    -	cfg->pwr_save = true;
    +	cfg->pwr_save = !cfg->pub->settings->powersave_default_off;
     	cfg->dongle_up = false;		/* dongle is not up yet */
     	err = brcmf_init_priv_mem(cfg);
     	if (err)
    @@ -6653,8 +6653,10 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
     				    BIT(NL80211_BSS_SELECT_ATTR_BAND_PREF) |
     				    BIT(NL80211_BSS_SELECT_ATTR_RSSI_ADJUST);
     
    -	wiphy->flags |= WIPHY_FLAG_NETNS_OK |
    -			WIPHY_FLAG_PS_ON_BY_DEFAULT |
    +        if( ! ifp->drvr->settings->powersave_default_off )
    +		wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
    +	wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX |
    +			WIPHY_FLAG_NETNS_OK |
     			WIPHY_FLAG_HAVE_AP_SME |
     			WIPHY_FLAG_OFFCHAN_TX |
     			WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
    diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
    index 96b8d5b3a..2a6c79d4a 100644
    --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
    +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
    @@ -85,6 +85,10 @@ module_param_named(ignore_probe_fail, brcmf_ignore_probe_fail, int, 0);
     MODULE_PARM_DESC(ignore_probe_fail, "always succeed probe for debugging");
     #endif
     
    +static int brcmf_powersave_default = -1;
    +module_param_named(powersave_default, brcmf_powersave_default, int, 0);
    +MODULE_PARM_DESC(powersave_default, "Set powersave default on/off on wiphy");
    +
     static struct brcmfmac_platform_data *brcmfmac_pdata;
     struct brcmf_mp_global_t brcmf_mp_global;
     
    @@ -458,6 +462,8 @@ struct brcmf_mp_device *brcmf_get_module_param(struct device *dev,
     		brcmf_dmi_probe(settings, chip, chiprev);
     		brcmf_of_probe(dev, bus_type, settings);
     	}
    +	if( brcmf_powersave_default >= 0 )
    +		settings->powersave_default_off = !brcmf_powersave_default;
     	return settings;
     }
     
    diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
    index 4ce56be90..8d276ab4d 100644
    --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
    +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
    @@ -58,6 +58,8 @@ struct brcmf_mp_device {
     	bool		roamoff;
     	bool		iapp;
     	bool		ignore_probe_fail;
    +	bool		powersave_default_off;
    +
     	struct brcmfmac_pd_cc *country_codes;
     	const char	*board_type;
     	union {
    diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
    index 84e337328..27fcc25ed 100644
    --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
    +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
    @@ -47,6 +47,9 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
     
     	if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0)
     		sdio->drive_strength = val;
    +	settings->powersave_default_off = of_property_read_bool(np,
    +			"brcm,powersave-default-off");
    +
     
     	/* make sure there are interrupts defined in the node */
     	if (!of_find_property(np, "interrupts", NULL))
    diff --git a/sound/soc/sunxi/Makefile b/sound/soc/sunxi/Makefile
    index 555aa08f5..e8ebd59f6 100644
    --- a/sound/soc/sunxi/Makefile
    +++ b/sound/soc/sunxi/Makefile
    @@ -1,8 +1,5 @@
     # SPDX-License-Identifier: GPL-2.0
     obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o
    -obj-$(CONFIG_SND_SUN4I_CODEC) += sun4i-codec.o
    -obj-$(CONFIG_SND_SUN4I_I2S) += sun4i-i2s.o
    -obj-$(CONFIG_SND_SUN4I_SPDIF) += sun4i-spdif.o
     obj-$(CONFIG_SND_SUN50I_CODEC_ANALOG) += sun50i-codec-analog.o
     obj-$(CONFIG_SND_SUN8I_CODEC) += sun8i-codec.o
     obj-$(CONFIG_SND_SUN8I_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o

     

    The issue is as follows:

     

    1. I cannot use legacy version (4.19) since the Wireless is not recognized + no hdmi disply.

    2. I cannot use the current 5.4, dev 5.5.4, dev 5.5.5 version since there is an issue with the python GPIO + I cannot invert  the HDMI screen, when I select to inverted the screen goes black.

     

    The only version that worked before was 5.1.15 but I do not able to create image with version of 5.1.21.

     

     

     

    Is there anyone that know how to address this?

     

    [0m[1;35m dpkg-genchanges --build=binary >../linux-5.1.21-sunxi64_20.05.0-trunk_arm64.changes
    [0mdpkg-genchanges: warning: package linux-image-5.1.21-sunxi64-dbg in control file but not in files list
    dpkg-genchanges: info: binary-only upload (no source code included)

     

     

     

     

  4. Moving from kernel 5.5.0 to Kernel 5.5.4 or 5.5.5 have this issues:

    Wireless is very slow (also with the 5.5.0) the solution is:

     

    nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

    and change:

     

    [connection]

    wifi.powersave = 0

     

    Rotate screen that was working with the 5.5.0 version does not work with the next versions (current 5.4 ,dev 5.5.0)

    I get black screen when rotating.

     

    I have idea why  moving fast to newer kernels without fixing the issues with the older kernels...

     

  5. 21 hours ago, martinayotte said:

    I'm happy to help, and I will do, but if you're too lazy to look at output/debug/compilation.log for details and search for "error:" , I won't do it for you !!!

     

    Would you help me to figure out why have troubles of switching Armbian Dev from 5.5.y to 5.6.y ? I've working on that task since more than a week !!!

     

     

    Sure

     

    Just let me know if I am correct.

     

    in order to install version 5.6 do I need to set lib.config to the orange-pi-5.6 ?

     

     

  6. 2 minutes ago, martinayotte said:

    Why ? I've better things to do, such as preparing the switch of Armbian DEV to 5.6.y ...

    If it doesn't compile and you wish it to compile, it is up to yourself to look into output/debug/compilation.log for details and search for "error:" !

    Don't ask other to do your own tasks for you !

    You have answered you wanted to help. I think that less work from you since you can see the source and issues you ask for.

     

    If you dont want to help, dont.

    thanks for the support so far.

     

    Hard to understand why a feature that should work in the examples to build an older kernel revision doesnt work!

     

  7. 1 hour ago, martinayotte said:

    Look into output/debug/compilation.log for details and search for "error:"  ...

    Dear 

     

    Why dont you give it a try?

     

    add: KERNELBRANCH='branch:orange-pi-5.1'  into the lib.config file in the userpatches folder.

     

     

    and try it.

    board: bananpim64

     

    You will face the same issues that I report here.

    but  you will have all the information.

     

  8. I guess that I have had issues with the armbian build environment I guess that I have deleted some files that I shouldnt, anyway I have removed the old environment and build armbian again.

     

    First I have tried to compile version 5.5.4 to see that all goes well and no errors, after confirm that it succeed to finish without any failures I went back to try compiling the 5.1 version.

     

    With each failure of compilation I have modified the relevant MakeFiles and removed things that are not specially for relevant for the BPI-M64  board anyway  and that caused the compilation to stop.

    I end up with this:

     

    iff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
    index f670458ae..9e5672ff7 100644
    --- a/arch/arm64/boot/dts/allwinner/Makefile
    +++ b/arch/arm64/boot/dts/allwinner/Makefile
    @@ -1,29 +1,4 @@
     # SPDX-License-Identifier: GPL-2.0
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
    +
     dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-cc.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2-v1.1.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-core2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-k1-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-m1-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
    -dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
    +
    diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
    index 11f80feba..cdb79e00d 100644
    --- a/drivers/net/wireless/Makefile
    +++ b/drivers/net/wireless/Makefile
    @@ -4,7 +4,6 @@
     #
     
     obj-$(CONFIG_WLAN_VENDOR_ADMTEK) += admtek/
    -obj-$(CONFIG_RTL8189ES) += rtl8189es/
     obj-$(CONFIG_WLAN_VENDOR_ATH) += ath/
     obj-$(CONFIG_WLAN_VENDOR_ATMEL) += atmel/
     obj-$(CONFIG_WLAN_VENDOR_BROADCOM) += broadcom/
    @@ -14,7 +13,6 @@ obj-$(CONFIG_WLAN_VENDOR_INTERSIL) += intersil/
     obj-$(CONFIG_WLAN_VENDOR_MARVELL) += marvell/
     obj-$(CONFIG_WLAN_VENDOR_MEDIATEK) += mediatek/
     obj-$(CONFIG_WLAN_VENDOR_RALINK) += ralink/
    -obj-$(CONFIG_WLAN_VENDOR_REALTEK) += realtek/
     obj-$(CONFIG_WLAN_VENDOR_RSI) += rsi/
     obj-$(CONFIG_WLAN_VENDOR_ST) += st/
     obj-$(CONFIG_WLAN_VENDOR_TI) += ti/
    @@ -30,8 +28,5 @@ obj-$(CONFIG_USB_NET_RNDIS_WLAN)	+= rndis_wlan.o
     obj-$(CONFIG_MAC80211_HWSIM)	+= mac80211_hwsim.o
     
     obj-$(CONFIG_VIRT_WIFI)	+= virt_wifi.o
    -obj-$(CONFIG_RTL8812AU) += rtl8812au/
     obj-$(CONFIG_WLAN_VENDOR_XRADIO) += xradio/
    -obj-$(CONFIG_RTL8821CU) += rtl8811cu/
    -obj-$(CONFIG_RTL8188EU) += rtl8188eu/
    -obj-$(CONFIG_RTL8822BU) += rtl88x2bu/
    +
    diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
    index d1b17ddcd..5eee1d0b5 100644
    --- a/drivers/staging/Makefile
    +++ b/drivers/staging/Makefile
    @@ -5,12 +5,6 @@ obj-y				+= media/
     obj-$(CONFIG_PRISM2_USB)	+= wlan-ng/
     obj-$(CONFIG_COMEDI)		+= comedi/
     obj-$(CONFIG_FB_OLPC_DCON)	+= olpc_dcon/
    -obj-$(CONFIG_RTL8192U)		+= rtl8192u/
    -obj-$(CONFIG_RTL8192E)		+= rtl8192e/
    -obj-$(CONFIG_RTL8723BS)		+= rtl8723bs/
    -obj-$(CONFIG_R8712U)		+= rtl8712/
    -obj-$(CONFIG_R8188EU)		+= rtl8188eu/
    -obj-$(CONFIG_R8822BE)		+= rtlwifi/
     obj-$(CONFIG_RTS5208)		+= rts5208/
     obj-$(CONFIG_NETLOGIC_XLR_NET)	+= netlogic/
     obj-$(CONFIG_OCTEON_ETHERNET)	+= octeon/

     

    And now I am facing another issue that I cannot find the fix for it:

     

    CC [M]  drivers/usb/serial/usb_wwan.o
      CC [M]  drivers/usb/serial/ssu100.o
      CC [M]  drivers/usb/serial/symbolserial.o
      CC [M]  drivers/usb/serial/ti_usb_3410_5052.o
      CC [M]  drivers/usb/serial/upd78f0730.o
      CC [M]  drivers/usb/serial/visor.o
      CC [M]  drivers/usb/serial/wishbone-serial.o
      CC [M]  drivers/usb/serial/whiteheat.o
      LD [M]  drivers/usb/usbip/usbip-vudc.o
      CC [M]  drivers/usb/serial/xsens_mt.o
      LD [M]  drivers/usb/serial/usbserial.o
      AR      drivers/usb/built-in.a
      AR      drivers/built-in.a
    [ error ] ERROR in function compile_kernel [ compilation.sh:378 ]
    [ error ] Kernel was not built [ @host ]
    [ o.k. ] Process terminated 

    Also happens with the 5.2 version. 

     

  9.   

    15 minutes ago, martinayotte said:

    To try figuring about this crash, you will need to change "verbosity=1" to "verbosity=7" in /boot/armbianEnv.txt ...

     

     

    I did as you suggested but still getting the same output with no new information.

     

     

    In a working environment I have:

     

    lrwxrwxrwx 1 root root       22 Jul  5  2019 Image -> vmlinuz-5.1.15-sunxi64
    -rw-r--r-- 1 root root  3082032 Jul  5  2019 System.map-5.1.15-sunxi64
    -rw-rw-r-- 1 root root      676 Feb 20 23:52 armbianEnv.txt
    -rw-rw-r-- 1 root root     1536 Jul  5  2019 armbian_first_run.txt.template
    -rw-rw-r-- 1 root root     4882 Jul  5  2019 boot-desktop.png
    -rw-rw-r-- 1 root root   230454 Jul  5  2019 boot.bmp
    -rw-rw-r-- 1 root root     2970 Jul  5  2019 boot.cmd
    -rw-rw-r-- 1 root root     3042 Jul  5  2019 boot.scr
    -rw-r--r-- 1 root root   154666 Jul  5  2019 config-5.1.15-sunxi64
    lrwxrwxrwx 1 root root       18 Jul  5  2019 dtb -> dtb-5.1.15-sunxi64
    drwxr-xr-x 3 root root     4096 Jul  5  2019 dtb-5.1.15-sunxi64
    -rw-r--r-- 1 root root  8885902 Jan 28 16:04 initrd.img-5.1.15-sunxi64
    lrwxrwxrwx 1 root root       22 Jan 28 16:04 uInitrd -> uInitrd-5.1.15-sunxi64
    -rw-r--r-- 1 root root  8885966 Jan 28 16:04 uInitrd-5.1.15-sunxi64
    -rwxr-xr-x 1 root root 14563336 Jul  5  2019 vmlinuz-5.1.15-sunxi64

     

    on non-working environment I have:

     

    -rw-rw-r-- 1 root root     120 Feb 22 01:44 armbianEnv.txt
    -rw-rw-r-- 1 root root    1536 Feb 21 23:57 armbian_first_run.txt.template
    -rw-rw-r-- 1 root root  230454 Feb 21 23:57 boot.bmp
    -rw-r--r-- 1 root root    2961 Feb 21 23:55 boot.cmd
    -rw-rw-r-- 1 root root    4882 Feb 21 23:57 boot-desktop.png
    -rw-rw-r-- 1 root root    3033 Feb 21 23:58 boot.scr
    -rw-r--r-- 1 root root  156513 Feb 21 23:38 config-5.1.21-sunxi64
    -rw-r--r-- 1 root root 9444476 Feb 21 23:59 initrd.img-5.1.21-sunxi64
    -rw-r--r-- 1 root root 3193660 Feb 21 23:38 System.map-5.1.21-sunxi64
    lrwxrwxrwx 1 root root      22 Feb 21 23:59 uInitrd -> uInitrd-5.1.21-sunxi64
    -rw-r--r-- 1 root root 9444540 Feb 21 23:59 uInitrd-5.1.21-sunxi64
    -rwxr-xr-x 1 root root 7082009 Feb 21 23:38 vmlinuz-5.1.21-sunxi64

     

    Why isnt there a link to Image?

    And dtb are not even installed...

     

  10. My Building experience...

    added:

    KERNELBRANCH='branch:orange-pi-5.1'

    BOOTBRANCH='tag:v2019.04' - (yes also tried with the latest version and came into same result below so wonder if I use the same kernel that runs on the other board)

     to build/userpatches/lib.config

     

     

    Run the command...

    sudo ./compile.sh  BOARD=bananapim64  RELEASE=bionic BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes INSTALL_PATCHES=yes CREATE_PATCHES=yes

     

    at the time it asks me for the mainline-kernel 5.1 to add my patch, I modify the "sun50i-a64-bananapi-m64.dts" file and add the second "sun50i-a64-cpu-opp.dtsi" needed file as well.

    it create the patch that I have shown a few messages back.

     

    compilation continue...

     

    than  a bug...

    Building image :

     

    pkg-deb: building package 'linux-headers-5.1.21-sunxi64' in '../linux-headers-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.

    dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_20.05.0-trunk_arm64.deb'.

    dpkg-deb: building package 'linux-image-5.1.21-sunxi64' in '../linux-image-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.

    dpkg-buildpackage: info: binary-only upload (no source included)

     

     

    but after a while it want to install then into the image... but try to install not existent files...

     

    [ .... ] Installing [ linux-image-current-sunxi64_20.05.0-trunk_arm64.deb ]

    [ .... ] Installing [ linux-u-boot-current-bananapim64_20.05.0-trunk_arm64.deb ]

    [ .... ] Installing [ linux-headers-current-sunxi64_20.05.0-trunk_arm64.deb ]

    [ .... ] Installing [ armbian-config_20.05.0-trunk_all.deb ]

    [ .... ] Installing [ armbian-firmware_20.05.0-trunk_all.deb ]

     

    It doesnt install them since they are not exist on that name.

     

    So I have changed the files names to current and apply them just after the compiler create the Image file, that the script can find those files and install them…

     

    Ok... copy the image to the microSD and....... how lovely... after all the hours invested so far i get this present:

     

    U-Boot SPL 2019.04-armbian (Feb 21 2020 - 23:45:31 +0200)
    DRAM: 2048 MiB
    Trying to boot from MMC1
    NOTICE:  BL31: v2.2(debug):eda880f
    NOTICE:  BL31: Built : 23:45:21, Feb 21 2020
    NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
    NOTICE:  BL31: Found U-Boot DTB at 0x4097918, model: BananaPi-M64
    INFO:    ARM GICv2 driver initialized
    INFO:    Configuring SPC Controller
    INFO:    PMIC: Probing AXP803 on RSB
    INFO:    PMIC: Enabling DRIVEVBUS
    INFO:    PMIC: dcdc1 voltage: 3.300V
    INFO:    PMIC: dcdc5 voltage: 1.500V
    INFO:    PMIC: dcdc6 voltage: 1.100V
    INFO:    PMIC: dldo1 voltage: 3.300V
    INFO:    PMIC: dldo2 voltage: 3.300V
    INFO:    PMIC: Enabling DC SW
    INFO:    BL31: Platform setup done
    INFO:    BL31: Initializing runtime services
    INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
    INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x4a000000
    INFO:    SPSR = 0x3c9
    
    
    U-Boot 2019.04-armbian (Feb 21 2020 - 23:45:31 +0200) Allwinner Technology
    
    CPU:   Allwinner A64 (SUN50I)
    Model: BananaPi-M64
    DRAM:  2 GiB
    MMC:   Device 'mmc@1c11000': seq 1 is in use by 'mmc@1c10000'
    mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
    Loading Environment from EXT4... ** File not found /boot/boot.env **
    
    ** Unable to read "/boot/boot.env" from mmc0:1 **
    In:    serial
    Out:   serial
    Err:   serial
    Allwinner mUSB OTG (Peripheral)
    Net:   phy interface7
    eth0: ethernet@1c30000
    Warning: usb_ether using MAC address from ROM
    , eth1: usb_ether
    starting USB...
    USB0:   USB EHCI 1.00
    USB1:   USB OHCI 1.0
    USB2:   USB EHCI 1.00
    USB3:   USB OHCI 1.0
    scanning bus 0 for devices... 1 USB Device(s) found
    scanning bus 1 for devices... 1 USB Device(s) found
    scanning bus 2 for devices... 2 USB Device(s) found
    scanning bus 3 for devices... 1 USB Device(s) found
           scanning usb for storage devices... 0 Storage Device(s) found
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    Found U-Boot script /boot/boot.scr
    3033 bytes read in 2 ms (1.4 MiB/s)
    ## Executing script at 4fc00000
    U-boot loaded from SD
    Boot script loaded from mmc
    104 bytes read in 1 ms (101.6 KiB/s)
    9444540 bytes read in 427 ms (21.1 MiB/s)
    ## Loading init Ramdisk from Legacy Image at 4fe00000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    9444476 Bytes = 9 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 4fa00000
       Booting using the fdt blob at 0x4fa00000
       Loading Ramdisk to 496fe000, end 49fffc7c ... OK
       Loading Device Tree to 000000004968b000, end 00000000496fdfff ... OK
    
    Starting kernel ...
    
    "Synchronous Abort" handler, esr 0x02000000
    elr: ffffffffccee4000 lr : 000000004a002cf0 (reloc)
    elr: 0000000040e30000 lr : 00000000bdf4ecf0
    x0 : 000000004968b000 x1 : 0000000000000000
    x2 : 0000000000000000 x3 : 0000000000000000
    x4 : 0000000040080000 x5 : 0000000000000001
    x6 : 0000000000000008 x7 : 0000000000000000
    x8 : 00000000b9f23a00 x9 : 0000000000000002
    x10: 000000000a200023 x11: 0000000000000002
    x12: 0000000000000002 x13: 0000000000000160
    x14: 00000000b9f23a2c x15: 00000000bdf4e274
    x16: 0000000000000020 x17: 0000000000000000
    x18: 00000000b9f2bde0 x19: 00000000bdfe43d0
    x20: 0000000000000000 x21: 0000000000000400
    x22: 0000000000000710 x23: 00000000bdf4ed18
    x24: 0000000000000003 x25: 00000000b9f85408
    x26: 00000000bdfd3e48 x27: 0000000000000000
    x28: 00000000b9f81d20 x29: 00000000b9f23b20
    
    Resetting CPU ...
    
    resetting ...

     

    The only thing  I can say now is:

     

    WHAT?   WHAT WHAT??  WHAT WHAT WHAT??? WAHHHAHAAT???  WHAT WHAT, WHAT ??  WHAT?

     

    Really I have no other words to say. corona virus?

     

     

     

     

     

     

     

     

     

     

     

  11. 3 minutes ago, martinayotte said:

    Don't you have another board that are still running ? If Yes, simply put your SDCard reader/writer into it USB and have access to it after mounting it in /mnt.

     

    Sorry, it is not a test that I am interested to waste my time with.

    I need  a working solution in order to be able to create an image with the desired kernel.

    And i am sure that everything in Linux should fit, if even an a letter not in the place it should be the compilation fails.

     

    So I am sure going to this direction is a waste of time.

  12. 3 minutes ago, martinayotte said:

    Maybe you can try to put 5.4.y compiled DTB into the 5.1.15 image and give it a try ...

    I cannot since I cannot boot the board in order to put the DTB inside...

    but it doesnt crash at the dtb load but when the kernel loads.

     

    There must be a way to recompile older kernel source and use it.

    even with this armbian forum I have discovered how to to build different branch kernel older one.

    but if you provide this option it should work.

    I hope that there is a way

     

  13. 2 minutes ago, martinayotte said:

    Because it is a snapshot in time, it hard to revert to builds from 8 months ago.

     

    Do you still have that old 5.1.15 images ?

    Would it help if I provided one of my old Pine64 images ? Although it is not BananaPi-M4, maybe it will still boot since it is also an A64 ...

     

    I have the 5.5.15 images but I cannot add the patch that fix the resets...

     

    I cant use old images since they do not contain this patch.

     

    This is what I want to add.

     

    diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    index 7793ebb5d..5be6c0680 100644
    --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    @@ -43,6 +43,7 @@
     /dts-v1/;
     
     #include "sun50i-a64.dtsi"
    +#include "sun50i-a64-cpu-opp.dtsi"
     
     #include <dt-bindings/gpio/gpio.h>
     
    @@ -108,6 +109,23 @@
     	status = "okay";
     };
     
    +&cpu0 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu1 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu2 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +&cpu3 {
    +	cpu-supply = <&reg_dcdc2>;
    +};
    +
    +
     &dai {
     	status = "okay";
     };
    diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
    new file mode 100644
    index 000000000..578c37490
    --- /dev/null
    +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
    @@ -0,0 +1,75 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Copyright (C) 2020 Vasily khoruzhick <anarsoul@gmail.com>
    + */
    +
    +/ {
    +	cpu0_opp_table: opp_table0 {
    +		compatible = "operating-points-v2";
    +		opp-shared;
    +
    +		opp-648000000 {
    +			opp-hz = /bits/ 64 <648000000>;
    +			opp-microvolt = <1040000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-816000000 {
    +			opp-hz = /bits/ 64 <816000000>;
    +			opp-microvolt = <1100000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-912000000 {
    +			opp-hz = /bits/ 64 <912000000>;
    +			opp-microvolt = <1120000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-960000000 {
    +			opp-hz = /bits/ 64 <960000000>;
    +			opp-microvolt = <1160000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1008000000 {
    +			opp-hz = /bits/ 64 <1008000000>;
    +			opp-microvolt = <1200000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1056000000 {
    +			opp-hz = /bits/ 64 <1056000000>;
    +			opp-microvolt = <1240000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1104000000 {
    +			opp-hz = /bits/ 64 <1104000000>;
    +			opp-microvolt = <1260000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +
    +		opp-1152000000 {
    +			opp-hz = /bits/ 64 <1152000000>;
    +			opp-microvolt = <1300000>;
    +			clock-latency-ns = <244144>; /* 8 32k periods */
    +		};
    +	};
    +};
    +
    +&cpu0 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu1 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu2 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};
    +
    +&cpu3 {
    +	operating-points-v2 = <&cpu0_opp_table>;
    +};

     

     

  14. 3 minutes ago, martinayotte said:

    It seems like a can of worms ...

    Why don't you try using Legacy 4.19.y instead ?

     

    Ok, I dont think you remember but I have first was on the 4.19.y and I had problem that w1-wire didnt work, wasnt recognized, then you offered me to move on to the 5.1 dev kernel, and there everything worked, so I staid there.

    Then I have bought another BPI-M64 board apply it to the image that is working on the other board, then it didnt load and crash,  later on I have found out that there is an issue with the A64 processors that image would not load and crash.

     

    Mow there is a patch and with kernel 5.5/5.4 I have some issues:

    1. Wireless works very slow  with that kernel.

    2. Processor workload is higher than then 5.1 kernel.

    3. I have problems with the python GPIO.

     

    I just want to get it working

    I am not interested with PHD on Linux, just to have 2 boards that work without any problems.

    it seems impossible due to the walls that need to go trough.

     

    WHY IS IT SO COMPLICATED TO CREATE PREVIOUS KERNEL,UBOOT and so on? WHY??? 

  15. 10 hours ago, lanefu said:

     

    Allwinner use's megous's  repo .  https://github.com/armbian/build/blob/master/config/sources/families/include/sunxi_common.inc#L12

     

    you could look at see what he's using

     

    also you could add to lib.conf

    KERNELSOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git'

     

    Thanks for the help finally was able to find the correct lib.

     

    KERNELBRANCH='branch:orange-pi-5.1'  to build/userpatches/lib.config

     

    And now it is downloading the correct lib.

     

    I run the compile.sh

    doesnt matter about full image or u-boot...

     

    select bananapim64

     

    and I get this error.

    but WTF it stops me on orangepi-win????

    why?

    It should only compile for the bananapim64...

     

     

    scripts/Makefile.lib:311: recipe for target 'arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dtb' failed

    scripts/Makefile.build:486: recipe for target 'arch/arm64/boot/dts/allwinner' failed

      HOSTCC  scripts/conmakehash

    Makefile:1228: recipe for target 'dtbs' failed

      HOSTCC  scripts/sortextable

      HOSTCC  scripts/asn1_compiler

      HOSTCC  scripts/extract-cert

    [ error ] ERROR in function compile_kernel [ compilation.sh:378 ]

    [ error ] Kernel was not built [ @host ]

    [ o.k. ] Process terminated

     

     

    Any suggestions? 

     

     

     

  16. Going from a problem to a problem

     

    first there was an issue with the A64 needs a new patch.

    but the only kernel that you can work with is the 5.4 or 5.5, you cannot compile with your previous working environment...

    And now you get a whole now issues.

     

    We are normal users, not Linux experts, if we were we wouldnt needed to ask questions of things that should work but doenst.

     

    Asking for help it doesnt mean to throw us into a deeper hole..

    its frustrating that you have to move to a newer kernel and you cannot compile the old one that worked!

  17. 1 minute ago, martinayotte said:

    This grid is confusing since this grid says pin31 == GPIO.22, which doesn't exist on A64, but at least the BCM equivalent is 37 like I've said, but you need to use GPIO.setmode(GPIO.BCM) for that numbering.

    I personnally relying more on shematics, and here is the one I've looked https://bananapi.gitbooks.io/bpi-m64/content/en/bpi-m64schematicdiagram.html

     

    the name is not relevant i am toggling the 31 pin. 

     

    I feel that you do not have much experience with the python GPIO of the BPI-M64,

    but I can confirm that on the module with the kernel 5.1.15 all work.

    same libs, same installation.

  18. 5 hours ago, martinayotte said:

    Like I've said the content of $PWD/output, so zImage, kernel modules, dtb.

    Because you will have to learn much more about all tools "dpkg-buildpackage" and others ...

     

    That is why I ask for help from Linux experts, not all of us have a lot of knowledge like you do.

    how do I do the zimage thing ?

    how do I create the deb file?

     

    can you give me an example?

     

    I have  added:

    KERNELBRANCH='tag:v5.1.21' to build/userpatches/lib.config

     

    but I get:

     

    o.k. ] Checking git sources [ linux-mainline 5.1.21 ] [ .... ]

    Creating local copy [ .... ]

    Fetching updates fatal: Couldn't find remote ref tags/5.1.21 [ .... ]

    Checking out error: pathspec 'FETCH_HEAD' did not match any file(s) known to git.

     

    Where do I find the available working tags??

    where does it look for the source from?

    why cant I build an older kernel?'

    Why it isnt possible to use the downloaded kernel source from here https://mirrors.edge.kernel.org/pub/linux/kernel/ 

    and use the script to compile a kernel based on it.

     

    I have searched in the internet for about 3 days for a how to.

    There is nothing!

     

     

  19. GPIO 31 is the pin number.

     

    look at this:

     

    +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+
     | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
     +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
     |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
     | 227 |   8 |   SDA.1 |  OUT | 0 |  3 || 4  |   |      | 5v      |     |     |
     | 226 |   9 |   SCL.1 |  OUT | 0 |  5 || 6  |   |      | 0v      |     |     |
     | 230 |   7 | GPIO. 7 |  OUT | 0 |  7 || 8  | 1 | OUT  | TxD     | 15  | 32  |
     |     |     |      0v |      |   |  9 || 10 | 1 | OUT  | RxD     | 16  | 33  |
     | 231 |   0 | GPIO. 0 |  OUT | 0 | 11 || 12 | 1 | OUT  | GPIO. 1 | 1   | 35  |
     | 234 |   2 | GPIO. 2 |  OUT | 0 | 13 || 14 |   |      | 0v      |     |     |
     | 235 |   3 | GPIO. 3 |  OUT | 0 | 15 || 16 | 1 | OUT  | GPIO. 4 | 4   | 34  |
     |     |     |    3.3v |      |   | 17 || 18 | 1 | OUT  | GPIO. 5 | 5   | 100 |
     |  98 |  12 |    MOSI |  OUT | 0 | 19 || 20 |   |      | 0v      |     |     |
     |  99 |  13 |    MISO |  OUT | 0 | 21 || 22 | 1 | OUT  | GPIO. 6 | 6   | 64  |
     |  97 |  14 |    SCLK |  OUT | 0 | 23 || 24 | 1 | OUT  | CE0     | 10  | 96  |
     |     |     |      0v |      |   | 25 || 26 | 1 | OUT  | CE1     | 11  | 66  |
     |  68 |  30 |   SDA.0 |  OUT | 1 | 27 || 28 | 1 | OUT  | SCL.0   | 31  | 67  |
     |  71 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |
     |  37 |  22 | GPIO.22 |   IN | 0 | 31 || 32 | 1 | OUT  | GPIO.26 | 26  | 39  |
     |  36 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
     |  38 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 1 | OUT  | GPIO.27 | 27  | 361 |
     | 364 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 1 | OUT  | GPIO.28 | 28  | 359 |
     |     |     |      0v |      |   | 39 || 40 | 1 | OUT  | GPIO.29 | 29  | 360 |
     +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
     | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
     +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+

     

  20. I have now downloaded and installed again the GPIO lib.

    and now it gone worse.

    now I cannot operate any GPIO I get segmentation fault (core dumped).

     

    Before I have updated the lib at least  GPIO output worked just GPIO.add_event_detect didnt.

     

    I have found an old post of RPI but I am not sure that the same answer valid for me as well.

    "CONFIG_STRICT_DEVMEM set true"

    from this link:

    https://stackoverflow.com/questions/30442719/getting-segmentation-fault-when-using-rpi-gpio-setup-on-raspberry-pi-2

     

  21. 40 minutes ago, martinayotte said:

    Unfortunately, this would be too complex ... You have to copies manually from files in $PWD/output to your existing installation using SSH.

    So I do really do not understand.

    I was able to compile a new kernel but cannot install it?? so what is the point?

    What do I copy?

     

    why isnt it possible to modify the script to not download a new kernel but to use the one in the cache folder?

    The files already stored there, it shouldnt download anything new just to use the existing?

    Why is it so complex??

     

  22. 38 minutes ago, martinayotte said:

    And which board and SoC are you using ?

     

    BTW, I've just remember an older case where a person asked why input event wasn't working for him on H6, and we finally discovered that not all the GPIO banks provide interrupts on all GPIOs. He change the pin for another supporting interrupts and it was working fine . So, maybe it is the case here ...

    I  am using BananaPI M64 board

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines