Commit c1406045 authored by Benedikt Schmidt's avatar Benedikt Schmidt Committed by Christopher Friedt
Browse files

docs: Improve documentation of bootloader usage



Describes the necessity to specify the code partition as the chosen one.

Signed-off-by: default avatarBenedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
parent d229d45d
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -36,11 +36,21 @@ In order to use MCUboot with Zephyr you need to take the following into account:

1. You will need to define the flash partitions required by MCUboot; see
   :ref:`flash_map_api` for details.
2. Your application's :file:`.conf` file needs to enable the
2. You will have to specify your flash parition as the chosen code partition

.. code-block:: devicetree

   / {
      chosen {
         zephyr,code-partition = &slot0_partition;
      };
   };

3. Your application's :file:`.conf` file needs to enable the
   :kconfig:`CONFIG_BOOTLOADER_MCUBOOT` Kconfig option in order for Zephyr to
   be built in an MCUboot-compatible manner
3. You need to build and flash MCUboot itself on your device
4. You might need to take precautions to avoid mass erasing the flash and also
4. You need to build and flash MCUboot itself on your device
5. You might need to take precautions to avoid mass erasing the flash and also
   to flash the Zephyr application image at the correct offset (right after the
   bootloader)