Bitbake error when populating_sdk with "kernel-devsrc"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbake error when populating_sdk with "kernel-devsrc"

3,853 Views
georgefff
Contributor II

#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

Labels (3)
Tags (2)
3 Replies

2,371 Views
davidvescovi
Contributor V

I had a very similar issue.

I was attempting to add kernel-devsrc and I get this error:

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/build/yocto/imx-yocto-bsp/bld8mq-xwa
yland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/build/yocto/imx
-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-xwayland/4.14-sumo/sysroots/aarch64-poky-linux/etc/dnf/dnf.conf --setopt=reposdir=/home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-xwayland/4.14-sumo/sysroots/aarch64-poky-linux/etc/yum.repos.d --repofrompath=oe-repo,/home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo --installroot=/home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/fsl-imx-xwayland/4.14-sumo/sysroots/aarch64-poky-linux --setopt=logdir=/home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp --nogpgcheck install kernel-devsrc packagegroup-core-boot packagegroup-core-standalone-sdk-target packagegroup-fsl-optee-imx run-postinsts target-sdk-provides-dummy' returned 1:
Added oe-repo repo from /home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo
Last metadata expiration check: 0:00:04 ago on Thu 20 Jun 2019 04:07:49 PM UTC.
Error:
 Problem: conflicting requests
  - nothing provides /usr/bin/python needed by kernel-devsrc-1.0-r0.imx8mmevk
ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /home/build/yocto/imx-yocto-bsp/bld8mq-xwayland/tmp/work/imx8mmevk-poky-linux/core-ima
ge-minimal/1.0-r0/temp/log.do_populate_sdk.7559
ERROR: Task (/home/build/yocto/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk) failed with exit code 1
I assume I can do something similar???
Hints?
0 Kudos

2,371 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi George,

Use this, just to avoid awk issues. So adding this to kernel-devsrc.bbappend

do_install_append() {
# This fixes the rpm dependency failure on install of kernel-devsrc depending on /bin/awk
cd ${D} || true
for i in $(grep -srI "!/bin/awk" | cut -d":" -f1); do
sed -i -e "s#!/bin/awk#!/usr/bin/env awk#g" $i
done
}

regards

2,371 Views
georgefff
Contributor II

It worked!

You really rock!

:smileyhappy:

0 Kudos