Code Monkey home page Code Monkey logo

Comments (9)

frank-w avatar frank-w commented on August 25, 2024

cannot reproduce this...file is there and under git control

frank@frank-G5:/media/data_ext/git/kernel/BPI-R2-4.14 (5.10-main) [0M5U]
$ ls -l include/dt-bindings/gpio/gpio.h
-rw-rw-r-- 1 frank frank 1170 Mai 19 11:19 include/dt-bindings/gpio/gpio.h
frank@frank-G5:/media/data_ext/git/kernel/BPI-R2-4.14 (5.10-main) [0M5U]
$ git logone include/dt-bindings/gpio/gpio.h
ede033e1e863 2019-02-07 dt-bindings: gpio: document the new pull-up/pull-down flags Thomas Petazzoni 
e10f72bf4b3e 2017-11-30 gpio: gpiolib: Generalise state persistence beyond sleep Andrew Jeffery 
....

https://github.com/frank-w/BPI-Router-Linux/blob/5.10-main/include/dt-bindings/gpio/gpio.h

you can try

git checkout include/dt-bindings/gpio/gpio.h

or something is wrong in your build-environment...do you use build.sh from your source root?

from bpi-router-linux.

1377382065 avatar 1377382065 commented on August 25, 2024

yes , i sure file exist
Here is my complete operation:

niko@ubuntu-compile:~/BPI-Router-Linux$ pwd
/home/niko/BPI-Router-Linux
niko@ubuntu-compile:~/BPI-Router-Linux$ git branch 
* 5.10-main
  5.15-main
niko@ubuntu-compile:~/BPI-Router-Linux$ git status 
On branch 5.10-main
Your branch is up to date with 'origin/5.10-main'.

nothing to commit, working tree clean
niko@ubuntu-compile:~/BPI-Router-Linux$ 
./build.sh importconfig
./build.sh config
./build.sh

arch/arm/boot/dts/mt2701-evb.dts:9:10: fatal error: dt-bindings/gpio/gpio.h: No such file or directory
    9 | #include <dt-bindings/gpio/gpio.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:326: arch/arm/boot/dts/mt2701-evb.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from arch/arm/boot/dts/mt6589-aquaris5.dts:9:
arch/arm/boot/dts/mt6589.dtsi:8:10: fatal error: dt-bindings/interrupt-controller/irq.h: No such file or directory
    8 | #include <dt-bindings/interrupt-controller/irq.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:326: arch/arm/boot/dts/mt6589-aquaris5.dtb] Error 1
In file included from arch/arm/boot/dts/mt6580-evbp1.dts:9:
arch/arm/boot/dts/mt6580.dtsi:8:10: fatal error: dt-bindings/interrupt-controller/irq.h: No such file or directory
    8 | #include <dt-bindings/interrupt-controller/irq.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:326: arch/arm/boot/dts/mt6580-evbp1.dtb] Error 1
make: *** [Makefile:1387: dtbs] Error 2
make: *** Waiting for unfinished jobs....

but

niko@ubuntu-compile:~/BPI-Router-Linux$ ls ./include/dt-bindings/interrupt-controller/irq.h
./include/dt-bindings/interrupt-controller/irq.h
niko@ubuntu-compile:~/BPI-Router-Linux$ 

from bpi-router-linux.

frank-w avatar frank-w commented on August 25, 2024

Something is strange with your buildchain...you did the right steps and i compiled 5.10 sucessfully on my ubuntu 22.04 host

from bpi-router-linux.

1377382065 avatar 1377382065 commented on August 25, 2024

i same use ubuntu 22.04

niko@ubuntu-compile:~/BPI-Router-Linux$ uname  -a 
Linux ubuntu-compile 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
niko@ubuntu-compile:~/BPI-Router-Linux$ cat /proc/version
Linux version 5.15.0-107-generic (buildd@lcy02-amd64-012) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024
niko@ubuntu-compile:~/BPI-Router-Linux$ 

but i get same error when i compile in bpi r2 , i use basis image https://drive.google.com/drive/folders/1oP7jy1KrrIOifvImo2nQ59wx3_9hHkgk

from bpi-router-linux.

1377382065 avatar 1377382065 commented on August 25, 2024

i use basis image https://drive.google.com/drive/folders/1oP7jy1KrrIOifvImo2nQ59wx3_9hHkgk
but not support ipset , and i not found this kernel version source code , i just need ipset support

from bpi-router-linux.

frank-w avatar frank-w commented on August 25, 2024

why not using later kernel-version? r2 itself also works in 6.6 (latest LTS), but internal wifi (mt6625l) is last supported in 5.15

but strange anyway why it does not compile for you...i updated the tree and pushed it...lets see if pipeline fails too...

on my current system i use this gcc:

$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --without-target-system-zlib --enable-libpth-m2 --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04)

from bpi-router-linux.

1377382065 avatar 1377382065 commented on August 25, 2024

in version 6.6-main , i get same error

  DTC     arch/arm/boot/dts/mediatek/mt2701-evb.dtb
/home/niko/BPI-Router-Linux/arch/arm/boot/dts/mediatek/mt2701-evb.dts:9:10: fatal error: dt-bindings/gpio/gpio.h: No such file or directory
    9 | #include <dt-bindings/gpio/gpio.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

and 

niko@ubuntu-compile:~/BPI-Router-Linux$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/11/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --without-target-system-zlib --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 
niko@ubuntu-compile:~/BPI-Router-Linux$ 

Let me try downgrading the version of gcc

from bpi-router-linux.

1377382065 avatar 1377382065 commented on August 25, 2024

i download release souce code and build success !
maybe git clone loss some file ?

from bpi-router-linux.

frank-w avatar frank-w commented on August 25, 2024

i can also build successful and as the file is there there is something broken in build-process, you can try to reset your tree "ARCH=arm make mrproper" and maybe do a git hard reset (git reset --hard origin/5.10-main)

release source-code is taken from git :p see pipeline...it does a git clone first

from bpi-router-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.