mail archive of the meta-rauc mailing list
 help / color / mirror / Atom feed
* [meta-rauc] How to generate update bundle: With genimage or with recipe?
@ 2022-11-21 12:20 BAUER Bernd
  2022-11-22 19:28 ` Enrico Jörns
  0 siblings, 1 reply; 2+ messages in thread
From: BAUER Bernd @ 2022-11-21 12:20 UTC (permalink / raw)
  To: meta-rauc

Hi!

I use genimage for image generation.
This is an A/B system.
The bootloader is u-boot and switching the root partitions already works.

Looks something like this...
8<------------------------------------
image systemA.ext4 {
        size = 512M
        ext4 {
                label = "systemA"
        }
        mountpoint = "/"
}

image systemB.ext4 {
        size = 512M
        empty = true
        ext4 {
                label = "systemB"
        }
}

image log.ext4 {
        size = 128M
        empty = true
        ext4 {
                label = "log"
        }
}

image app.ext4 {
        size = 128M
        empty = true
        ext4 {
                label = "Application"
        }
}

image @IMAGE@ {
        hdimage {
                partition-table-type = "gpt"
                #gpt-location = 2M
        }

        partition bootloader {
                in-partition-table = false
                offset = 32K
                image = "u-boot.img"
        }

        partition systemA {
                in-partition-table = true
                bootable = true
                offset = 8M
                partition-type-uuid = "L"
                image = "systemA.ext4"
        }

        partition systemB {
                in-partition-table = true
                bootable = true
                partition-type-uuid = "L"
                image = "systemB.ext4"
        }

        partition log {
                in-partition-table = true
                partition-type-uuid = "L"
                image = "log.ext4"
        }

        partition app {
                in-partition-table = true
                partition-type-uuid = "L"
                image = "app.ext4"
        }
}
8<------------------------------------

Now I want to create an update bundle for one of the system partitions with rauc.
What is the best way to make the update bundle here?
With a recipe and "inherit bundle"?
Or should I do it with genimage?

I did this with a recipe and used my rootfs recipe as base.
Here I get an update bundle out, that is about 3GB big. This much too large.

Greets Bernd



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [meta-rauc] How to generate update bundle: With genimage or with recipe?
  2022-11-21 12:20 [meta-rauc] How to generate update bundle: With genimage or with recipe? BAUER Bernd
@ 2022-11-22 19:28 ` Enrico Jörns
  0 siblings, 0 replies; 2+ messages in thread
From: Enrico Jörns @ 2022-11-22 19:28 UTC (permalink / raw)
  To: BAUER Bernd, meta-rauc

Hi Bernd,

Am Montag, dem 21.11.2022 um 12:20 +0000 schrieb BAUER Bernd:
> Hi!
> 
> I use genimage for image generation.
> This is an A/B system.
> The bootloader is u-boot and switching the root partitions already works.
> 
> Looks something like this...
> 8<------------------------------------
> 
> 8<------------------------------------
> 
> Now I want to create an update bundle for one of the system partitions with rauc.
> What is the best way to make the update bundle here?
> With a recipe and "inherit bundle"?

this is the recommended way with meta-rauc, yes.

Since you only need the root file system image, this should be very little effort to create a bundle
recipe. Just have a look at

https://github.com/rauc/meta-rauc/blob/master/recipes-core/bundles/core-bundle-minimal.bb 

> Or should I do it with genimage?

Generating bundles with genimage is possible, too (as e.g. PTXdist does this), but I do not see any
benefit here in this constellation.

> I did this with a recipe and used my rootfs recipe as base.

(Ok, so my above example should not even be needed ;) )

> Here I get an update bundle out, that is about 3GB big. This much too large.

How did you get a 3 GB image for you (< 512MiB?) rootfs? Thus the images in your deploy dir should
have the same size? Maybe you have configured a large free space (IMAGE_ROOTFS_SIZE,
IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR)?


Best regards

Enrico

> Greets Bernd
> 
> 

-- 
Pengutronix e.K.                           | Enrico Jörns                |
Embedded Linux Consulting & Support        | https://www.pengutronix.de/ |
Steuerwalder Str. 21                       | Phone: +49-5121-206917-180  |
31137 Hildesheim, Germany                  | Fax:   +49-5121-206917-9    |




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-22 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21 12:20 [meta-rauc] How to generate update bundle: With genimage or with recipe? BAUER Bernd
2022-11-22 19:28 ` Enrico Jörns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox