build fails with core-image-full-cmdline.ext4.gz not found error

112 views
Skip to first unread message

Thomas Poly

unread,
Apr 10, 2024, 6:55:03 PM4/10/24
to swup...@googlegroups.com

Hi Stefano,


I am new to swupdate.


I am building Yocto with swupdate on my machine which is Ubuntu 22.04 and have checked out Kirkstone ,


swupdate-yocto/layers$ git clone git://git.yoctoproject.org/poky -b kirkstone
swupdate-yocto/layers$ git clone https://github.com/openembedded/meta-openembedded.git -b kirkstone
swupdate-yocto/layers$ git clone https://github.com/sbabic/meta-swupdate -b kirkstone
swupdate-yocto/layers$ git clone https://github.com/sbabic/meta-swupdate-boards.git -b kirkstone


When I build, I get the following errors

ERROR: update-image-1.0-r0 do_swuimage: swupdate cannot find image file: /home/test/swupdate-yoct-test/swupdate-yocto/build/tmp/deploy/images/beaglebone-yocto/core-image-full-cmdline.ext4.gz

bitbake update-image
Loading cache: 100% |##########################################################################################| Time: 0:00:00
Loaded 2800 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “2.0.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “arm-poky-linux-gnueabi”
MACHINE = “beaglebone-yocto”
DISTRO = “poky”
DISTRO_VERSION = “4.0.17”
TUNE_FEATURES = “arm vfp cortexa8 neon callconvention-hard”
TARGET_FPU = “hard”
meta
meta-poky
meta-yocto-bsp = “kirkstone:1e0d58c53b7d9c3feb631e46666ae7a3e3614253”
meta-oe = “kirkstone:8bb16533532b6abc2eded7d9961ab2a108fd7a5b”
meta-swupdate = “kirkstone:3d12b2788a45d86efcb1ad3e01f209558c54795c”
meta-swupdate-boards = “kirkstone:965bcd8da5ad2174bd2ac05811580e44bbb0e036”

Initialising tasks: 100% |#####################################################################################| Time: 0:00:01
Sstate summary: Wanted 1 Local 0 Mirrors 0 Missed 1 Current 1638 (0% match, 99% complete)
NOTE: Executing Tasks
ERROR: update-image-1.0-r0 do_swuimage: swupdate cannot find image file: /home/test/swupdate-yoct-test/swupdate-yocto/build/tmp/deploy/images/beaglebone-yocto/core-image-full-cmdline.ext4.gz
ERROR: Logfile of failure stored in: /home/test/swupdate-yoct-test/swupdate-yocto/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/update-image/1.0-r0/temp/log.do_swuimage.3661374
ERROR: Task (/home/test/swupdate-yoct-test/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 4206 tasks of which 4205 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/test/swupdate-yoct-test/swupdate-yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage
Summary: There was 1 ERROR message, returning a non-zero exit code.


Is Kirkstone release supported with swupdate ? If not, which release should I be trying.


How is core-image-full-cmdline.ext4.gz getting created ?


Thanks,

Thomas





Thomas Poly

unread,
Apr 10, 2024, 6:57:56 PM4/10/24
to swupdate

Forgot to mention the target, this is build for Beaglebone.

Thomas Poly

unread,
Apr 17, 2024, 2:52:59 AM4/17/24
to swupdate
Hello all,

I have found the solution for this compilation error. This was due to the right et4.gz file was not created under tmp/deploy/images,
To get this working,  I had to make few changes

1, Modify update-image.bb

# images and files that will be included in the .swu image
-SWUPDATE_IMAGES = "core-image-full-cmdline"
+SWUPDATE_IMAGES = "core-image-full-cmdline-beaglebone-yocto"


2, Modify sw-description

                      copy1 : {
                                images: (
                                        {
-                                               filename = "core-image-full-cmdline-beaglebone.ext4.gz";
+                                               filename = "core-image-full-cmdline-beaglebone-yocto.ext4.gz";
                                                device = "/dev/mmcblk1p2";
                                                type = "raw";
                                                compressed = "zlib";
@@ -35,7 +35,7 @@ software =
                        copy2 : {
                                images: (
                                        {
-                                               filename = "core-image-full-cmdline-beaglebone.ext4.gz";
+                                               filename = "core-image-full-cmdline-beaglebone-yocto.ext4.gz";
                                                device = "/dev/mmcblk1p3";
                                                type = "raw";
                                                compressed = "zlib";
 
3, Update local.conf with the following changes

CORE_IMAGE_EXTRA_INSTALL += " \
        swupdate \
        swupdate-www \
"
IMAGE_FSTYPES = "ext4.gz"

Thanks,
Thomas
Reply all
Reply to author
Forward
0 new messages