Skip to contentSkip to conversation

do_rootfs failed

DISCUSSION [email protected] 3 participants 11 messages Dec 12, 2023 – Dec 14, 2023

lore
Share & tools
lore
#0 lore raw

Hello all,
I am new to Yocto, so please be patient.

I added layers meta-intel and meta-realtime to poky. Now
bitbake core-image-rt-extended
tells me:

Summary: 1 task failed:
/home/vboxuser/Documents/poky/meta-realtime/recipes-extended/images/core-image-rt-extended.bb:do_rootfs

and at the end of log.do_rootfs I see:

NOTE: Running intercept scripts:
NOTE: > Executing update_gio_module_cache intercept ...
NOTE: Exit code 127. Output:
/home/vboxuser/Documents/poky/build/tmp/work/genericx86_64-poky-linux/core-image-rt-extended/1.0/intercept_scripts-4d6b1b8857aea9ead0c0757d1be3a10e464187681f98f3ad9c7448104f320d6e/update_gio_module_cache: 13: qemuwrapper: not found
ERROR: The postinstall intercept hook 'update_gio_module_cache' failed, details in /home/vboxuser/Documents/poky/build/tmp/work/genericx86_64-poky-linux/core-image-rt-extended/1.0/temp/log.do_rootfs

On the internet I can find some discussions about problems with qemuwrapper. All very old, and none seem suitable.

Do you have any suggestion?

Thank you in advance,

Daniele Lugli

#1 lore raw

which release of yocto are you on. Its always good to include Build Configuration that bitbake prints at the beginning. Secondly make sure you are using tested distro on build host for that release of yocto for best results

Quoted 38 lines · On Tue, Dec 12, 2023 at 10:20 AM <[email protected]> wrote:

Hello all,
I am new to Yocto, so please be patient.

I added layers meta-intel and meta-realtime to poky. Now
bitbake core-image-rt-extended
tells me:

Summary: 1 task failed:
/home/vboxuser/Documents/poky/meta-realtime/recipes-extended/images/core-image-rt-extended.bb:do_rootfs

and at the end of log.do_rootfs I see:

NOTE: Running intercept scripts:
NOTE: > Executing update_gio_module_cache intercept ...
NOTE: Exit code 127. Output:
/home/vboxuser/Documents/poky/build/tmp/work/genericx86_64-poky-linux/core-image-rt-extended/1.0/intercept_scripts-4d6b1b8857aea9ead0c0757d1be3a10e464187681f98f3ad9c7448104f320d6e/update_gio_module_cache: 13: qemuwrapper: not found
ERROR: The postinstall intercept hook 'update_gio_module_cache' failed, details in /home/vboxuser/Documents/poky/build/tmp/work/genericx86_64-poky-linux/core-image-rt-extended/1.0/temp/log.do_rootfs

On the internet I can find some discussions about problems with qemuwrapper. All very old, and none seem suitable.

Do you have any suggestion?

Thank you in advance,

Daniele Lugli

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61863): https://lists.yoctoproject.org/g/yocto/message/61863
Mute This Topic: https://lists.yoctoproject.org/mt/103135158/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Thank you Khem for your reply.

From meta-poky/conf/distro/poky.conf:
DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)" DISTRO_VERSION = "4.3+snapshot-${METADATA_REVISION}" DISTRO_CODENAME = "nanbield"

From bitbake:
Build Configuration:
BB_VERSION           = "2.6.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "genericx86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.3+snapshot-4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10" TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "master:4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10" meta-oe              = "master:5ad7203f68987461baaf2699378d0cf36c11d6c2" meta-intel           = "master:5cfefd9a8ff1f5a3534c1ba9d7d7f6971ed5d56f" meta-realtime        = "master:489e1d6b34e46f845a4bfe6461a39c6a4bcb7794"

Working on Ubuntu 22.04.3 in VirtualBox

#3 lore raw
Quoted 27 lines · On Tue, Dec 12, 2023 at 10:51 AM <[email protected]> wrote:

Thank you Khem for your reply.

From meta-poky/conf/distro/poky.conf:
DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)" DISTRO_VERSION = "4.3+snapshot-${METADATA_REVISION}" DISTRO_CODENAME = "nanbield"

From bitbake:
Build Configuration:

BB_VERSION           = "2.6.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "genericx86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.3+snapshot-4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "master:4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10"
meta-oe              = "master:5ad7203f68987461baaf2699378d0cf36c11d6c2"
meta-intel           = "master:5cfefd9a8ff1f5a3534c1ba9d7d7f6971ed5d56f"
meta-realtime        = "master:489e1d6b34e46f845a4bfe6461a39c6a4bcb7794"
Quoted 1 line

Working on Ubuntu 22.04.3 in VirtualBox

this seems all good to me, I think somewhere dependency on qemuwrapper-cross is being lost in your image recipe perhaps. Add it with append and see if it helps. something like DEPENDS:append = " qemuwrapper-cross" in core-image-rt-extended.bb
and see if that helps.

#5 lore raw

Not sure. I don't see the original error any more, but

NOTE: No reply from server in 30s (for command ping at 02:08:20.176053) Timeout while waiting for a reply from the bitbake server (60s at 02:08:50.440750)

How can I know if this timeout happened before or after completion of the bitbake command?

