Home
last modified time | relevance | path

Searched +full:image +full:- +full:1 (Results 1 – 25 of 886) sorted by relevance

12345678910>>...36

/Zephyr-latest/tests/cmake/zephyr_get/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
6 # Script mode initialization (re-run)
24 # - run_suite(<test-1> [<test-2> ...])
47 # - assert_equal(<variable> <expected-value>)
49 # - assert_equal(<variable>
50 # IMAGE <image-1> <expected-value-for-image-1>
51 # [IMAGE <image-2> <expected-value-for-image-2> ...]
61 if(expected_value STREQUAL "IMAGE")
62 set(i 1)
64 if(NOT ARGV${i} STREQUAL "IMAGE")
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/fixtures/
Dmcumgr_fixture_test.py3 # SPDX-License-Identifier: Apache-2.0
13 def fixture_mcumgr() -> MCUmgr:
20 ) -> None:
25 patched_run_command.assert_called_with('image list')
27 mcumgr.image_upload('/path/to/image', timeout=100)
28 patched_run_command.assert_called_with('-t 100 image upload /path/to/image')
30 mcumgr.image_upload('/path/to/image', slot=2, timeout=100)
31 patched_run_command.assert_called_with('-t 100 image upload /path/to/image -e -n 2')
34 patched_run_command.assert_called_with('image test ABCD')
37 patched_run_command.assert_called_with('image confirm ABCD')
[all …]
/Zephyr-latest/dts/common/nordic/
Dnrf5340_cpuapp_partition.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 * This layout matches (by necessity) that in the TF-M repository:
14 * 0x0000_0000 BL2 - MCUBoot (64 KB)
15 * 0x0001_0000 Primary image area (448 KB):
16 * 0x0001_0000 Secure image primary (256 KB)
17 * 0x0005_0000 Non-secure image primary (192 KB)
18 * 0x0008_0000 Secondary image area (448 KB):
19 * 0x0008_0000 Secure image secondary (256 KB)
20 * 0x000c_0000 Non-secure image secondary (192 KB)
24 * 0x000f_8000 Non-secure storage, used when built with NRF_NS_STORAGE=ON,
[all …]
Dnrf91xx_partition.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 * This layout matches (by necessity) that in the TF-M repository:
14 * 0x0000_0000 BL2 - MCUBoot (64 KB)
15 * 0x0001_0000 Primary image area (448 KB):
16 * 0x0001_0000 Secure image primary (256 KB)
17 * 0x0005_0000 Non-secure image primary (192 KB)
18 * 0x0008_0000 Secondary image area (448 KB):
19 * 0x0008_0000 Secure image secondary (256 KB)
20 * 0x000c_0000 Non-secure image secondary (192 KB)
24 * 0x000f_8000 Non-secure storage, used when built with NRF_NS_STORAGE=ON,
[all …]
/Zephyr-latest/include/zephyr/dfu/
Dmcuboot.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief MCUboot public API for MCUboot control of image boot process
26 * @brief MCUboot public API for MCUboot control of image boot process
28 * @defgroup mcuboot_api MCUboot image control API
38 #if BOOT_SWAP_TYPE_NONE != 1 /*ensure the same definition in MCUboot */
43 #define BOOT_SWAP_TYPE_NONE 1
51 /** Swap to slot 1. Absent a confirm command, revert back on next boot. */
60 /** Swap to slot 1, and permanently switch to booting its contents. */
78 /** Swap failed because image to be run is not valid */
86 * @brief MCUboot image header representation for image version
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
Dmcumgr.py3 # SPDX-License-Identifier: Apache-2.0
22 image: int
30 """Sample wrapper for mcumgr command-line tool"""
37 def create_for_serial(cls, serial_port: str) -> MCUmgr:
38 return cls(connection_options=f'--conntype serial --connstring={serial_port}')
41 def is_available(cls) -> bool:
48 def run_command(self, cmd: str) -> str:
56 def image_upload(self, image: Path | str, slot: int | None = None, timeout: int = 30):
57 command = f'-t {timeout} image upload {image}'
59 command += f' -e -n {slot}'
[all …]
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt_client.h4 * SPDX-License-Identifier: Apache-2.0
15 * @brief MCUmgr Image management client API
26 * @brief Image list flags.
29 /** Bootable image */
30 bool bootable: 1;
32 bool pending: 1;
33 /** Confirmed image */
34 bool confirmed: 1;
35 /** Active image */
36 bool active: 1;
[all …]
Dimg_mgmt.h2 * Copyright (c) 2018-2021 mcumgr authors
3 * Copyright (c) 2022-2024 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
14 #include <bootutil/image.h>
31 * Image state flags
42 * Swap Types for image management state machine
45 #define IMG_MGMT_SWAP_TYPE_TEST 1
51 * Command IDs for image management group.
54 #define IMG_MGMT_ID_UPLOAD 1
62 * Command result codes for image management group.
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/include/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt_priv.h2 * Copyright (c) 2018-2021 mcumgr authors
3 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
22 * @brief Ensures the spare slot (slot 1) is fully erased.
31 * @brief Marks the image in the specified slot as pending. On the next reboot,
32 * the system will perform a boot of the specified image.
34 * @param slot The slot to mark as pending. In the typical use case, this is 1.
35 * @param permanent Whether the image should be used permanently or only tested once:
36 * 0=run image once, then confirm or revert.
37 * 1=run image forever.
[all …]
/Zephyr-latest/boards/st/nucleo_l552ze_q/
Dnucleo_l552ze_q_stm32l552xx_ns.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
8 #include "nucleo_l552ze_q-common.dtsi"
11 model = "STMicroelectronics STM32L552ZE-NUCLEO-Q board";
12 compatible = "st,stm32l552ze-nucleo-q";
14 #address-cells = <1>;
15 #size-cells = <1>;
19 zephyr,shell-uart = &lpuart1;
22 zephyr,code-partition = &slot0_ns_partition;
34 compatible = "fixed-partitions";
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/helpers/
Dshell_mcuboot_command_parser_test.py3 # SPDX-License-Identifier: Apache-2.0
10 def test_if_mcuboot_command_output_is_parsed_two_areas() -> None:
12 \x1b[1;32muart:~$ \x1b[mmcuboot
15 primary area (1):
17 image size: 68240
21 image ok: unset
24 image size: 68240
28 image ok: unset
29 \x1b[1;32muart:~$ \x1b[m
39 def test_if_mcuboot_command_output_is_parsed_with_failed_area() -> None:
[all …]
/Zephyr-latest/boards/st/b_u585i_iot02a/
Db_u585i_iot02a_stm32u585xx_ns.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
8 #include "b_u585i_iot02a-common.dtsi"
11 model = "STMicroelectronics B-U585I-IOT02A discovery kit";
12 compatible = "st,b-u585i-iot02a";
16 zephyr,shell-uart = &usart1;
19 zephyr,code-partition = &slot0_ns_partition;
32 compatible = "fixed-partitions";
33 #address-cells = <1>;
34 #size-cells = <1>;
[all …]
/Zephyr-latest/dts/common/espressif/
Dpartitions_0x0_amp_32M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
34 slot1_appcpu_partition: partition@1C00000 {
35 label = "image-1-appcpu";
39 storage_partition: partition@1FC0000 {
[all …]
Dpartitions_0x1000_amp_32M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
34 slot1_appcpu_partition: partition@1C00000 {
35 label = "image-1-appcpu";
39 storage_partition: partition@1FC0000 {
[all …]
Dpartitions_0x0_amp_2M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
39 storage_partition: partition@1C0000 {
44 scratch_partition: partition@1E0000 {
[all …]
Dpartitions_0x1000_amp_2M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
39 storage_partition: partition@1C0000 {
44 scratch_partition: partition@1E0000 {
[all …]
Dpartitions_0x0_amp_4M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
29 slot1_partition: partition@1F0000 {
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
[all …]
Dpartitions_0x1000_amp_4M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
29 slot1_partition: partition@1F0000 {
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
[all …]
Dpartitions_0x0_amp_16M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
50 label = "coredump-partition";
Dpartitions_0x0_amp_8M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
50 label = "coredump-partition";
Dpartitions_0x1000_amp_16M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
50 label = "coredump-partition";
Dpartitions_0x1000_amp_8M.dtsi4 * SPDX-License-Identifier: Apache-2.0
10 compatible = "fixed-partitions";
11 #address-cells = <1>;
12 #size-cells = <1>;
20 label = "image-0";
25 label = "image-0-appcpu";
30 label = "image-1";
35 label = "image-1-appcpu";
45 label = "image-scratch";
50 label = "coredump-partition";
/Zephyr-latest/tests/boot/with_mcumgr/pytest/
Dtest_downgrade_prevention.py3 # SPDX-License-Identifier: Apache-2.0
20 1) Device flashed with MCUboot and an application that contains SMP server.
21 Image version is 1.1.1+1
23 image version is 0.0.0 (lower than version of the original app)
24 3) Upload the application update to slot 1 using mcumgr
25 4) Flag the application update in slot 1 as 'pending' by using mcumgr 'test'
27 blocked the image swap
28 6) Verify that the original application is booted (version 1.1.1)
37 logger.info('Prepare upgrade image with lower version')
41 logger.info('Upload image with mcumgr')
[all …]
/Zephyr-latest/tests/subsys/dfu/mcuboot_multi/
Dnrf52840dk_nrf52840.overlay4 * SPDX-License-Identifier: Apache-2.0
8 /delete-node/ &storage_partition;
9 /delete-node/ &slot0_partition;
10 /delete-node/ &slot1_partition;
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
23 label = "image-0";
26 slot1_partition: partition@1A000 {
27 label = "image-1";
[all …]
/Zephyr-latest/subsys/dfu/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
11 bool "DFU image manager"
15 Enable support for managing DFU image.
20 prompt "Image manager"
23 Choice support for managing DFU image.
27 bool "Image manager for mcuboot"
31 Enable support for managing DFU image downloaded using mcuboot.
41 Enable shell module, which provides information about image slots and
51 (https://github.com/JuulLabs-OSS/mcuboot/pull/485)
59 Estimated size of update image data, which is used to prevent loading of firmware updates
[all …]

12345678910>>...36