mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: "Enrico Jörns via RAUC" <rauc@pengutronix.de>
To: "大原 匠汰" <shota.ohara@nds-osk.co.jp>,
	"rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: Re: [RAUC] Question about updating using Casync in RAUC v1.8
Date: Wed, 02 Jul 2025 09:28:24 +0200	[thread overview]
Message-ID: <6f35f8dd0d528d2addf4f46d4ba702f3b73a00de.camel@pengutronix.de> (raw)
In-Reply-To: <OS3PR01MB69982EBC6D3B3CFBB0D51357F540A@OS3PR01MB6998.jpnprd01.prod.outlook.com>

Hi Ohara,

Am Mittwoch, dem 02.07.2025 um 02:28 +0000 schrieb 大原 匠汰 via RAUC:
> Hi,
> I have a question about updating using Casync in RAUC v1.8.

Note that this version of RAUC is already 3 years old and should probably not be used for new
developments.

> 1. The documentation says that when updating using Casync,
> the current SLOT in the boot is used as the seed and the differences are downloaded.
> https://rauc.readthedocs.io/en/v1.8/advanced.html#rauc-casync-support 
> If this is the case, will rewriting the current SLOT during the update cause problems?

What's the use case for rewriting the current slot?
In most cases, this should be the slot the system is currently booted from.

> 2.If so, is it necessary to set the SLOT to ReadOnly?

The casync seed store is internally realized using symlinks with storage locations encoded.
After seeding, when actually reading a chunk from the store, this should be hashed and compared
again and produce an error internally if the underlying data changed. This should lead to ignoring
this seed chunk and to download the chunk from the (remote) chunk store instead.

So, yes, in general the seed slot should be read-only.
But it should also work if some of the data gets corrupted between seeding and writing.

Further details on this are probably more a casync-related question.


Regards, Enrico

> 3.If not, or if it is not necessary to set ReadOnly, please tell us why.
> 
> That is all.
> 
> Regards,
>       Ohara
> --------------------------------
> OSAKA NDS Co.,Ltd.
> Ohara Shota
> e-mail: shota.ohara@nds-osk.co.jp
> --------------------------------
> 

-- 
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    |



       reply	other threads:[~2025-07-02  7:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OS3PR01MB69982EBC6D3B3CFBB0D51357F540A@OS3PR01MB6998.jpnprd01.prod.outlook.com>
2025-07-02  7:28 ` Enrico Jörns via RAUC [this message]
     [not found]   ` <OS9PR01MB140764AE9F1C1693E3AD1AE6DF550A@OS9PR01MB14076.jpnprd01.prod.outlook.com>
2025-07-24  7:23     ` Jan Lübbe via RAUC

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=6f35f8dd0d528d2addf4f46d4ba702f3b73a00de.camel@pengutronix.de \
    --to=rauc@pengutronix.de \
    --cc=ejo@pengutronix.de \
    --cc=shota.ohara@nds-osk.co.jp \
    /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