summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/dev-manual-start.xml
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2017-01-03 14:15:31 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-11 17:23:18 +0000
commita8e9faac4053afe57352eba62da5e9693952e260 (patch)
tree0c3e879e449ef414f81cb30d209447c9969ea82a /documentation/dev-manual/dev-manual-start.xml
parent50074dfafaff970b022a3c915a1a4680ee1513fa (diff)
downloadpoky-a8e9faac4053afe57352eba62da5e9693952e260.tar.gz
dev-manual: Added section on bmap-tool to flash images
Fixes [YOCTO #10621] bmaptool is integrated into the OpenEmbedded build system but is not documented. I added a new section describing how to flash an image to media using the tool. Also, updated a small section in the Wic part of the manual that used "dd" to flash an example. I added a bmaptool counterpart here and referenced the reader back to the main new section. (From yocto-docs rev: 83a9a3aa5f20c7f389306eea9213eabea997aba1) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/dev-manual-start.xml')
-rw-r--r--documentation/dev-manual/dev-manual-start.xml93
1 files changed, 93 insertions, 0 deletions
diff --git a/documentation/dev-manual/dev-manual-start.xml b/documentation/dev-manual/dev-manual-start.xml
index b59f54b085..bcee11ba22 100644
--- a/documentation/dev-manual/dev-manual-start.xml
+++ b/documentation/dev-manual/dev-manual-start.xml
@@ -328,6 +328,99 @@
328 </para> 328 </para>
329</section> 329</section>
330 330
331<section id='flashing-images-using-bmap-tool'>
332 <title>Flashing Images Using <filename>bmap-tool</filename></title>
333
334 <para>
335 An easy way to flash an image to a bootable device is to use
336 <filename>bmap-tool</filename>, which is integrated into the
337 OpenEmbedded build system.
338 </para>
339
340 <para>
341 Following, is an example that shows how to flash a Wic image.
342 <note>
343 You can use <filename>bmap-tool</filename> to flash any
344 type of image.
345 </note>
346 Use these steps to flash an image using
347 <filename>bmap-tool</filename>:
348 <orderedlist>
349 <listitem><para>
350 Add the following to your <filename>local.conf</filename>
351 file:
352 <literallayout class='monospaced'>
353 IMAGE_FSTYPES += "WIC WIC.BMAP"
354 </literallayout>
355 </para></listitem>
356 <listitem><para>
357 Either have your image ready (pre-built) or take the step
358 build the image:
359 <literallayout class='monospaced'>
360 $ bitbake <replaceable>image</replaceable>
361 </literallayout>
362 </para></listitem>
363 <listitem><para>
364 Flash the image to the media by using the
365 <filename>bmap-tool</filename> depending on your particular
366 setup:
367 <itemizedlist>
368 <listitem><para>
369 If you have write access, use this command form:
370 <literallayout class='monospaced'>
371 $ oe-run-native bmap-tool copy ./tmp/deploy/images/qemux86-64/core-image-minimal-<replaceable>machine</replaceable>.wic /dev/sd<replaceable>X</replaceable>
372 </literallayout>
373 </para></listitem>
374 <listitem><para>
375 If you do not have write access, use the following
376 commands:
377 <literallayout class='monospaced'>
378 $ sudo bash
379 $ PATH=tmp/sysroots/x86_64-linux/usr/bin/ bmaptool copy ./tmp/deploy/images/qemux86-64/core-image-minimal-<replaceable>machine</replaceable>.wic /dev/sd<replaceable>X</replaceable>
380 </literallayout>
381 <note>
382 If you are using Ubuntu 16.10 or Debian,
383 you can install
384 <filename>bmaptool</filename> using the
385 following command and then use the tool
386 without specifying
387 <filename>PATH</filename> even from the
388 root account:
389 <literallayout class='monospaced'>
390 $ sudo apt-get install bmap-tool
391 </literallayout>
392 </note>
393 </para></listitem>
394 </itemizedlist>
395 </para></listitem>
396 </orderedlist>
397 </para>
398
399 <para>
400 For help on the <filename>bmaptool</filename> command, use
401 <filename>bmaptool --help</filename>:
402 <literallayout class='monospaced'>
403 $ bmaptool --help
404 usage: bmaptool [-h] [--version] [-q] [-d] {create,copy} ...
405
406 Create block map (bmap) and copy files using bmap. The documentation can be
407 found here: source.tizen.org/documentation/reference/bmaptool
408
409 optional arguments:
410 -h, --help show this help message and exit
411 --version show program's version number and exit
412 -q, --quiet be quiet
413 -d, --debug print debugging information
414
415 subcommands:
416 {create,copy}
417 create generate bmap for an image file (which should be a sparse
418 file)
419 copy write an image to a block device using bmap
420 </literallayout>
421 </para>
422</section>
423
331<section id='using-pre-built-binaries-and-qemu'> 424<section id='using-pre-built-binaries-and-qemu'>
332 <title>Using Pre-Built Binaries and QEMU</title> 425 <title>Using Pre-Built Binaries and QEMU</title>
333 426