From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C334EE7717F for ; Thu, 12 Dec 2024 14:37:01 +0000 (UTC) Subject: Re: [yocto] Scarthgap recipe to save and package to secondary partition To: pierre.daye@p3lab.com, yocto@lists.yoctoproject.org From: pierre.daye@p3lab.com X-Originating-Location: Etterbeek, Brussels Capital, BE (178.51.208.136) X-Originating-Platform: Linux Chrome 131 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 12 Dec 2024 06:36:59 -0800 References: <13220.1734010644129182159@lists.yoctoproject.org> In-Reply-To: <13220.1734010644129182159@lists.yoctoproject.org> Message-ID: <13220.1734014219872736910@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="hMeziNdLTNzOa0aINpQ2" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 12 Dec 2024 14:37:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/64439 --hMeziNdLTNzOa0aINpQ2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ... I finally figured it out! This is how the wks file should be defined: >=20 > part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=3Dvfat > --label boot_A --active --align 4096 --size 20 --fsoptions "vfat > rw,relatime,fmask=3D0022,dmask=3D0022,codepage=3D437,iocharset=3Diso8859-= 1,shortname=3Dmixed,errors=3Dremount-ro" >=20 > part / --source rootfs --ondisk mmcblk1 --fstype=3Dext4 --label root_A > --align 4096 --exclude-path=3Dmedia/ > part --source rootfs --ondisk mmcblk1 --fstype=3Dext4 --label root_B --al= ign > 4096 --exclude-path=3Dmedia/ > part /media --source rootfs --rootfs-dir=3D${IMAGE_ROOTFS}/media --size= =3D128M > --ondisk mmcblk1 --fstype=3Dext4 --label data --align 4096 > part swap --ondisk mmcblk1 --size 44 --label swap --fstype=3Dswap > --size=3D2048M --overhead-factor 1 >=20 >=20 Notice the fact that: * The mounted point should be excluded from both the root_A and root_B * The media partition should be sourced on rootfs * The media partition needs the --rootfs-dir=3D${IMAGE_ROOTFS}/media option= s (otherwise the whole rootfs is copied onto /media Using this in the original method in the recipe above makes it works as exp= ected (if you add the QA_EMPTY_DIRS:remove =3D "/media" Thanks --hMeziNdLTNzOa0aINpQ2 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
... I finally figured it out!
 
This is how the wks file should be defined:
 
part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=3Dvfat= --label boot_A --active --align 4096 --size 20 --fsoptions "vfat rw,relati= me,fmask=3D0022,dmask=3D0022,codepage=3D437,iocharset=3Diso8859-1,shortname= =3Dmixed,errors=3Dremount-ro"
part / --source rootfs --ondisk mmcblk1 = --fstype=3Dext4 --label root_A --align 4096 --exclude-path=3Dmedia/
pa= rt --source rootfs --ondisk mmcblk1 --fstype=3Dext4 --label root_B --align = 4096 --exclude-path=3Dmedia/
part /media --source rootfs --rootfs-dir= =3D${IMAGE_ROOTFS}/media --size=3D128M --ondisk mmcblk1 --fstype=3Dext4 --l= abel data --align 4096
part swap --ondisk mmcblk1 --size 44 --label sw= ap --fstype=3Dswap --size=3D2048M --overhead-factor 1 
 
 
Notice the fact that:
  • The mounted point should be excluded from both the root_A and root_B
  • The media partition should be sourced on rootfs
  • The media partition needs the --rootfs-dir=3D${IMAGE_ROOTFS}/media opti= ons (otherwise the whole rootfs is copied onto /media
Using this in the original method in the recipe above makes it= works as expected (if you add the   QA_EMPTY_DIRS:re= move =3D "/media"
 
Thanks
 
 
--hMeziNdLTNzOa0aINpQ2--