From: pierre.daye@p3lab.com
To: pierre.daye@p3lab.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] Scarthgap recipe to save and package to secondary partition
Date: Thu, 12 Dec 2024 06:36:59 -0800 [thread overview]
Message-ID: <13220.1734014219872736910@lists.yoctoproject.org> (raw)
In-Reply-To: <13220.1734010644129182159@lists.yoctoproject.org>
[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]
... I finally figured it out!
This is how the wks file should be defined:
>
> part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat
> --label boot_A --active --align 4096 --size 20 --fsoptions "vfat
> rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro"
>
> part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label root_A
> --align 4096 --exclude-path=media/
> part --source rootfs --ondisk mmcblk1 --fstype=ext4 --label root_B --align
> 4096 --exclude-path=media/
> part /media --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/media --size=128M
> --ondisk mmcblk1 --fstype=ext4 --label data --align 4096
> part swap --ondisk mmcblk1 --size 44 --label swap --fstype=swap
> --size=2048M --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=${IMAGE_ROOTFS}/media options (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:remove = "/media"
Thanks
[-- Attachment #2: Type: text/html, Size: 3521 bytes --]
prev parent reply other threads:[~2024-12-12 14:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 13:14 Scarthgap recipe to save and package to secondary partition pierre.daye
2024-12-12 13:19 ` [yocto] " Gyorgy Sarvari
2024-12-12 13:36 ` Gyorgy Sarvari
2024-12-12 13:37 ` pierre.daye
2024-12-12 14:36 ` pierre.daye [this message]
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=13220.1734014219872736910@lists.yoctoproject.org \
--to=pierre.daye@p3lab.com \
--cc=yocto@lists.yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.