From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 22 Nov 2022 20:28:58 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oxYx0-00FkOZ-19 for lore@lore.pengutronix.de; Tue, 22 Nov 2022 20:28:58 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oxYwz-00015q-08; Tue, 22 Nov 2022 20:28:57 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oxYwq-00015h-MA; Tue, 22 Nov 2022 20:28:48 +0100 Message-ID: <4f5a52f8963256cd00ae1439b7fddb2c7c2c78d3.camel@pengutronix.de> From: Enrico =?ISO-8859-1?Q?J=F6rns?= To: BAUER Bernd , "meta-rauc@pengutronix.de" Date: Tue, 22 Nov 2022 20:28:46 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [meta-rauc] How to generate update bundle: With genimage or with recipe? X-BeenThere: meta-rauc@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: meta-rauc Layer for Yocto - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "meta-rauc" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: meta-rauc-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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    |