From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 References: <592943eab0a32f9e1b892960e84e0524a6f56c14.camel@pengutronix.de> In-Reply-To: <592943eab0a32f9e1b892960e84e0524a6f56c14.camel@pengutronix.de> From: Brian Hutchinson Date: Tue, 15 Jun 2021 00:17:37 -0400 Message-ID: Subject: Re: [RAUC] Create bundles from command line outside of yocto? List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1719422157==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: =?UTF-8?Q?Jan_L=C3=BCbbe?= Cc: rauc@pengutronix.de --===============1719422157== Content-Type: multipart/alternative; boundary="000000000000baed2305c4c6414e" --000000000000baed2305c4c6414e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jan, So using your manifest example and my partition scheme from earlier ... RAUC A slots: /dev/mmcblk2gp0p1 (kernel/dtb) /dev/mmcblk2gp0p2 (rootfs) /dev/mmcblk2p1 (appfs) RAUC B slots: /dev/mmcblk2gp1p1 (kernel/dtb) /dev/mmcblk2gp1p2 (rootfs) /dev/mmcblk2p2 (appfs) On Tue, May 25, 2021 at 2:56 AM Jan L=C3=BCbbe wrote: > > So your manifest might look like: > [update] > compatible=3Drauc-example > version=3D2021.05-1 > > [bundle] > format=3Dverity > > [image.kernel] > filename=3Dkernel.img > > [image.rootfs] > filename=3Drootfs.tar > > [image.appfs] > filename=3Dappfs.tar > > > Best regards, > Jan > > > My system.conf (using my example partition layout for earlier email) file would look something like: [system] compatible=3Drauc-example bootloader=3Duboot [keyring] path=3D/etc/rauc/ca.cert.pem [slot.kernel.0] device=3D/dev/mmcblk2gp0p1 type=3Dvfat parent=3Drootfs.0 [slot.kernel.1] device=3D/dev/mmcblk2gp1p1 type=3Dvfat parent=3Drootfs.1 [slot.rootfs.0] device=3D/dev/mmcblk2gp0p2 type=3Dext4 bootname=3DA [slot.rootfs.1] device=3D/dev/mmcblk2gp1p2 type=3Dext4 bootname=3DB [slot.appfs.0] device=3D/dev/mmcblk2p1 type=3Dext4 parent=3Drootfs.0 [slot.appfs.1] device=3D/dev/mmcblk2p2 type=3Dext4 parent=3Drootfs.1 So I should use "parent" to tie both kernel and appfs slots to the rootfs? And for now, the rootfs is r/w on a ext4 filesystem, but in the future it will be a squashfs. So once that happens would 'type=3Dext4' then change t= o 'type=3Draw'? Just trying to make sure I understand how to make manifest and system.conf map together for making bundles etc. Regards, Brian --000000000000baed2305c4c6414e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Jan,

So using your manife= st example and my partition scheme from earlier ...

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

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

On Tue, May 25, 2021 at 2:56 AM Jan L=C3=BCbb= e <jlu@pengutronix.de> wrot= e:

So your manifest might look like:
[update]
compatible=3Drauc-example
version=3D2021.05-1

[bundle]
format=3Dverity

[image.kernel]
filename=3Dkernel.img

[image.rootfs]
filename=3Drootfs.tar

[image.appfs]
filename=3Dappfs.tar


Best regards,
Jan



My system.conf (using my example p= artition layout for earlier email) file would look something like:

[system]
compatible=3Drauc-example
bootloader=3Duboot

[keyring]
path=3D/etc/rauc/ca.cert.pem
=C2=A0
[slo= t.kernel.0]
device= =3D/dev/mmcblk2gp0p1
type=3Dvfat
parent= =3Drootfs.0

[slot.kernel.1]
device=3D/dev/mmcblk2g= p1p1
type=3Dvfat
parent=3Drootfs.1

[slot.rootfs.0]
device=3D/dev/mmcblk2gp0p2
type=3Dext4
bootname=3DA

[slot.rootfs.1]
device=3D/dev/mmcblk2gp1p2
type=3Dext4
bootname=3DB
[slot.appfs.0]
device=3D/dev/mmcblk2p1=
type=3Dext4<= /div>
parent=3Drootfs.0

[slot.appfs.1]
device=3D/dev/mmcblk2p2
type=3Dext4
parent=3Drootfs.1

So I should use "parent" to tie both kernel and app= fs slots to the rootfs?

And for now= , the rootfs is r/w on a ext4 filesystem, but in the future it will be a sq= uashfs.=C2=A0 So once that happens would 'type=3Dext4' then change = to 'type=3Draw'?

Just tryin= g to make sure I understand how to make manifest and system.conf map togeth= er for making bundles etc.

<= /div>
Regards,
<= span style=3D"font-family:monospace">
Brian



--000000000000baed2305c4c6414e-- --===============1719422157== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ RAUC mailing list --===============1719422157==--