Home
last modified time | relevance | path

Searched +full:0 +full:- +full:dev (Results 1 – 25 of 25) sorted by relevance

/mcuboot-3.5.0/boot/nuttx/src/flash_map_backend/
Dflash_map_backend.c10 * http://www.apache.org/licenses/LICENSE-2.0
44 * Pre-processor Definitions
47 #define ARRAYSIZE(x) (sizeof((x)) / sizeof((x)[0]))
78 .fa_id = FLASH_AREA_IMAGE_PRIMARY(0),
79 .fa_device_id = 0,
80 .fa_off = 0,
81 .fa_size = 0,
90 0
94 0
96 .fd = -1,
[all …]
/mcuboot-3.5.0/sim/src/
Dimage.rs1 // Copyright (c) 2019-2021 Linaro LTD
2 // Copyright (c) 2019-2020 JUUL Labs
3 // Copyright (c) 2019-2023 Arm Limited
5 // SPDX-License-Identifier: Apache-2.0
60 /// For testing, use a non-zero offset for the ram-load, to make sure the offset is getting used
86 /// When doing multi-image, there is an instance of this information for
94 /// The Rust-side representation of an image. For unencrypted images, this
104 /// multi-image builds, these may not correspond with the offsets. This has to be computed early,
143 pub fn new(device: DeviceName, align: usize, erased_val: u8) -> Result<Self, String> { in new()
155 for image in 0..num_images { in new()
[all …]
Dlib.rs1 // Copyright (c) 2017-2019 Linaro LTD
2 // Copyright (c) 2017-2019 JUUL Labs
3 // Copyright (c) 2019-2023 Arm Limited
5 // SPDX-License-Identifier: Apache-2.0
43 bootsim run --device TYPE [--align SIZE]
45 bootsim (--help | --version)
48 -h, --help Show this message
49 --version Version
50 --device TYPE MCU to simulate
52 --align SIZE Flash write alignment
[all …]
/mcuboot-3.5.0/sim/mcuboot-sys/src/
Dapi.rs1 // Copyright (c) 2017-2021 Linaro LTD
2 // Copyright (c) 2018-2019 JUUL Labs
5 // SPDX-License-Identifier: Apache-2.0
20 /// A FlashMap maintain a table of [device_id -> Flash trait]
73 pub fn new() -> FlashContext { in new()
83 fn default() -> FlashContext { in default()
110 pub fn new() -> CSimContextPtr { in new()
118 fn default() -> CSimContextPtr { in default()
135 /// This struct stores the non-volatile security counter per image. It will be stored per test thre…
144 pub fn new() -> Self { in new()
[all …]
/mcuboot-3.5.0/ext/tinycrypt/lib/source/
Decc_platform_specific.c1 /* uECC_platform_specific.c - Implementation of platform specific functions*/
32 * - Redistributions of source code must retain the above copyright notice,
35 * - Redistributions in binary form must reproduce the above copyright
39 * - Neither the name of Intel Corporation nor the names of its contributors
55 * uECC_platform_specific.c -- Implementation of platform specific functions
63 /* Some POSIX-like system with /dev/urandom or /dev/random. */
71 #define O_CLOEXEC 0
77 if (dest == (uint8_t *) 0 || (size <= 0)) in default_CSPRNG()
78 return 0; in default_CSPRNG()
80 int fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in default_CSPRNG()
[all …]
/mcuboot-3.5.0/docs/
Dreadme-mynewt.md12 - mcuboot
16 vers: 0-dev
17 user: mcu-tools
25 - "@mcuboot/boot/bootutil"
36 in this new format. That is done by passing the extra parameter `-2` as in:
38 `newt create-image <target> <version> <pubkey> -2`
49 newtmgr --conntype serial --connstring "dev=/dev/ttyUSB0,mtu=256" image upload -e blinky.img
52 where `/dev/ttyUSB0` is your serial port.
Drelease.md13 backward-compatible manner.
14 3. PATCH version when there are backward-compatible bug fixes.
16 We add pre-release tags using the format `MAJOR.MINOR.PATCH-rc1`.
19 format `MAJOR.MINOR.PATCH-dev`.
23 Before making a release, update the `docs/release-notes.md` file
24 to describe the release. This should be a high-level description of
29 various snippets in the `docs/release-notes.d` directory. After
36 release candidate (a.b.c-rc1, followed by a.b.c-rc2 and the subsequent
54 suffix `rcN` (with no dash) is accepted only for the pre-release versions
58 link](https://www.python.org/dev/peps/pep-0440/#pre-releases).
[all …]
Dserial_recovery.md1 <!--
2 - SPDX-License-Identifier: Apache-2.0
4 - Copyright (c) 2022 Nordic Semiconductor ASA
6 - Original license:
8 - Licensed to the Apache Software Foundation (ASF) under one
9 - or more contributor license agreements. See the NOTICE file
10 - distributed with this work for additional information
11 - regarding copyright ownership. The ASF licenses this file
12 - to you under the Apache License, Version 2.0 (the
13 - "License"); you may not use this file except in compliance
[all …]
Dencrypted_images.md1 <!--
2 -
3 - Licensed to the Apache Software Foundation (ASF) under one
4 - or more contributor license agreements. See the NOTICE file
5 - distributed with this work for additional information
6 - regarding copyright ownership. The ASF licenses this file
7 - to you under the Apache License, Version 2.0 (the
8 - "License"); you may not use this file except in compliance
9 - with the License. You may obtain a copy of the License at
10 -
[all …]
Dreadme-espressif.md1 # [Building and using MCUboot with Espressif's chips](#building-and-using-mcuboot-with-espressifs-c…
3 The MCUBoot Espressif's port depends on HAL (Hardware Abstraction Layer) sources based on ESP-IDF
4 or 3rd party frameworks as such as Zephyr-RTOS (`zephyrproject-rtos/hal_espressif/`) or NuttX RTOS
5 (`espressif/esp-hal-3rdparty`). Building the MCUboot Espressif's port and its features is platform
7 standalone build version means that ESP-IDF and its toolchain are used as source. For 3rd parties
13 ## [SoC support availability](#soc-support-availability)
17 | | ESP32 | ESP32-S2 | ESP32-C3 | ESP32-S3 | ESP32-C2 | ESP32-C6 | ESP32-H2 |
18 | :----: | :-----: | :-----: | :-----: | :-----: | :---------: | :-----: | :-----: |
24 [Memory map organization for OS compatibility](#memory-map-organization-for-os-compatibility).
26 ## [Installing requirements and dependencies](#installing-requirements-and-dependencies)
[all …]
Drelease-notes.md3 - Table of Contents
6 ## Version 2.0.0
8 Note that this release, 2.0.0 is a new major number, and contains a small API
22 - Add error when flash device fails to open.
23 - Panic bootloader when flash device fails to open.
24 - Fixed issue with serial recovery not showing image details for
26 - Fixes issue with serial recovery in single slot mode wrongly
28 - CDDL auto-generated function code has been replaced with zcbor function
30 - Added currently running slot ID and maximum application size to
32 - Make the ECDSA256 TLV curve agnostic and rename it to ECDSA_SIG.
[all …]
/mcuboot-3.5.0/ci/fih_test_docker/
Dfi_tester_gdb.sh3 # Copyright (c) 2020-2022 Arm Limited
9 # http://www.apache.org/licenses/LICENSE-2.0
23 …INSTR=$($GDB $AXF_FILE --batch -ex "disassemble $SKIP_ADDRESS" | grep "^ *$SKIP_ADDRESS" | sed "s/…
25 …LINE=$($GDB $AXF_FILE --batch -ex "info line *$SKIP_ADDRESS" | sed "s/Line \([0-9]*\).*\"\(.*\)\".…
33 # Print out the meta-info about the test, in YAML
34 echo "- skip_test:"
39 # echo -ne "$SKIP_ADDRESS | $INSTR...\t"
44 b boot_go_for_image_id if image_id == 0
65 echo -n '.' 1>&2
70 rm -f $QEMU_PID_FILE $QEMU_LOG_FILE
[all …]
Dfi_make_manifest.sh9 # http://www.apache.org/licenses/LICENSE-2.0
17 OBJDUMP=arm-none-eabi-objdump
18 GDB=gdb-multiarch
21 if test $# -eq 0 || ! file $1 | grep "ELF" | grep "ARM" | grep "32" &>/dev/null; then
29 ADDRESSES=$($OBJDUMP $AXF_PATH -t | grep "FIH_LABEL")
31 ADDRESSES=$(echo "$ADDRESSES" | sed "s/\([[:xdigit:]]*\).*\(FIH_LABEL_FIH_CALL_[a-zA-Z]*\)_.*/0x\1,…
Drun_fi_test.sh9 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
21 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )
43 DAMAGE_PARAM="--signature"
45 DAMAGE_PARAM="--image-hash"
48 exit -1
51 python3 $DIR/damage_image.py -i $IMAGEDIR/$BACKUP_IMAGE_NAME -o $IMAGE $DAMAGE_PARAM 1>&2
62 …REGIONS=$(sed "N;s/\(0x[[:xdigit:]]*\).*START\n\(0x[[:xdigit:]]*\).*END.*/\1,\2/g;P;D" $PWD/fih_ma…
64 REGIONS=$(echo "$REGIONS" | tail -n+2)
68 START=$(echo $REGION | cut -d"," -f 1)
[all …]
/mcuboot-3.5.0/testplan/mynewt/
Dproject.yml10 # http://www.apache.org/licenses/LICENSE-2.0
20 project.name: "mcuboot-test"
23 - apache-mynewt-core
24 - mcuboot
26 repository.apache-mynewt-core:
28 vers: 0-dev
30 repo: mynewt-core
34 vers: 0-dev
35 user: mcu-tools
/mcuboot-3.5.0/
Drepository.yml10 # http://www.apache.org/licenses/LICENSE-2.0
23 "0.0.0": "main"
24 "0.9.0": "v0.9.0"
25 "1.0.0": "v1.0.0"
26 "1.1.0": "v1.1.0"
27 "1.2.0": "v1.2.0"
28 "1.3.0": "v1.3.0"
30 "1.4.0": "v1.4.0"
31 "1.5.0": "v1.5.0"
32 "1.6.0": "v1.6.0"
[all …]
Dproject.yml10 # http://www.apache.org/licenses/LICENSE-2.0
23 - apache-mynewt-core
27 repository.apache-mynewt-core:
29 vers: 0-dev
31 repo: mynewt-core
/mcuboot-3.5.0/ci/
Despressif_run.sh2 # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
3 # SPDX-License-Identifier: Apache-2.0
5 SCRIPT_ROOTDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
8 IDF_PATH="${HOME}/esp-idf"
10 set -eo pipefail
13 # Prepare the environment for ESP-IDF
22 local build_dir=".build-${target}"
23 local toolchain_file="${ESPRESSIF_ROOT}/tools/toolchain-${target}.cmake"
25 if [ -n "$img_num" ]; then
26 img_num="-${img_num}"
[all …]
/mcuboot-3.5.0/boot/zephyr/
Dserial_adapter.c2 * Copyright (c) 2017-2023 Nordic Semiconductor ASA
8 * http://www.apache.org/licenses/LICENSE-2.0
34 has not been redirected to other UART with DTS chosen zephyr,uart-mcumgr.
76 for (i = 0; i < cnt; i++) { in console_write()
92 *newline = 0; in console_read()
93 return 0; in console_read()
96 if (len > str_size - 1) { in console_read()
97 len = str_size - 1; in console_read()
101 str[len] = '\0'; in console_read()
118 for (i = 0; i < ARRAY_SIZE(line_bufs); i++) { in boot_console_init()
[all …]
/mcuboot-3.5.0/boot/nuttx/include/mcuboot_config/
Dmcuboot_config.h10 * http://www.apache.org/licenses/LICENSE-2.0
34 * Pre-processor Definitions
46 /* Uncomment for ECDSA signatures using curve P-256. */
67 /* Enable the overwrite-only code path. */
81 /* Enable the direct-xip code path. */
87 /* Enable the revert mechanism in direct-xip mode. */
93 /* Enable the ram-load code path. */
192 # define CONFIG_MCUBOOT_WATCHDOG_DEVPATH "/dev/watchdog0"
203 while (0)
209 while (0)
/mcuboot-3.5.0/samples/zephyr/
Drun-tests.go8 // go run run-tests.go [flags]
10 // Add -help as a flag to get help. See comment below for logIn on
28 "github.com/mcu-tools/mcuboot/samples/zephyr/mcutests"
37 // picocom -b 115200 /dev/ttyACM0 | tee /tmp/zephyr.out
72 // If there are pre-built images, open them.
82 fmt.Fprintf(lg, "-------------------------------------\n")
83 fmt.Fprintf(lg, "---- Running %q\n", group.Name)
112 fmt.Fprintf(lg, "---- Passed\n")
124 fmt.Fprintf(lg, "---- Run: %s\n", cmd)
136 c := exec.Command(cmd[0], cmd[1:]...)
[all …]
/mcuboot-3.5.0/ext/tinycrypt/lib/include/tinycrypt/
Decc.h1 /* ecc.h - TinyCrypt interface to common ECC functions */
35 * - Redistributions of source code must retain the above copyright notice,
38 * - Redistributions in binary form must reproduce the above copyright
42 * - Neither the name of Intel Corporation nor the names of its contributors
61 * @brief -- Interface to common ECC functions.
65 * curve NIST p-256.
67 * Security: The curve NIST p-256 provides approximately 128 bits of security.
80 /* Word size (4 bytes considering 32-bits architectures) */
99 #define HIGH_BIT_SET 0x80000000
102 #define uECC_WORD_BITS_MASK 0x01F
[all …]
/mcuboot-3.5.0/boot/espressif/
DCMakeLists.txt1 # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
3 # SPDX-License-Identifier: Apache-2.0
11 message(FATAL_ERROR "MCUBOOT_TARGET not defined. Please pass -DMCUBOOT_TARGET flag.")
16 add_definitions(-DMCUBOOT_TARGET=${MCUBOOT_TARGET})
17 add_definitions(-D__ESPRESSIF__=1)
34 set(ESP_MIN_REVISION 0)
36 set(ESP_MIN_REVISION 0)
40 set(ESP_MIN_REVISION 0)
42 set(ESP_MIN_REVISION 0)
44 set(ESP_MIN_REVISION 0)
[all …]
/mcuboot-3.5.0/boot/espressif/include/crypto_config/
Dmbedtls_custom_config.h6 * This set of compile-time options may be used to enable
12 * SPDX-License-Identifier: Apache-2.0
18 * http://www.apache.org/licenses/LICENSE-2.0
36 //#define MBEDTLS_CONFIG_VERSION 0x03000000
67 * The platform lacks support for double-width integer division (64-bit
68 * division on a 32-bit platform, 128-bit division on a 64-bit platform).
74 * The bignum code uses double-width division to speed up some operations.
75 * Double-width division is often implemented in software that needs to
76 * be linked with the program. The presence of a double-width integer
81 * Uncomment this option to prevent the use of double-width division.
[all …]
/mcuboot-3.5.0/boot/cypress/MCUBootApp/config/
Dmcuboot_crypto_config.h6 * This set of compile-time options may be used to enable
11 * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
12 * SPDX-License-Identifier: Apache-2.0
18 * http://www.apache.org/licenses/LICENSE-2.0
66 * The platform lacks support for double-width integer division (64-bit
67 * division on a 32-bit platform, 128-bit division on a 64-bit platform).
73 * The bignum code uses double-width division to speed up some operations.
74 * Double-width division is often implemented in software that needs to
75 * be linked with the program. The presence of a double-width integer
80 * Uncomment this option to prevent the use of double-width division.
[all …]