Also, I see a lot of warning messages like these:

WARNING: rt-app-1.0-r0 do_package: URL: git://github.com/gbagnoli/rt-app.git uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.
WARNING: rt-app-1.0-r0 do_package: URL: git://github.com/gbagnoli/rt-app.git does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.

Are these important and how can they be cured?

Thank you again

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ ) www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

#6 lore raw
Quoted 11 lines · On Wed, Dec 13, 2023 at 8:03 AM <[email protected]> wrote:

Not sure. I don't see the original error any more, but

NOTE: No reply from server in 30s (for command ping at 02:08:20.176053) Timeout while waiting for a reply from the bitbake server (60s at 02:08:50.440750)

How can I know if this timeout happened before or after completion of the bitbake command?

Also, I see a lot of warning messages like these:

WARNING: rt-app-1.0-r0 do_package: URL: git://github.com/gbagnoli/rt-app.git uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.

Add ;protocol=https to the SRC_URI - see
https://docs.yoctoproject.org/migration-guides/migration-4.0.html#fetching-changes

Quoted 2 lines

WARNING: rt-app-1.0-r0 do_package: URL: git://github.com/gbagnoli/rt-app.git does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.

Figure out which branch the SRCREV referenced is on (probably master or main) and add ;branch=<branch> to the SRC_URI

Quoted 23 lines

Are these important and how can they be cured?

Thank you again

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com
www.linkedin.com/in/daniele-lugli

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61874): https://lists.yoctoproject.org/g/yocto/message/61874
Mute This Topic: https://lists.yoctoproject.org/mt/103135158/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 1 line
Alex Kiernan
#7 lore raw

Thank you Alex.
git branch --contains in poky/meta-realtime does not find the SRCREV 17be4548c4260b80be623e0e1317e98a770dea7a in any branch Anyway I added ;branch=master;protocol=https to the SRC_URI in rt-app.bb and the warnings disappeared. Good!

Khem:
I added
DEPENDS:append = " qemuwrapper-cross"
in core-image-rt-extended.bb
and I have no more failure in the postinstall intercept hook; log.do_rootfs is now clean. Good!

Unluckily this isn't yet the conclusion. What I get now is:

| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again
ERROR: Task (/home/vboxuser/Documents/poky/meta-realtime/recipes-extended/images/core-image-rt-extended.bb:do_image_wic) failed with exit code '1'

I verified that poky/meta/recipes-core/meta/wic-tools.bb already has e2fsprogs-native in its dependecncies, issued 'bitbake wic-tools' then again 'bitbake core-image-rt-extended' but mkfs.ext4 is still not found.

I will now try a clean bitbake by removing sstate-cache and tmp.

Any suggestion is appreciated.

My best regards

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ ) www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

#8 lore raw

I think change below line

https://git.yoctoproject.org/meta-realtime/tree/recipes-extended/images/core-image-rt-extended.bb#n3
to

DEPENDS:append = " linux-yocto"

and see if this helps.

Quoted 44 lines · On Wed, Dec 13, 2023 at 10:36 AM <[email protected]> wrote:

Thank you Alex.
git branch --contains in poky/meta-realtime does not find the SRCREV 17be4548c4260b80be623e0e1317e98a770dea7a in any branch Anyway I added ;branch=master;protocol=https to the SRC_URI in rt-app.bb and the warnings disappeared. Good!

Khem:
I added
DEPENDS:append = " qemuwrapper-cross"
in core-image-rt-extended.bb
and I have no more failure in the postinstall intercept hook; log.do_rootfs is now clean. Good!

Unluckily this isn't yet the conclusion. What I get now is:

| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again
ERROR: Task (/home/vboxuser/Documents/poky/meta-realtime/recipes-extended/images/core-image-rt-extended.bb:do_image_wic) failed with exit code '1'

I verified that poky/meta/recipes-core/meta/wic-tools.bb already has e2fsprogs-native in its dependecncies, issued 'bitbake wic-tools' then again 'bitbake core-image-rt-extended' but mkfs.ext4 is still not found.

I will now try a clean bitbake by removing sstate-cache and tmp.

Any suggestion is appreciated.

My best regards

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com
www.linkedin.com/in/daniele-lugli

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61883): https://lists.yoctoproject.org/g/yocto/message/61883
Unfollow This Topic: https://lists.yoctoproject.org/unft/103135158/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#9 lore raw

Ok thank you, I am going to try your suggestion.

So my core-image-rt-extended.bb is now as follows:

require recipes-core/images/core-image-minimal-dev.bb

DEPENDS:append = " linux-yocto"

DEPENDS:append = " qemuwrapper-cross"

IMAGE_FEATURES += "package-management ssh-server-dropbear" EXTRA_IMAGE_FEATURES = "tools-debug debug-tweaks tools-profile dbg-pkgs"

IMAGE_INSTALL = "\
${CORE_IMAGE_BASE_INSTALL} \
rt-app \
schedtool-dl \
"
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ ) www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

#10 lore raw
$ time bitbake core-image-rt-extended
...
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6713 tasks of which 6 didn't need to be rerun and all succeeded.
real 315m10.027s

Success this time !  Thank you all !

Now looking for what to burn from build/tmp/deploy/images/genericx86-64/ ... --
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ ) www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )