[yocto] do_rootfs failed (not sure why)

Gaurav Kalra gvkalra at gmail.com
Thu May 16 23:42:02 PDT 2019


Hi,

I am new in the Yocto world and have started learning the concepts recently.
A big thanks to the broadcasts on twitch and numerous youtube videos.

What I am doing: Modifying boot2qt (
https://codereview.qt-project.org/gitweb?p=yocto/meta-boot2qt.git;a=shortlog;h=refs/heads/thud)
as my blueprint for raspberry-pi.

Mostly:
1. Modifying the configuration of packages (e.g., systemd conf files)
2. Adding new recipes
3. Keeping Qt updated

"Sometimes", I face this strange error in do_rootfs(), while
installing binutils-lic package inside the image.

[...]
ERROR: seesv-embedded-qt5-image-1.0-r0 do_rootfs: Unable to install
packages. Command
'/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg
--volatile-cache -f
/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/opkg.conf
-t
/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/temp/ipktemp/
-o
/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/rootfs
 --force_postinstall --prefer-arch-to-version   install opkg
packagegroup-b2qt-embedded-base packagegroup-b2qt-embedded-gstreamer
packagegroup-b2qt-embedded-tools packagegroup-b2qt-qt5-modules
packagegroup-base-extended packagegroup-core-boot
packagegroup-core-ssh-dropbear packagegroup-core-tools-debug
packagegroup-core-tools-profile run-postinsts' returned -11:
[...]
Installing openssh-lic (7.8p1+git) on root
Downloading
file:/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/oe-rootfs-repo/cortexa7t2hf-neon-vfpv4/openssh-lic_7.8p1+git-r0_cortexa7t2hf-neon-vfpv4.ipk.
Installing binutils-lic (2.31) on root
Downloading
file:/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/oe-roo
ERROR: seesv-embedded-qt5-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/temp/log.do_rootfs.21682
ERROR: Task
(/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/sources/meta-seesv/meta-seesv-distro/recipes-qt/images/seesv-embedded-qt5-image.bb:do_rootfs)
failed with exit code '1'
[...]

Notice:
In the log "Downloading
file:/media/gvkalra/66bef40b-d84f-4ad0-ada6-a025b494ca5d/seesv-distro/build-raspberrypi3/tmp/work/raspberrypi3-poky-linux-gnueabi/seesv-embedded-qt5-image/1.0-r0/oe-roo",
bitbake didn't finish writing the whole path to the console. (I don't know
why)

I have tried "bitbake -c cleansstate binutils" and rebuilding the image
(again same error)

Previously when I faced this error, I deleted everything and started from
scratch (compiling everything) - it worked!
But it takes too long, so this time I thought it's best to discuss in the
mailing list.

Any ideas of what could be the reason?

PS: I am open to share any logs you'd like to have.

--
Gaurav Kalra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190517/6c1f8a01/attachment.html>


More information about the yocto mailing list