From: Henning Schild <henning.schild@siemens.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: <isar-users@googlegroups.com>
Subject: Re: [PATCH] doc: add a section on flashing images
Date: Mon, 12 Apr 2021 20:15:01 +0200 [thread overview]
Message-ID: <20210412201501.386f9384@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <2229cf56-88ff-57ac-4fb5-8b0903aa8e5f@siemens.com>
Am Mon, 12 Apr 2021 18:51:28 +0200
schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> On 08.04.21 11:19, Henning Schild wrote:
> > Signed-off-by: Henning Schild <henning.schild@siemens.com>
> > ---
> > doc/user_manual.md | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
> > diff --git a/doc/user_manual.md b/doc/user_manual.md
> > index 70cf20a74828..e1d7166911e2 100644
> > --- a/doc/user_manual.md
> > +++ b/doc/user_manual.md
> > @@ -232,6 +232,14 @@ qemu-system-x86_64 -m 256M -nographic -bios
> > edk2/Build/OvmfX64/RELEASE_*/FV/OVMF qemu-system-i386 -m 256M
> > -nographic -hda
> > tmp/deploy/images/qemui386/isar-image-base-debian-buster-qemui386.wic.img
> > ``` +#### Flashing such images to a physical device
> > +
> > +wic images can be flashed in multiple ways. The most generic and
> > easy way is probably with [ etcher ](https://etcher.io). That works
> > on many operating systems and is relatively easy to use. On top it
> > can decompress images on the fly, should they be compressed. It
> > also offers some sort of protection so you do not write to the
> > wrong device and maybe break your machine. + +If you have a unix
> > shell there are other ways. Make sure to always double check the
> > target device, those tools will not warn if you choose the wrong
> > target. + +`dd` is the most generic option, available pretty much
> > everywhere. For large images that contain a lot of empty space `dd`
> > might be a little slow because it writes all that empty space. In
> > that case `bmaptool` can be used instead.
>
> It's "bmap-tools" officially, a link to it would be good
> (https://github.com/intel/bmap-tools). Some distros like Debian call
> the package bmaptool.
Still the tool itself will be called "bmaptool", this is not a
documentation on where the command may be coming from. It is like "dd"
probably not coming from a package called "d-d" or whatever ...
> In general, would put it before mentioning dd,
> also because "bmaptool copy" checks if the target device is mounted
> before writing - which can be quite a mess if you didn't notice this.
> We recommend it therefore in most of our end-user facing layers.
I could reorder them, but "bmaptool" has an availability issue, it is
simply not as readily available as "dd". That is why i ordered entries
like i did, still recommending "bmaptool" where available. Maybe that
mounting is another benefit of "bmaptool" over "dd".
I will change the order to say "bmaptool" where available, "dd" as
fallback. Reasons being speed and mount-check.
Henning
> Jan
>
> > +
> > ### Generate container image with root filesystem
> >
> > A runnable container image is generated if you set IMAGE_TYPE to
> >
>
prev parent reply other threads:[~2021-04-12 18:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 9:19 Henning Schild
2021-04-12 16:51 ` Jan Kiszka
2021-04-12 18:15 ` Henning Schild [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=20210412201501.386f9384@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox