From d552379be3b0240866d1a7d6fe206c0d93aeb43b Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 28 Jun 2017 10:16:07 -0700 Subject: dev-manual: Moved the "Flashing Images using bmaptool" section. Fixes [YOCTO #11630] Moved this section from the "Getting Started with the Yocto Project" section. The topic is not really a getting started topic. It is better suited in the "Common Tasks" chapter. (From yocto-docs rev: d6cdade9066bdbce0596672978c178d2ec82c9a4) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 71d765089e..0879d0d3e0 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -5887,6 +5887,98 @@ +
+ Flashing Images Using <filename>bmaptool</filename> + + + An easy way to flash an image to a bootable device is to use + bmaptool, which is integrated into the + OpenEmbedded build system. + + + + Following, is an example that shows how to flash a Wic image. + + You can use bmaptool to flash any + type of image. + + Use these steps to flash an image using + bmaptool: + + Unless you are able to install the + bmap-tools package as mentioned in the note + in the second bullet of step 3 further down, you will need to build + bmaptool before using it. + Build the tool using the following command: + + $ bitbake bmap-tools-native + + + + + Update the local.conf File: + Add the following to your local.conf + file: + + IMAGE_FSTYPES += "wic wic.bmap" + + + + Get Your Image: + Either have your image ready (pre-built) or take the step + build the image: + + $ bitbake image + + + + Flash the Device: + Flash the device with the image by using + bmaptool depending on your particular + setup: + + + If you have write access to the media, + use this command form: + + $ oe-run-native bmaptool-native bmaptool copy ./tmp/deploy/images/qemux86-64-core-image-minimal-machine.wic /dev/sdX + + + + If you do not have write access to + the media, use the following + commands: + + $ sudo bash + $ PATH=tmp/sysroots/x86_64-linux/usr/bin/ bmaptool copy ./tmp/deploy/images/qemux86-64/core-image-minimal-machine.wic /dev/sdX + + + If you are using Ubuntu or Debian distributions, + you can install the + bmap-tools package using + the following command and then use the tool + without specifying + PATH even from the + root account: + + $ sudo apt-get install bmap-tools + + + + + + + + + + For help on the bmaptool command, use the + following command: + + $ bmaptool --help + + +
+
Configuring the Kernel -- cgit v1.2.3-54-g00ecf