Skip to contentSkip to conversation

daisy: runtime-reverse/udev-hwdb missing during do_rootfs

DISCUSSION Darren Hart 2 participants 3 messages Sep 24, 2014

lore
Share & tools
lore
#0 lore raw

Hi all,

I've hit the following on a custom image recipe (based on core-image):

| Configuring run-postinsts.
|
| NOTE: Installing complementary packages ...
| NOTE: Running intercept scripts:
| NOTE: Executing write_package_manifest ...
| DEBUG: Executing python function write_package_manifest
| DEBUG: Python function write_package_manifest finished
| NOTE: Executing license_create_manifest ...
| DEBUG: Executing shell function license_create_manifest
| ls: cannot access
/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/sysroots/intel-
internal-corei7-64/pkgdata/runtime-reverse/udev-hwdb: No such file or
directory
| readlink: missing operand
| Try 'readlink --help' for more information.
| basename: missing operand
| Try 'basename --help' for more information.
| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_rootfs finished
| ERROR: Function failed: license_create_manifest (log file is located at

/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/work/intel_inte rnal_corei7_64-eywa-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_r ootfs.15414)
ERROR: Task 150 (/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta/recipes-core/i mages/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4727 tasks of which 4697 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Using the daisy branch of the following layers (poky, meta-intel, and meta-oe layers):

BBLAYERS ?= " \
/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta \
/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta-yocto \
/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta-yocto-bsp \
"
BBLAYERS_NON_REMOVABLE ?= " \
/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta \
/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta-yocto \
"

# Automatically generated by bitbake-shell (bs)
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta-yocto" BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-openembedded/meta-n etworking"
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-intel" BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-openembedded/meta-x fce"
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-openembedded/meta-o e"
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-openembedded/meta-m ultimedia"
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/meta-openembedded/meta-g nome"
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/eywa/meta" BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/eywa/meta-intel-internal "
BBLAYERS += "/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta"

Is this a known issue? Have others hit this or have a workaround?

Signature · 2 lines
Darren Hart					Open Source Technology Center
[email protected]				            Intel Corporation
#1 lore raw
Quoted 22 lines · Darren Hart

I've hit the following on a custom image recipe (based on core-image):

| Configuring run-postinsts.
|
| NOTE: Installing complementary packages ...
| NOTE: Running intercept scripts:
| NOTE: Executing write_package_manifest ...
| DEBUG: Executing python function write_package_manifest
| DEBUG: Python function write_package_manifest finished
| NOTE: Executing license_create_manifest ...
| DEBUG: Executing shell function license_create_manifest
| ls: cannot access
/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/sysroots/intel-
internal-corei7-64/pkgdata/runtime-reverse/udev-hwdb: No such file or
directory
| readlink: missing operand
| Try 'readlink --help' for more information.
| basename: missing operand
| Try 'basename --help' for more information.
| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_rootfs finished
| ERROR: Function failed: license_create_manifest (log file is located at
Quoted 9 lines

/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/work/intel_inte rnal_corei7_64-eywa-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_r ootfs.15414)
ERROR: Task 150 (/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta/recipes-core/i mages/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4727 tasks of which 4697 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

I don't know why it does this but I can perhaps give some pointers as to where to look.

udev-hwdb was installed in the image. First question is whether that is actually in the build dependencies. "bitbake core-image-minimal-initramfs -c rootfs -g", then grep task-depends.dot and see if udev is in there. If not, there is the question of why the image is installing something not in its dependency list. a "bitbake udev" will probably make the problem "disappear".

If it is there, we have a dependency so the question is why the file doesn't exist. udev do_packagedata should write out files into sysroots/intel-internal-corei7-64/pkgdata/runtime-reverse/ for each package it generates. Are the other udev packages there? Is there a stamp for the udev do_packagedata task?

Cheers,

Richard

#2 lore raw
Quoted 44 lines · Richard Purdie
Quoted 34 lines · Darren Hart

I've hit the following on a custom image recipe (based on core-image):

| Configuring run-postinsts.
|
| NOTE: Installing complementary packages ...
| NOTE: Running intercept scripts:
| NOTE: Executing write_package_manifest ...
| DEBUG: Executing python function write_package_manifest
| DEBUG: Python function write_package_manifest finished
| NOTE: Executing license_create_manifest ...
| DEBUG: Executing shell function license_create_manifest
| ls: cannot access

/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/sysroots/inte l-
internal-corei7-64/pkgdata/runtime-reverse/udev-hwdb: No such file or directory

| readlink: missing operand
| Try 'readlink --help' for more information.
| basename: missing operand
| Try 'basename --help' for more information.
| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_rootfs finished
| ERROR: Function failed: license_create_manifest (log file is located

at

/build/yocto/daisy/intel-corei7-64_20140718205500/build/tmp/work/intel_in te

rnal_corei7_64-eywa-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do _r
ootfs.15414)
ERROR: Task 150

Quoted 8 lines

(/build/yocto/daisy/intel-corei7-64_20140718205500/poky/meta/recipes-core /i
mages/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4727 tasks of which 4697 didn't need to be
rerun and 1 failed.
Waiting for 0 running tasks to finish:

Quoted 7 lines

I don't know why it does this but I can perhaps give some pointers as to where to look.

udev-hwdb was installed in the image. First question is whether that is actually in the build dependencies. "bitbake core-image-minimal-initramfs -c rootfs -g", then grep task-depends.dot and see if udev is in there.

This was due to switching between systemd in DISTRO_FEATURES and not. Cleaning systemd and udev and rebuilding resolved the issue.

Lesson: use different tmp when changing DISTRO_FEATURES.

Signature · 2 lines
Darren Hart					Open Source Technology Center
[email protected]				            Intel Corporation