mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: "Jan Lübbe" <jlu@pengutronix.de>
To: Brian Hutchinson <b.hutchman@gmail.com>, rauc@pengutronix.de
Subject: Re: [RAUC] Create bundles from command line outside of yocto?
Date: Tue, 25 May 2021 08:56:58 +0200	[thread overview]
Message-ID: <592943eab0a32f9e1b892960e84e0524a6f56c14.camel@pengutronix.de> (raw)
In-Reply-To: <CAFZh4h_91nRjmXETrgOfiW_FJdhrvdVODrxaCr9fn-Vx9_g-bA@mail.gmail.com>

On Mon, 2021-05-24 at 22:54 -0400, Brian Hutchinson wrote:
Hi,

I've been looking at Leon Anavi's RAUC Rpi4 example.  He's got his own meta-rauc
layer where bundles are created in Yocto recipe ... but I need to create bundles
with command line outside of Yocto system.

I've basically got tar files for kernel image/dtb, rootfs and appfs.  Want to
make a bundle of these three tar files that go to slots that look like:


RAUC slot A:
/dev/mmcblk2gp0p1 (kernel/dtb)
/dev/mmcblk2gp0p2 (rootfs)
/dev/mmcblk2p1 (appfs)

RAUC slot B:
/dev/mmcblk2gp1p1 (kernel/dtb)
/dev/mmcblk2gp1p2 (rootfs)
/dev/mmcblk2p2 (appfs)

This is not fully correct. Each of these is a slot.


Are there any examples on how to do this via command line?

The on-target-side (system.conf) ist the same as with yocto.

To create the bundle, you need to write the manifest you self and place it
together with your filesystem archives. The relevant documentation is
https://rauc.readthedocs.io/en/latest/using.html#creating-bundles and the
example & reference linked from there.

So your manifest might look like:
[update]
compatible=rauc-example
version=2021.05-1

[bundle]
format=verity

[image.kernel]
filename=kernel.img

[image.rootfs]
filename=rootfs.tar

[image.appfs]
filename=appfs.tar


Best regards,
Jan

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
RAUC mailing list

  reply	other threads:[~2021-05-25  6:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  2:54 Brian Hutchinson
2021-05-25  6:56 ` Jan Lübbe [this message]
2021-06-15  4:17   ` Brian Hutchinson
2021-06-15 19:07     ` Brian Hutchinson
2021-06-15 21:32       ` Brian Hutchinson
2021-06-16  5:06         ` Enrico Jörns
2021-06-16 12:45           ` Brian Hutchinson
2021-06-17 10:20             ` Enrico Jörns
2021-06-17 12:42               ` Brian Hutchinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=592943eab0a32f9e1b892960e84e0524a6f56c14.camel@pengutronix.de \
    --to=jlu@pengutronix.de \
    --cc=b.hutchman@gmail.com \
    --cc=rauc@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox