/mcuboot-3.7.0/boot/nuttx/src/flash_map_backend/ |
D | flash_map_backend.c | 10 * 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.7.0/sim/src/ |
D | image.rs | 1 // 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 57 /// For testing, use a non-zero offset for the ram-load, to make sure the offset is getting used 83 /// When doing multi-image, there is an instance of this information for 91 /// The Rust-side representation of an image. For unencrypted images, this 101 /// multi-image builds, these may not correspond with the offsets. This has to be computed early, 140 pub fn new(device: DeviceName, align: usize, erased_val: u8) -> Result<Self, String> { in new() 152 for image in 0..num_images { in new() [all …]
|
D | lib.rs | 1 // 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.7.0/sim/mcuboot-sys/src/ |
D | api.rs | 1 // 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() 106 fn default() -> Self { in default() 108 flash_counter: 0, in default() 109 jumped: 0, in default() 110 c_asserts: 0, in default() [all …]
|
/mcuboot-3.7.0/ext/tinycrypt/lib/source/ |
D | ecc_platform_specific.c | 1 /* 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.7.0/docs/ |
D | readme-mynewt.md | 12 - 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.
|
D | release.md | 13 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 …]
|
D | serial_recovery.md | 1 <!-- 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 …]
|
D | encrypted_images.md | 1 <!-- 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 …]
|
D | readme-espressif.md | 1 # [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 …]
|
D | release-notes.md | 3 - Table of Contents 6 ## Version 2.1.0 8 - Boot serial: Add response to echo command if support is not 12 - Added support for using builtin keys for image validation 14 - Enforce that TLV entries that should be protected are. 16 - bootutil: Fixed issue with comparing sector sizes for 20 - bootutil: Added debug logging to show write location of swap status 23 - Update ptest to support test selection. Ptest can now be invoked with `list` 24 to show the available tests and `run` to run them. The `-t` argument will 26 - Allow sim tests to skip slow tests. By setting `MCUBOOT_SKIP_SLOW_TESTS` in [all …]
|
/mcuboot-3.7.0/ci/fih_test_docker/ |
D | fi_tester_gdb.sh | 3 # 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 …]
|
D | fi_make_manifest.sh | 9 # 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,…
|
D | run_fi_test.sh | 9 # 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.7.0/testplan/mynewt/ |
D | project.yml | 10 # 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.7.0/ |
D | repository.yml | 10 # 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 …]
|
D | project.yml | 10 # 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.7.0/ci/ |
D | espressif_run.sh | 2 # 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.7.0/boot/zephyr/ |
D | serial_adapter.c | 2 * Copyright (c) 2017-2023 Nordic Semiconductor ASA 8 * http://www.apache.org/licenses/LICENSE-2.0 35 has not been redirected to other UART with DTS chosen zephyr,uart-mcumgr. 38 #if defined(CONFIG_BOOT_SERIAL_CDC_ACM) && CONFIG_MAIN_THREAD_PRIORITY < 0 40 (0 or above) 82 for (i = 0; i < cnt; i++) { in console_write() 98 *newline = 0; in console_read() 99 return 0; in console_read() 102 if (len > str_size - 1) { in console_read() 103 len = str_size - 1; in console_read() [all …]
|
/mcuboot-3.7.0/boot/nuttx/include/mcuboot_config/ |
D | mcuboot_config.h | 10 * 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.7.0/samples/zephyr/ |
D | run-tests.go | 8 // 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.7.0/ext/tinycrypt/lib/include/tinycrypt/ |
D | ecc.h | 1 /* 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.7.0/boot/espressif/ |
D | CMakeLists.txt | 1 # 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.") 14 add_definitions(-DMCUBOOT_TARGET=${MCUBOOT_TARGET}) 15 add_definitions(-D__ESPRESSIF__=1) 33 file(GLOB C_COMPILER_BIN "${TOOLCHAIN_BIN_DIR}/*${MCUBOOT_ARCH}*elf-gcc") 41 file(GLOB CXX_COMPILER_BIN "${TOOLCHAIN_BIN_DIR}/*${MCUBOOT_ARCH}*elf-g++") 49 set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/tools/toolchain-${MCUBOOT_TARGET}.cmake) 50 … message("No user-defined toolchain, setting default toolchain file: ${CMAKE_TOOLCHAIN_FILE}") 55 # that may fail due to cross-compilation [all …]
|
/mcuboot-3.7.0/boot/espressif/include/crypto_config/ |
D | mbedtls_custom_config.h | 6 * 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.7.0/boot/cypress/MCUBootApp/config/ |
D | mcuboot_crypto_config.h | 6 * 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 …]
|