summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/bmaptool.rst
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@rootcommit.com>2024-12-18 14:47:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-20 12:47:59 +0000
commit991b68a00c21bb3616339b71e5e0e072981c672d (patch)
treeb01ba9b362375dc169a327d84c568404958f047c /documentation/dev-manual/bmaptool.rst
parentdf98d305de64b89192369fcb10cd1b99026ce5d8 (diff)
downloadpoky-991b68a00c21bb3616339b71e5e0e072981c672d.tar.gz
dev-manual/bmaptool.rst: simplify and fix instructions
- Remove duplicate instructions - Detail how to run bmaptool directly if you installed it on your host instead of building it through the ``bmaptool-native`` recipe, as running "oe-run-native bmaptool-native bmaptool ..." won't work in this case. - Use "chmod a+w" instead of "chmod 666", better advice, and only run "chmod" in the option that runs "oe-run-native" (From yocto-docs rev: 4afa71ef6e5bf1db126c80e6d987f588d0b5a086) Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/bmaptool.rst')
-rw-r--r--documentation/dev-manual/bmaptool.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/documentation/dev-manual/bmaptool.rst b/documentation/dev-manual/bmaptool.rst
index 37083c9c64..87162a49c9 100644
--- a/documentation/dev-manual/bmaptool.rst
+++ b/documentation/dev-manual/bmaptool.rst
@@ -43,14 +43,13 @@ any type of image. Use these steps to flash an image using `bmaptool`:
43 depending on your particular setup. The following commands assume the 43 depending on your particular setup. The following commands assume the
44 image resides in the :term:`Build Directory`'s ``deploy/images/`` area: 44 image resides in the :term:`Build Directory`'s ``deploy/images/`` area:
45 45
46 - If you have write access to the media, use this command form:: 46 - If you installed the package for `bmaptool`, you can directly run::
47 47
48 $ oe-run-native bmaptool-native bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX 48 $ sudo bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX
49 49
50 - If you do not have write access to the media, set your permissions 50 - Otherwise, if you built `bmaptool` with BitBake, run::
51 first and then use the same command form::
52 51
53 $ sudo chmod 666 /dev/sdX 52 $ sudo chmod a+w /dev/sdX # get write access to the media, needed only once after booting
54 $ oe-run-native bmaptool-native bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX 53 $ oe-run-native bmaptool-native bmaptool copy build-directory/tmp/deploy/images/machine/image.wic /dev/sdX
55 54
56For help on the ``bmaptool`` command, use the following command:: 55For help on the ``bmaptool`` command, use the following command::