dt-bindings / clock / bcm2835.h:没有这样的文件或目录

时间:2016-07-21 04:40:15

标签: android raspberry-pi android-kernel

我试图从https://github.com/peyo-hd/device_brcm_rpi2为Raspberry Pi 2构建android内核,但是在构建dtbs时我遇到了以下构建错误:

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs

  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DTC     arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dtb
arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts:8:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
compilation terminated.
make[2]: *** [arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dtb] Error 1
make[1]: *** [arch/arm/boot/dts/overlays] Error 2
make: *** [dtbs] Error 2

知道我已经使用以下方法成功构建了zImage:

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage

1 个答案:

答案 0 :(得分:0)

vc4-kms-v3d-overlay.dtb似乎指的是错误的include目录。正确的include目录位于kernel/rpi/include/,因此您需要在vc4-kms-v3d-overlay.dtb内进行相应的更改。