[yocto] RPI Kernel compile error (meta-raspberrypi)

Łukasz Michalski lm at zork.pl
Tue Oct 1 01:33:41 PDT 2019


Hi,

I am trying to bitbake meta-raspberrypi image from current warrior branch:

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "raspberrypi3"
DISTRO               = "poky"
DISTRO_VERSION       = "2.7.1"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "warrior:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe
meta-python
meta-networking      = "warrior:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-raspberrypi     = "warrior:0750d5d2bc9596f35d5d61bb0ff657be4b02bfdc"

Kernel compilation fails with this error:

| make[3]: *** No rule to make target 'arch/arm/boot/dts/overlays/hifiberry-dacplusdsp.dtbo'.  Stop.
| make[2]: *** [arch/arm/Makefile:345: overlays/hifiberry-dacplusdsp.dtbo] Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/zork/data/yocto-wallscreen-build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.19.71+gitAUTOINC+13ce09db83-r0/temp/run.do_compile.26619:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/zork/data/yocto-wallscreen-build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.19.71+gitAUTOINC+13ce09db83-r0/temp/log.do_compile.26619)
ERROR: Task (/home/zork/sources/homehq/yocto/poky/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.19.bb:do_compile) failed with exit code '1'

I checked BUILD_DIR/work-shared/rasbperrypi3/kernel-source and there is no such file:
[zork at serenity arm]$ ls -l boot/dts/overlays/hifiberry-*
-rw-r--r-- 1 zork users  575 Sep 30 20:12 boot/dts/overlays/hifiberry-amp-overlay.dts
-rw-r--r-- 1 zork users  490 Sep 30 20:12 boot/dts/overlays/hifiberry-dac-overlay.dts
-rw-r--r-- 1 zork users 1260 Sep 30 20:12 boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
-rw-r--r-- 1 zork users 1198 Sep 30 20:12 boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts
-rw-r--r-- 1 zork users 1050 Sep 30 20:12 boot/dts/overlays/hifiberry-dacplus-overlay.dts
-rw-r--r-- 1 zork users  639 Sep 30 20:12 boot/dts/overlays/hifiberry-digi-overlay.dts
-rw-r--r-- 1 zork users  705 Sep 30 20:12 boot/dts/overlays/hifiberry-digi-pro-overlay.dts

bitbake checked kernel sources version:

[zork at serenity arm]$ cd yocto-wallscreen-build/tmp/work-shared/raspberrypi3/kernel-source
[zork at serenity arm]$ git status
On branch rpi-4.19.y
Your branch is behind 'origin/rpi-4.19.y' by 413 commits, and can be fast-forwarded.

[zork at serenity arm]$ git rev-parse HEAD
13ce09db830e0c2fe524460b0673afb974359bc2

So it seems that bitbake checked out old version of rpi-4.19.y branch. In this version there is no hifiberry-dacplusdsp overlay.

I am new to yocto/bitbake and kernel recipe is a complicated one. Anyone can help me fix this error?

Thanks,
Łukasz


More information about the yocto mailing list