From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Nov 2025 17:03:31 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vL1hT-0021cA-0H for lore@lore.pengutronix.de; Mon, 17 Nov 2025 17:03:31 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vL1hS-0000bn-Rb; Mon, 17 Nov 2025 17:03:30 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vL1hJ-0000bd-56; Mon, 17 Nov 2025 17:03:21 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vL1hI-000wCu-06; Mon, 17 Nov 2025 17:03:20 +0100 Received: from localhost ([127.0.0.1] helo=[IPv6:::1]) by ptz.office.stw.pengutronix.de with esmtp (Exim 4.98.2) (envelope-from ) id 1vL1hH-0000000DkMK-3YHy; Mon, 17 Nov 2025 17:03:19 +0100 Message-ID: <03a16f67487f0895a5e9a57d5786bf302fa5cfaa.camel@pengutronix.de> To: =?UTF-8?Q?=E5=A4=A7=E5=8E=9F_=E5=8C=A0=E6=B1=B0?= , "rauc@pengutronix.de" Date: Mon, 17 Nov 2025 17:03:19 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2+deb12u1 MIME-Version: 1.0 Subject: Re: [RAUC] Inquiry About Initializing Both Slots with RAUC Without Reboot X-BeenThere: rauc@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Jan_L=C3=BCbbe_via_RAUC?= Reply-To: Jan =?ISO-8859-1?Q?L=FCbbe?= Sender: "RAUC" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: rauc-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hi Ohara, On Mon, 2025-11-17 at 02:52 +0000, =E5=A4=A7=E5=8E=9F =E5=8C=A0=E6=B1=B0 vi= a RAUC wrote: > Dear RAUC Development Team, > I am currently working on a product that uses RAUC and involves a dual-sl= ot > (A/B) update setup.=C2=A0 > During factory initialization, we would like to write an image to both sl= ots > without rebooting between operations. Please note that in general factory bring-up is considered out-of-scope for RAUC:https://rauc.readthedocs.io/en/latest/index.html#and-what-not:~:text= =3DAnd%20finally%2C%20factory%20bring%20up%20of%20your%20device > The system uses an eMMC with two slots for RAUC as follows: > =C2=A0* /dev/mmcblk0p1=C2=A0=E2=86=92 slot.A (on eMMC) > =C2=A0* /dev/mmcblk0p2=C2=A0=E2=86=92 slot.B (on eMMC) > During the factory process, we Boot from an SD card that contains a separ= ate > partition for initialization: > =C2=A0* /dev/mmcblk1p1=C2=A0=E2=86=92 Factory initialization partition (o= n SD card) > Currently, even when booting from the SD card, one of the eMMC slots (A o= r B) > is still recognized as the active slot by RAUC. That should not happen, but don't know enough details about your setup to recommend anything specific. Please check: https://rauc.readthedocs.io/en/latest/integration.html#booted-slot-detectio= n (specially the section on 'rauc.external') > As a result, the factory image is only written to the inactive slot. > Is there a way to configure RAUC to explicitly write to both slots (A and= B) > during the factory initialization process, without requiring a reboot bet= ween > slot updates? When you've told RAUC that none of your slots is active, you'll probably ne= ed https://github.com/rauc/rauc/pull/1525 as well. This is part of the v1.15 release. Regards, Jan > Thank you very much in advance for your support. > Best regards, > =E2=80=82=E2=80=82=E2=80=82=E2=80=82Ohara --=20 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 |