diff --git a/doc/quick-start/qs-guide.rst b/doc/quick-start/qs-guide.rst index 3f6d5a4..b72e961 100644 --- a/doc/quick-start/qs-guide.rst +++ b/doc/quick-start/qs-guide.rst @@ -130,13 +130,13 @@ Compiling project .. code-block:: bash - [user@container] $ knot make --board dk + [user@container] $ sudo -E knot make --board dk - If using the `KNoT Dongle `_: .. code-block:: bash - [user@container] $ knot make --board dongle + [user@container] $ sudo -E knot make --board dongle Flashing board @@ -146,7 +146,7 @@ Flashing board .. code-block:: bash - [user@container] $ knot export output/ + [user@container] $ sudo -E knot export output/ #. Install `nRF Connect `_. diff --git a/doc/thing/thing-docker.rst b/doc/thing/thing-docker.rst index d267f14..07299c5 100644 --- a/doc/thing/thing-docker.rst +++ b/doc/thing/thing-docker.rst @@ -42,9 +42,11 @@ by the tag you used. Compile for your target board ----------------------------- +Inside the docker container, use the KNoT script to compile your project. + .. code-block:: bash - container> $ knot make -b {BOARD} + [user@container] $ sudo -E knot make -b {BOARD} .. note:: Currently, KNoT support ``dk`` (nrf52840_pca10056) or ``dongle`` (nrf52840_pca10059) board. Replace {BOARD} with one of them. @@ -64,7 +66,7 @@ Export the generated files to your project's directory .. code-block:: bash - container> $ knot export /workdir/output + [user@container] $ sudo -E knot export /workdir/output The generated files can now be flashed to your device by using the `nRF Connect for Desktop `_ and its @@ -100,7 +102,7 @@ This will allow you to use the `--flash` flag to flash after building the projec .. code-block:: bash - container> $ knot make -b {BOARD} --mcuboot + [user@container] $ sudo -E knot make -b {BOARD} --mcuboot .. note:: Currently, KNoT support ``dk`` (nrf52840_pca10056) or ``dongle`` (nrf52840_pca10059) board. Replace {BOARD} with one of them. @@ -115,6 +117,6 @@ To get a list of all available commands, run: .. code-block:: bash - container> $ knot --help + [user@container] $ knot --help More info is available at the `Thing CLI doc section `_.