From 3ecc502b8dcad84e23031589671b918cdd6a2487 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 3 Jan 2017 14:15:31 -0800 Subject: 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: 98ebe9acccceea2b833c1372a3e664befd1b6aef) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 33 +++++++--------------- 1 file changed, 10 insertions(+), 23 deletions(-) (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 95289c990f..811c23e810 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -4824,36 +4824,23 @@ Continuing with the example, you can now write the - image to a USB stick, or whatever media for which - you built your image, and boot the resulting media. - - - - The following example uses dd - to write the image to a USB stick: + image to a USB stick, or whatever media for which you + built your image, and boot the resulting media. + You can write the image by using + bmaptool or + dd: - $ sudo dd if=/var/tmp/wic/build/mkefidisk-201310230946-sda.direct of=/dev/sdb - [sudo] password for trz: - 182274+0 records in - 182274+0 records out - 93324288 bytes (93 MB) copied, 14.4777 s, 6.4 MB/s - [trz at empanada ~]$ sudo eject /dev/sdb + $ oe-run-native bmaptool copy /var/tmp/wic/build/mkefidisk-201310230946-sda.direct /dev/sdX - - - - This next example uses the - bmap-tool. - For this example, it is assumed you have write - access: + or - $ oe-run-native bmap-tool copy /home/trz/yocto/yocto-image/scripts/lib/image/canned-wks/mkefidisk.wks /dev/sdb + $ sudo dd if=/var/tmp/wic/build/mkefidisk-201310230946-sda.direct of=/dev/sdX For more information on how to use the - bmap-tool to flash a device + bmaptool to flash a device with an image, see the - "Flashing Images Using bmap-tool" + "Flashing Images Using bmaptool" section. -- cgit v1.2.3-54-g00ecf