All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rudolf J Streif" <rudolf.streif@ibeeto.com>
To: yocto@lists.yoctoproject.org
Cc: Yocto list discussion <yocto@yoctoproject.org>
Subject: Re: [yocto] [WIC] Multiple WKS Files
Date: Mon, 4 May 2020 09:14:49 -0700	[thread overview]
Message-ID: <9111327f-63da-fd2e-4485-9c08faa26ec9@ibeeto.com> (raw)
In-Reply-To: <CAJdd5GY1yCS0Wnvqh_n3xoq6fNqbiTuodPbk=iLKaQyFTStJOg@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2020 bytes --]


On 5/2/20 2:47 PM, Joshua Watt wrote:
>
>
> On Sat, May 2, 2020, 1:22 PM Rudolf J Streif <rudolf.streif@ibeeto.com
> <mailto:rudolf.streif@ibeeto.com>> wrote:
>
>     eMMC devices commonly have three hardware partitions: two boot
>     partitions and a user partition. I was looking for a convenient way to
>     have wic build an image for the boot partition and one for the user
>     partition. However, that does not seem to be possible right out of the
>     box. The variable WKS_FILE only accepts one file and not a list. The
>     class image_types_wic.bbclass uses WKS_FILES internally but that seems
>     to be a search list and the code only builds the file it finds first.
>
>
> I think part of the problem is that wks files are tied to a rootfs
> image, so it's not currently possible to have multiple because there
> is no way to differentiate them. Also because of that it's a little
> odd to have a wks file that doesn't reference the rootfs it's built with.
>
> You might be able to do it by making a simple dummy image recipe for
> the boot partition(s), then overriding the WKS_FILE variable for the
> image with a pn override in the machine.conf file (e.g.
> WKS_FILE_pn-my-emmc-boot = "emmc-boot.wks" )

Thank you, Joshua. I might try your idea. I have noticed that it is tied
to the rootfs as I tried to use ondisk/ondrive to create images for
different partitions. But that did not work. Actually, the use of the
ondisk/ondrive parameter is not entirely obvious to me (but I also have
not dissected the code to figure it out).

It might be worthwhile looking into enhancing wic to be able to create
multiple images. Devices now also use universal flash storage (UFS)
which supports multiple logical disks like a SCSI drive once it is
provisioned.

>
>
>     Is my understanding correct?
>
>     Any smart ideas to make this work?
>
>     Thanks,
>     Rudi
>
>
>
>
>
>
> 

-- 
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700


[-- Attachment #1.1.2: Type: text/html, Size: 4115 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

  reply	other threads:[~2020-05-04 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-02 18:22 [WIC] Multiple WKS Files Rudolf J Streif
2020-05-02 21:47 ` [yocto] " Joshua Watt
2020-05-04 16:14   ` Rudolf J Streif [this message]
2020-05-04 16:33     ` Joshua Watt

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=9111327f-63da-fd2e-4485-9c08faa26ec9@ibeeto.com \
    --to=rudolf.streif@ibeeto.com \
    --cc=yocto@lists.yoctoproject.org \
    --cc=yocto@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.