DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: "Jan Lübbe" <jlu@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH 8/8] v7a: enable RAUC bundle creation
Date: Tue, 25 Apr 2023 20:38:29 +0200	[thread overview]
Message-ID: <20230425183829.2i7uvaytmxif3ldc@pengutronix.de> (raw)
In-Reply-To: <64f32276b6335ee9693e90fb8ca8a914b0afe1db.camel@pengutronix.de>

On Mon, Feb 13, 2023 at 08:42:19AM +0100, Jan Lübbe wrote:
> On Sun, 2023-02-12 at 23:14 +0100, Roland Hieber wrote:
> > Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > ---
> >  configs/platform-v7a/platformconfig | 12 +++++++++++-
> >  1 file changed, 11 insertions(+), 1 deletion(-)
> > 
> > diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
> > index 5bd6cebcbf9c..ec430ff1e5e5 100644
> > --- a/configs/platform-v7a/platformconfig
> > +++ b/configs/platform-v7a/platformconfig
> > @@ -269,7 +269,12 @@ PTXCONF_IMAGE_KERNEL_INSTALL_EARLY=y
> >  # end of Generate images/linuximage    
> >  
> >  PTXCONF_IMAGE_LXA_MC1=y
> > -# PTXCONF_IMAGE_RAUC is not set
> > +PTXCONF_IMAGE_RAUC=y
> > +PTXCONF_IMAGE_RAUC_DESCRIPTION="DistroKit"
> > +# PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_PLAIN is not set
> > +PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_VERITY=y
> > +# PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_CRYPT is not set
> 
> Does this use ext4 or tar? If ext4, you should enable adaptive updates:
> https://rauc.readthedocs.io/en/latest/advanced.html#adaptive-updates
> 
> You only need to set adaptive=block-hash-index in the [image.*] section of the
> manifest. Depending on how your ext4 is configured, you may need to align the
> size to 4KiB.

Currently PTXdist configures genimage to use root.tar.gz in the bundle.
I think it would be possible to configure it to use the ext4 too, but
a patch in PTXdist would be necessary.

 - Roland

> > +# PTXCONF_IMAGE_RAUC_INTERMEDIATE is not set
> >  PTXCONF_IMAGE_RIOTBOARD=y
> >  # PTXCONF_IMAGE_ROOT_CPIO is not set
> >  PTXCONF_IMAGE_ROOT_EXT=y
> > @@ -316,6 +321,7 @@ PTXCONF_HOST_EXTRACT_CERT=y
> >  PTXCONF_HOST_FLEX=y
> >  PTXCONF_HOST_GENEXT2FS=y
> >  PTXCONF_HOST_GENIMAGE=y
> > +PTXCONF_HOST_GLIB=y
> >  PTXCONF_HOST_LIBCONFUSE=y
> >  PTXCONF_HOST_LIBFFI=y
> >  PTXCONF_HOST_LIBKMOD=y
> > @@ -330,12 +336,16 @@ PTXCONF_HOST_NINJA=y
> >  PTXCONF_HOST_OPENSC=y
> >  PTXCONF_HOST_OPENSSL=y
> >  PTXCONF_HOST_P11_KIT=y
> > +PTXCONF_HOST_PCRE2=y
> > +PTXCONF_HOST_RAUC=y
> >  PTXCONF_HOST_SOFTHSM=y
> >  PTXCONF_HOST_SQLITE=y
> > +PTXCONF_HOST_SQUASHFS_TOOLS=y
> >  PTXCONF_HOST_SYSTEM_BC=y
> >  PTXCONF_HOST_SYSTEM_PYTHON3=y
> >  PTXCONF_HOST_SYSTEM_PYTHON3_SETUPTOOLS=y
> >  PTXCONF_HOST_UTIL_LINUX=y
> > +PTXCONF_HOST_ZLIB=y
> >  PTXCONF_HOST_TF_A=y
> >  
> >  #
> 
> -- 
> 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 |
> 
> 

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



  reply	other threads:[~2023-04-25 18:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-12 22:14 [DistroKit] [PATCH 0/8] v7a: add redundant update support via RAUC Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 1/8] rauc-udev: add a compatibility layer for mapping partitions Roland Hieber
2023-02-13  9:43   ` Michael Olbrich
2023-03-02  9:33     ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 2/8] v7a: add RAUC support for qemu-vexpress Roland Hieber
2023-03-08  9:33   ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 3/8] v7a: add RAUC support for beaglebone black Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 4/8] v7a: add RAUC support for rpi3 Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 5/8] v7a: add RAUC support for riotboard Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 6/8] v7a: kernel: enable features necessary for RAUC Roland Hieber
2023-02-13  7:33   ` Jan Lübbe
2023-02-12 22:14 ` [DistroKit] [PATCH 7/8] rauc: add initial support Roland Hieber
2023-02-13  7:37   ` Jan Lübbe
2023-03-02  9:41     ` Roland Hieber
2023-03-02 10:34       ` Jan Lübbe
2023-03-02 16:09         ` Michael Olbrich
2023-03-08  9:45           ` Roland Hieber
2023-02-12 22:14 ` [DistroKit] [PATCH 8/8] v7a: enable RAUC bundle creation Roland Hieber
2023-02-13  7:42   ` Jan Lübbe
2023-04-25 18:38     ` Roland Hieber [this message]
2023-02-13  7:48 ` [DistroKit] [PATCH 0/8] v7a: add redundant update support via RAUC Marco Felsch
2023-02-13  9:35   ` Roland Hieber
2023-03-07 12:04 ` Ahmad Fatoum
2023-03-08 10:11   ` Roland Hieber

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=20230425183829.2i7uvaytmxif3ldc@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=jlu@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