All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: [Openembedded-architecture] Standalone image writer
Date: Mon, 29 Feb 2016 04:48:57 +0100	[thread overview]
Message-ID: <56D3BFA9.9080200@mlbassoc.com> (raw)
In-Reply-To: <56D3BB9C.8090105@gmail.com>

On 02/29/2016 04:31 AM, Trevor Woerner wrote:
>
>
> On 02/28/16 20:46, Khem Raj wrote:
>>> On Feb 28, 2016, at 4:17 PM, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
>>>
>>> (changing subject line so people don't miss this slight tangent)
>>>
>>> I'd almost completely forgotten, but the part of what we wrote for Hob to
>>> write images to a USB stick or SD card (bitbake/bin/image-writer) is actually
>>> a standalone application. There's not a lot to it - pick your image file and
>>> then the device you want to write it to; it has some logic in it to not let
>>> you accidentally write to devices that aren't USB sticks.
>>>
>>> A few points:
>>>
>>> - I'm not sure very many people know this tool exists, so it's likely it's not
>>> being widely used. Having said that it is a nice simple UI that does the job.
>>>
>>> - It shares some code with Hob, but mostly not the bits with code quality
>>> issues, though it is still GTK+ 2 based.
>>>
>>> - It doesn't support the advanced SD card writing functionality that has been
>>> implented within wic over the last few releases, which is pretty important for
>>> devices where a special partition layout is expected by the bootloader.
>>>
>>> - Toaster can't really have this functionality in it because it's web based
>>> and the web server might not be running locally, so writing to a local USB
>>> stick or SD card isn't going to be practical from there; about all it could do
>>> is provide instructions on how to write the image once you've downloaded it.
>>>
>>> - I believe there are other equivalent tools out there that various distros
>>> use for taking a downloadable ISO image and writing it to a USB stick. I
>>> haven't done a survey to find out if if any of them work in quite the same way;
>>> I know some of them actually unpack the image and then re-create a filesystem
>>> on the device, which isn't the right thing for our images.
>>>
>>> - We do have a command-line equivalent in the form of scripts/contrib/ddimage
>>> in OE-Core. Of course it's command-line and thus less friendly but it does the
>>> job (and also has some safeguards against writing to the wrong device).
>>>
>>> So what do we do with this? We have two choices really:
>>>
>>> A) Drop bitbake/bin/imagewriter along with Hob; we could potentially
>>> resurrect it again later if desired
>>>
>>> B) Preserve it along with the shared modules that it requires
>>>
>>> Thoughts?
>>
>> Option A. There are USB writer tool in your favorite distros and OSes, and I have
>> seen people use those tools more often.
>
> Some platforms, e.g. Minnow, use their own image writing script (i.e. mkefidisk.sh). If there are other platforms which
> need some special tool that isn't generically available from the host and the hob tool could be made to accommodate them
> all, I'd prefer to see one tool that can do all of them instead of a bunch of tools, one for each platform.

As Paul mentioned, each platform seems to want to do this "their
own way" which is troublesome at best for embedded systems.  I think
it would be much better to maintain one way that works with what we
are building (OE based embedded devices) rather than relying on the
whims of others.  So, if it's not too hard, I'd prefer that this
ability be kept, even as a stand-alone script.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2016-02-29  3:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26  2:49 Removing Hob for 2.1 Paul Eggleton
2016-02-26  2:54 ` [Openembedded-architecture] " Khem Raj
2016-02-26 19:15   ` Anders Darander
2016-02-26 13:37 ` Philip Balister
2016-02-26 14:26   ` nick
2016-02-28 20:42     ` Paul Eggleton
2016-02-26 14:29   ` nick
2016-02-29 12:29     ` Barros Pena, Belen
2016-02-29  0:17 ` Standalone image writer Paul Eggleton
2016-02-29  1:46   ` [Openembedded-architecture] " Khem Raj
2016-02-29  3:31     ` Trevor Woerner
2016-02-29  3:48       ` Gary Thomas [this message]
2016-02-29  7:12         ` Paul Eggleton
2016-02-29 11:27           ` Barros Pena, Belen
2016-02-29 19:52             ` Paul Eggleton
2016-02-29 20:05               ` Giordon Stark
2016-03-02 21:16                 ` Paul Eggleton
2016-03-02 23:18                   ` Andrei Gherzan
2016-02-29 20:13               ` Philip Balister
2016-02-29 11:04 ` FW: Removing Hob for 2.1 Barros Pena, Belen

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=56D3BFA9.9080200@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --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.