Lines Matching +full:- +full:bootloader
1 .. zephyr:code-sample:: usb-dfu
3 :relevant-api: _usb_device_core_api
19 partition layout. You SoC must run MCUboot as the stage 1 bootloader.
20 This sample is built as an application for the MCUboot bootloader.
33 to be loaded at the offset of SLOT-0.
40 .. code-block:: console
42 west build -b nrf52840dk/nrf52840 zephyr/samples/subsys/usb/dfu -d build-dfu -- \
43 -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"bootloader/mcuboot/root-rsa-2048.pem\"
45 Build and flash MCUboot bootloader for Zephyr project as it is described in
47 the USB DFU sample at the offset of SLOT-0.
49 Build and sign a second application image e.g. :zephyr:code-sample:`hello_world`,
54 .. code-block:: console
56 west build -b nrf52840dk/nrf52840 zephyr/samples/hello_world -d build-hello_world -- \
57 …-DCONFIG_BOOTLOADER_MCUBOOT=y '-DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE="bootloader/mcuboot/root-rsa-20…
62 The Linux ``dfu-util`` tool can be used to backup or update the application
65 Use the following command to backup the SLOT-0 image:
67 .. code-block:: console
69 dfu-util --alt 0 --upload slot0_backup.bin
73 .. code-block:: console
75 dfu-util --alt 1 --download build-hello_world/zephyr/zephyr.signed.bin
80 .. code-block:: console
82 *** Booting Zephyr OS build zephyr-v3.0.0-360-gc0dd594d4d3d ***
83 I: Starting bootloader
88 I: Bootloader chainload address offset: 0xc000
90 *** Booting Zephyr OS build zephyr-v3.0.0-361-gb987e6daa2f9 ***
97 .. code-block:: console
99 *** Booting Zephyr OS build zephyr-v3.0.0-360-gc0dd594d4d3d ***
100 I: Starting bootloader
106 I: Bootloader chainload address offset: 0xc000
108 *** Booting Zephyr OS build zephyr-v3.0.0-361-gb987e6daa2f9 ***
116 To mark SLOT-1 as permanent after the download completes,
127 Both symbols can be enabled with the :file:`overlay-permanent-download.conf` overlay. For example:
129 .. code-block:: console
131 west build -b nrf52840dk/nrf52840 zephyr/samples/subsys/usb/dfu -d build-dfu -- \
132 …-DCONFIG_BOOTLOADER_MCUBOOT=y '-DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE="bootloader/mcuboot/root-rsa-20…
133 -DEXTRA_CONF_FILE=overlay-permanent-download.conf
136 The listing below shows the output to the console when downloading via dfu-util.
139 .. code-block:: console
141 *** Booting Zephyr OS build zephyr-v3.0.0-361-ge6900e2451d5 ***
144 *** Booting Zephyr OS build zephyr-v3.0.0-360-gc0dd594d4d3d ***
145 I: Starting bootloader
150 I: Bootloader chainload address offset: 0xc000
152 *** Booting Zephyr OS build zephyr-v3.0.0-361-gb987e6daa2f9 ***
156 .. _MCUboot GitHub repo: https://github.com/zephyrproject-rtos/mcuboot
157 .. _Using MCUboot with Zephyr: https://docs.mcuboot.com/readme-zephyr