AnsweredAssumed Answered

Bitbake error when populating_sdk with "kernel-devsrc"

Question asked by George fff on Dec 5, 2018
Latest reply on Dec 10, 2018 by George fff

#yocto #sdk error message #kernel-devsrc rocko

Hi everyone,

I am trying to get all the kernel headers in my SDK sysroot in order to develop an application.

In particular, when I populate SDK, I can't find the file rpmsg.h anywhere in the sysroot/usr/include/linux folder. I figured out that there were missing lot of headers there, including the kernel modules.

Thus, I appended I realized that i was missing to put TOOLCHAIN_TARGET_TASK_append = " kernel-devsrc" in my local.conf file.

The problem is that when I try to do a typical "bitbake -c populate_sdk <my-image>", I am facing an the following error:

 

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-fb/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/etc/dnf/dnf.conf --setopt=reposdir=/home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-fb/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/etc/yum.repos.d --repofrompath=oe-repo,/home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-sdk-repo --installroot=/home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-fb/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi --setopt=logdir=/home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp --nogpgcheck install packagegroup-core-tools-debug alsa-utils dropbear packagegroup-core-eclipse-debug kernel-modules kernel-devsrc pjproject run-postinsts packagegroup-core-boot packagegroup-core-standalone-sdk-target tcf-agent' returned 1:
Added oe-repo repo from /home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-sdk-repo
Last metadata expiration check: 0:00:01 ago on Wed 05 Dec 2018 02:29:54 PM CET.
Error:
 Problem: conflicting requests
  - nothing provides /bin/awk needed by kernel-devsrc-1.0-r0.imx7d_alcad

 

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /home/alcad/imx-yocto-bsp/alcad_chc/tmp/work/imx7d_alcad-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.15461
ERROR: Task (/home/alcad/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk) failed with exit code '1'

 

My using the following setup:

- Platform: iMX7D-SDB

- NXP Yocto Release - 4.9.88-2.0 - Rocko

- Host: Ubuntu 16.04

 

Any hints would be appreciated,

Regards

Outcomes