Integrating mender with yocto(core-image-sato)

You’ll need to share more than that from your build log.

Also can you share the output of bitbake -e core-image-sato | grep ^IMAGE_FSTYPES=

Drew

hello drew

ravi_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato
Loading cache: 100% |##########################################################################################################| Time: 0:00:00
Loaded 3505 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)
Consider defining a PREFERRED_RPROVIDER entry to match u-boot-default-env

Build Configuration:
BB_VERSION = “1.46.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “aarch64-poky-linux”
MACHINE = “raspberrypi4-64”
DISTRO = “poky”
DISTRO_VERSION = “3.1.6”
TUNE_FEATURES = “aarch64 cortexa72 crc crypto”
TARGET_FPU = “”
meta
meta-poky
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”
meta-gnome
meta-multimedia
meta-networking
meta-oe
meta-python
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”
meta-mender-core
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:05
Sstate summary: Wanted 45 Found 42 Missed 3 Current 2803 (93% match, 99% complete)
NOTE: Executing Tasks
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_tar) failed with exit code ‘134’
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic) failed with exit code ‘134’
NOTE: Tasks Summary: Attempted 7097 tasks of which 7087 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_tar
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic
ravi_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ vim conf/local.conf

======================================================

ravi_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake -e core-image-sato | grep ^IMAGE_FSTYPES=
IMAGE_FSTYPES="tar.bz2 ext3 wic.bz2 wic.bmap mender mender.bmap sdimg sdimg.bmap sdimg.bz2 "

please find the atached log

Hmm. I’m not sure why you would have “wic” in there. Try adding the following to local.conf

IMAGE_FSTYPES_remove = " wic.bz2 wic.bmap"

hello drew,
On applying the above variable in the local.conf we are removing one error but the error for generating the tar file still persists.

ravi_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato
Parsing recipes: 100% |########################################################################################################| Time: 0:02:33
Parsing of 2386 .bb files complete (0 cached, 2386 parsed). 3505 targets, 146 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)
Consider defining a PREFERRED_RPROVIDER entry to match u-boot-default-env

Build Configuration:
BB_VERSION = “1.46.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “aarch64-poky-linux”
MACHINE = “raspberrypi4-64”
DISTRO = “poky”
DISTRO_VERSION = “3.1.6”
TUNE_FEATURES = “aarch64 cortexa72 crc crypto”
TARGET_FPU = “”
meta
meta-poky
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”
meta-gnome
meta-multimedia
meta-networking
meta-oe
meta-python
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”
meta-mender-core
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:06
Sstate summary: Wanted 41 Found 38 Missed 3 Current 2807 (92% match, 99% complete)
NOTE: Executing Tasks
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_tar) failed with exit code ‘134’
NOTE: Tasks Summary: Attempted 7096 tasks of which 7086 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_tar

pls help me out.

1 Like

Can you add “tar” to the previous setting of IMAGE_FSTYPES_remove?

Hello drew,
If i remove tar in the IMAGE_FSTYPES_remove tar file of the rootfs will not be generated.

Regards,
RAVI

But what do you need that file for? The Mender integration creates the SDIMG file which is what you need to use for proper Mender functionality. At the very least can you remove it temporarily and see if your build succeeds?

hello drew ,
I have tried removing the tar but the build was not successfull.
…Pls find the build error below…
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_sdimg) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 7097 tasks of which 6909 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_mender
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_sdimg
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

There should be a file somewhere under tmp/work called log.do_image_sdimg. Can you find that and post it?

hello drew,
here it is not allowing to post a log file here. any other alternative through which i can post.

From your log file:

ERROR: Actual rootfs size (37964 kB) is larger than allowed size 16384 kB

You need to increase the value of MENDER_STORAGE_TOTAL_SIZE_MB

yes, i have increased the size now getting a new one
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_mender) failed with exit code ‘134’

Is there anything more do i need to include in my local.conf??

Thanks

I have no idea. You are not sharing the information from the build logs which shows the actual cause of the error. There should be something higher up in the log. Or perhaps a log.do_image_mender file.

ravi_uppada@raviuppada-HP-EliteBook-Folio-9480m:~/work/vm/test/poky/build$ bitbake core-image-sato
Parsing recipes: 100% |########################################################################################################| Time: 0:02:22
Parsing of 2386 .bb files complete (0 cached, 2386 parsed). 3505 targets, 146 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime u-boot-default-env (libubootenv, u-boot)
Consider defining a PREFERRED_RPROVIDER entry to match u-boot-default-env

Build Configuration:
BB_VERSION = “1.46.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “aarch64-poky-linux”
MACHINE = “raspberrypi4-64”
DISTRO = “poky”
DISTRO_VERSION = “3.1.6”
TUNE_FEATURES = “aarch64 cortexa72 crc crypto”
TARGET_FPU = “”
meta
meta-poky
meta-yocto-bsp = “dunfell:a13bda44fcda4e79e9aed39ca1495eabecb6a7b7”
meta-gnome
meta-multimedia
meta-networking
meta-oe
meta-python
meta-xfce = “dunfell:de37512b25c1f8c6bb6ab2b3782ac0fe01443483”
meta-raspberrypi = “dunfell:77190af02d48adc2b28216775e6318e9eeda571c”
meta-mender-core
meta-mender-raspberrypi = “dunfell:f5864bfb32906b87cc24d5b84e74805994f0ef3e”

Initialising tasks: 100% |#####################################################################################################| Time: 0:00:06
Sstate summary: Wanted 40 Found 37 Missed 3 Current 2808 (92% match, 99% complete)
NOTE: Executing Tasks
ERROR: Task (/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_mender) failed with exit code ‘134’
NOTE: Tasks Summary: Attempted 7096 tasks of which 7087 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ravi_uppada/work/vm/test/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_mender

“DEBUG: Executing python function prepare_excluded_directories” only this line is present in the log.
This is the complete info.

inside your yocto build directory run the following to locate the file @drewmoseley is requesting that should shed more light on why its failing

find tmp/ -name "*log.do_image_sdimg"