Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upmerge 2024.12.20 #393

Open
wants to merge 224 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
7567200
cmake: zephyr: change ERROR into FATAL_ERROR
tejlmand Sep 16, 2024
41df52e
boot: SHA512 verification
michalek-no May 20, 2024
b553290
Add Conexio Stratus Pro board configuration for DFU
rajeev1986 Sep 20, 2024
fe26c28
boot: zephyr: boards: nxp: clean .conf files
butok Sep 20, 2024
f8d8004
boot: zephyr: Allow disabling NRFX_WDT on nRF devices
joerchan Sep 21, 2024
f9fc591
boot: zephyr: Remove broken target config header feature
joerchan Sep 21, 2024
c40d237
boot: zephyr: Add check for unexpected flash sector size
nordicjm Sep 10, 2024
7f3c77e
boot: bootutil: Add write block size checking
nordicjm Sep 24, 2024
71bccff
docs: release-notes: Add note on erase/write block size checking
nordicjm Sep 24, 2024
30109df
boot: bootutil: loader: Fix slot info for directXIP/RAM load
nordicjm Sep 25, 2024
cc7b97b
boot: boot_serial: Fix wrong usage of slot numbers
nordicjm Sep 25, 2024
3b38056
docs: release-notes: Add note on serial recovery fix
nordicjm Sep 25, 2024
3a195f2
boot: bootutil: loader: Fix issue with using pointers
nordicjm Sep 27, 2024
c894d04
imgtool: Add support for calculating SHA512
de-nordic Aug 22, 2024
8f759f2
boot: Replace boot_encrypt by boot_enc_encrypt and boot_enc_decrypt
de-nordic Jul 18, 2024
30bcd46
bootutil: Add SIG_PURE TLV
de-nordic Aug 2, 2024
63fa7e4
scripts: imgtool: compression
michalek-no Aug 9, 2024
a5e3d16
zephyr: hello_world: Fix the main() return type warning
butok Oct 4, 2024
a967c66
boot: zephyr: Fix Warning 'boot_serial_enter defined but not used'
butok Oct 2, 2024
a91a615
boot: zephyr: Fix serial recovery for NXP IMX.RT platforms
butok Oct 2, 2024
b233228
samples: zephyr: add sysbuild to the hello-world sample
butok Sep 30, 2024
5c21093
boot: zephyr: use EXTRA_CONF_FILE instead of deprecated OVERLAY_CONFIG
butok Oct 7, 2024
f1f557f
zephyr: Fixing Kconfig dependency for SHA512
de-nordic Oct 8, 2024
601463d
bootutil: Add SHA-512 support with mbedTLS
taltenbach Sep 6, 2024
a5f28c1
bootutil: Add SHA-512 support to Ed25519
taltenbach Sep 9, 2024
d69933c
scripts: imgtool: compression ARM thumb filter
michalek-no Oct 4, 2024
08a71d1
boot: bootutil: swap_scratch: Fix compressed image sector size check
nordicjm Oct 7, 2024
b9d69dd
zephyr: print version number before boot
toonst Oct 14, 2024
33de65c
scipts: imgtool: bugfix #2096
michalek-no Oct 15, 2024
9f1e573
boot/bootutil: Split RAM load code to its own file
edersondisouza Jul 19, 2024
5c67fb9
boot/bootutil: Add MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD mode
edersondisouza Sep 18, 2024
249a71d
boot/zephyr: Add CONFIG_SINGLE_APPLICATION_SLOT_RAM_LOAD
edersondisouza Sep 13, 2024
4893193
boot/zephyr: Load image to RAM on single loader
edersondisouza Aug 15, 2024
6b2c93c
doc: design: fix the memory-size-effective slot size description
butok Oct 21, 2024
439930a
boot_serial: Fix serial recovery for LPC55x and MCXNx
butok Oct 14, 2024
4d0985c
Revert "boot/zephyr: Load image to RAM on single loader"
nordicjm Oct 28, 2024
fc0603f
Revert "boot/zephyr: Add CONFIG_SINGLE_APPLICATION_SLOT_RAM_LOAD"
nordicjm Oct 28, 2024
45991fe
Revert "boot/bootutil: Add MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD m…
nordicjm Oct 28, 2024
41c6586
Revert "boot/bootutil: Split RAM load code to its own file"
nordicjm Oct 28, 2024
f74b77c
imgtool: fix signing for fix-sig-pubkey public rsa
GeorgeCGV Oct 28, 2024
0c721da
boot/bootutil: Split RAM load code to its own file
edersondisouza Jul 19, 2024
77d911f
boot/bootutil: Add MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD mode
edersondisouza Sep 18, 2024
84c68ac
boot/zephyr: Add CONFIG_SINGLE_APPLICATION_SLOT_RAM_LOAD
edersondisouza Sep 13, 2024
040fc42
boot/zephyr: Load image to RAM on single loader
edersondisouza Aug 15, 2024
f865cc3
codeowners: Add file
nordicjm Sep 16, 2024
8f557aa
ci: Add issue and PR assigner
nordicjm Sep 16, 2024
a03c95f
doc: remove repetition
alxrey Oct 21, 2024
bcde2bf
codeowners: Fix format
nordicjm Nov 11, 2024
9331c92
workflows: Remove PR workflow
nordicjm Nov 11, 2024
bd7423d
boot: zephyr: Add warning on default key file usage
nordicjm Oct 8, 2024
ab01443
boards: mcxn947_qspi: fix mcuboot partition allocation
butok Nov 12, 2024
d2fc01d
ci: Fix issue and closed issue workflows
nordicjm Nov 13, 2024
4ca606d
codeowners: Move wildcard entry to top
nordicjm Nov 12, 2024
099f428
boot: zephyr: Add fallback for overhead calculation when auto fails
nordicjm Nov 13, 2024
bcffc62
boot: bootutil: boot_record: Fix issue with saving image data
nordicjm Nov 11, 2024
d59ae34
boot_serial: Support sha256, sha384 and sha512
de-nordic Nov 12, 2024
eb94206
Allow bootstrapping for multiple images
KarlKTorp Nov 15, 2024
e43e670
Add a test to verify if lzma2 compression works
fundakol Oct 7, 2024
ba43f1f
ci: Fix issue assignment
nordicjm Nov 18, 2024
8a2e2ed
ci: Upgrade artifact actions
nordicjm Nov 19, 2024
39aab3d
zephyr: Add CONFIG_MCUBOOT_CLEANUP_RAM
de-nordic Nov 20, 2024
742978e
boot: zephyr: Fix sample.bootloader.mcuboot.usb_cdc_acm_recovery
butok Nov 26, 2024
02db524
ci: mynewt: Use newt for downloading dependencies
sjanc May 11, 2023
7cc6005
boot: zephyr: boards: nrf54l10 and nrf54l05 configs
michalek-no Dec 2, 2024
5d6471b
zephyr: convert platform_allow to a list
nashif Dec 5, 2024
4d24b22
ci: zephyr: Update docker image version
nordicjm Dec 5, 2024
b778ad9
ci: zephyr: Limit zephyr modules
nordicjm Dec 5, 2024
f2a6146
boot: zephyr: boot_record: Save boot data with single image
dpw13 Dec 4, 2024
15909d6
scripts: imgtool: fix sha512 for compression
michalek-no Dec 10, 2024
84416fd
boot: zephyr: boards: Add frdm-mcxa156 configuration
butok Dec 10, 2024
2ac7976
bootutil: Fix the reading of image headers after partial swap completion
taltenbach Oct 11, 2024
4f39356
bootutil: Fix device brick after power failure during swap-move revert
taltenbach Oct 16, 2024
7ba0e55
boot: zephyr: nxp: Add NXP platforms to the allow list
butok Sep 25, 2024
0946c7a
boot: zephyr: boards: add ctcc/nrf52840 and ctcc/nrf9161 targets
kowalewskijan Dec 12, 2024
5b1c77d
ci: actions/cache v1 has been deprecated, use v4
towynlin Dec 12, 2024
f5454f1
boot: bootutil: loader.c: Add check if has upgrade before pushing sta…
juser19201 Dec 10, 2024
3a33d4f
boot/zephyr/boards: configure fastest RRAM operations
nvlsianpu Dec 17, 2024
a2bc982
zephyr: update mimx1050 and 1060 platform_allow entries
kartben Dec 21, 2024
7ace25c
Revert "[nrf noup] boot: Remove child/parent references"
anangl Jan 20, 2025
a84b9b1
Revert "[nrf fromtree] boot/zephyr/boards: configure fastest RRAM ope…
anangl Jan 20, 2025
0e2505b
Revert "[nrf noup] boot/zephyr/boards: configure fastest RRAM operati…
anangl Jan 20, 2025
2cf9bc2
Revert "[nrf noup] boot: zephyr: serial_recovery: Add nRF5340 Kconfig…
anangl Jan 20, 2025
b242114
Revert "[nrf noup] boot: bootutil: image_validate: Add KMU support to…
anangl Jan 20, 2025
d733f69
Revert "[nrf noup] boot: bootutil: Allow configuring number of KMU keys"
anangl Jan 20, 2025
2090ac7
Revert "[nrf fromtree] boot: zephyr: boards: nrf54l10 and nrf54l05 co…
anangl Jan 20, 2025
9178fcb
Revert "[nrf noup] boot: zephyr: Add experimental selection to compre…
anangl Jan 20, 2025
2d312e3
Revert "[nrf noup] bootutil: Add support for KMU stored ED25519 signa…
anangl Jan 20, 2025
c6bcf81
Revert "[nrf noup] boot/zephyr/Kconfig: conditionally disable BOOT_MA…
anangl Jan 20, 2025
52090b9
Revert "[nrf noup] bootutil: PureEdDSA using ED25519"
anangl Jan 20, 2025
797b1e8
Revert "[nrf noup] bootutil: Enable hash calculation directly on stor…
anangl Jan 20, 2025
d00f926
Revert "[nrf noup] bootutil: Provide support for SHA512 with ED25519"
anangl Jan 20, 2025
4746cf7
Revert "[nrf noup] PSA configuration required changes"
anangl Jan 20, 2025
587fffc
Revert "[nrf fromtree] zephyr: Add CONFIG_MCUBOOT_CLEANUP_RAM"
anangl Jan 20, 2025
62b4a02
Revert "[nrf noup] Fix logging for ED25519_psa"
anangl Jan 20, 2025
628f7bd
Revert "[nrf fromlist] boot_serial: Support sha256, sha384 and sha512"
anangl Jan 20, 2025
4eb8446
Revert "[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs"
anangl Jan 20, 2025
324c50d
Revert "[nrf noup] workflows: Add a backport workflow"
anangl Jan 20, 2025
4244ed6
Revert "[nrf noup] boards: Thingy:91 X release config"
anangl Jan 20, 2025
471487a
Revert "[nrf noup] boot: bootutil: loader: Add s0/s1 checking of MCUb…
anangl Jan 20, 2025
bdda2c7
Revert "[nrf noup] treewide: Add support for sysbuild assigned images"
anangl Jan 20, 2025
992d8a5
Revert "[nrf noup] boot: zephyr: Do not lock PCD region with TF-M"
anangl Jan 20, 2025
75cd4b4
Revert "[nrf noup] Remove setting default MCUboot mbedTLS config"
anangl Jan 20, 2025
086c59f
Revert "[nrf noup] zephyr: Add support for ARM thumb filter"
anangl Jan 20, 2025
b79ccb9
Revert "[nrf noup] PSA implementation of x25519 and ed25519 verificat…
anangl Jan 20, 2025
f7e5ddf
Revert "[nrf noup] boot: Add shared crypto for ECDSA and SHA"
anangl Jan 20, 2025
e3a0a70
Revert "[nrf noup] zephyr: Add support for compressed image updates"
anangl Jan 20, 2025
f84678f
Revert "[nrf noup] boards: nrf54l15dk: Disable FPROTECT"
anangl Jan 20, 2025
b0c5b14
Revert "[nrf noup] bootutil: loader: Fix netcore address checking"
anangl Jan 20, 2025
a561a85
Revert "[nrf noup] boot/../loader: reboot after updating s0/s1"
anangl Jan 20, 2025
ee52ae9
Revert "[nrf noup] boot/../loader: skip downgrade prevention for s1/s0"
anangl Jan 20, 2025
37205ea
Revert "[nrf noup] boot: zephyr: Add NCS boot banner"
anangl Jan 20, 2025
006a05e
Revert "[nrf noup] zephyr/boards: fix nrf54l15pdk ext flash dts overlay"
anangl Jan 20, 2025
2bae972
Revert "[nrf noup] Revert of zephyr: arm: Update reading the flash im…
anangl Jan 20, 2025
a52c40d
Revert "[nrf noup] boot/zephyr: fix fw_info search"
anangl Jan 20, 2025
5d3be89
Revert "[nrf noup] boot: zephyr: Disable boot banner if NCS_BOOT_BANN…
anangl Jan 20, 2025
6cdbf1c
Revert "[nrf noup] boards: thingy91x: enable serial recovery"
anangl Jan 20, 2025
c5b85a3
Revert "[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash update"
anangl Jan 20, 2025
53fe4a1
Revert "[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash partition"
anangl Jan 20, 2025
4ec1edd
Revert "[nrf noup] loader: remove cleanup for direct xip mode"
anangl Jan 20, 2025
ad0fe70
Revert "[nrf noup] boards: nrf54l15: Disable FPROTECT"
anangl Jan 20, 2025
5620e14
Revert "[nrf noup] loader: introduced cleanup of unusable secondary s…
anangl Jan 20, 2025
f5cc248
Revert "[nrf noup] sysflash: Add support for three images"
anangl Jan 20, 2025
32f58c5
Revert "[nrf noup] sysflash: Move partition manager definitions to pm…
anangl Jan 20, 2025
83e9b93
Revert "[nrf noup] boot: Add support for NSIB and multi-image"
anangl Jan 20, 2025
8885438
Revert "[nrf noup] loader: Fix missing PCD define check"
anangl Jan 20, 2025
e0f62b7
Revert "[nrf noup] loader: work-around for multi-image builds"
anangl Jan 20, 2025
53c7776
Revert "[nrf noup] boot/zephyr/boards: nRF54l15pdk ext flash cfg"
anangl Jan 20, 2025
0f2e1f6
Revert "[nrf noup] boards: thingy53: disable GPIO ISR support"
anangl Jan 20, 2025
9478281
Revert "[nrf noup] loader: Add firmware version check downgrade preve…
anangl Jan 20, 2025
f26b5b4
Revert "[nrf noup] zephyr: Boot even if EXT_ABI is not provided"
anangl Jan 20, 2025
074e569
Revert "[nrf noup] zephyr: Add RAM flash configuration to cache for s…
anangl Jan 20, 2025
3b230ca
Revert "[nrf noup] loader: Do not check reset vector for XIP image"
anangl Jan 20, 2025
0b06973
Revert "[nrf noup] zephyr: Fix path variables"
anangl Jan 20, 2025
6d2bc26
Revert "[nrf noup] loader: Fix reading reset addr to support ext flash"
anangl Jan 20, 2025
f091979
Revert "[nrf noup] zephyr: Clean up non-secure RAM if enabled"
anangl Jan 20, 2025
7a8ec49
Revert "[nrf noup] zephyr: clean peripherals state before boot"
anangl Jan 20, 2025
18adec4
Revert "[nrf noup] boot: nrf53-specific customizations"
anangl Jan 20, 2025
926e837
Revert "[nrf noup] treewide: add NCS partition manager support"
anangl Jan 20, 2025
0d20b56
Revert "[nrf noup] boards: thingy91x: add board config"
anangl Jan 20, 2025
dc468d8
Revert "[nrf noup] zephyr: Restore default RTC user channel count"
anangl Jan 20, 2025
a84dd35
Revert "[nrf noup] boards: add support for Thingy:91"
anangl Jan 20, 2025
aa2d118
Revert "[nrf noup] zephyr: add 'minimal' configuration files"
anangl Jan 20, 2025
8da3ac7
Revert "[nrf noup] zephyr: Remove duplication from cmake"
anangl Jan 20, 2025
fe4aed0
Revert "[nrf noup] github: Add a commit tags check workflow"
anangl Jan 20, 2025
3efce4a
Revert "[nrf fromtree] bootutil: Add SIG_PURE TLV"
anangl Jan 20, 2025
c8c00ad
Revert "[nrf noup] imgtool: create image obj with image_hash"
anangl Jan 20, 2025
19d7c8c
Revert "[nrf fromlist] imgtool: Add pure signature support"
anangl Jan 20, 2025
e3af534
Revert "[nrf fromlist] scipts: imgtool: bugfix #2096"
anangl Jan 20, 2025
7122fe9
Revert "[nrf fromlist] zephyr: Fixing Kconfig dependency for SHA512"
anangl Jan 20, 2025
a94d48b
Revert "[nrf fromlist] scripts: imgtool: compression ARM thumb filter"
anangl Jan 20, 2025
4e40d9e
Revert "[nrf fromlist] boot: bootutil: swap_scratch: Fix compressed i…
anangl Jan 20, 2025
d110ba1
Revert "[nrf fromtree] scripts: imgtool: compression"
anangl Jan 20, 2025
3969a09
Revert "[nrf fromtree] boot: bootutil: loader: Fix issue with using p…
anangl Jan 20, 2025
6a92ef8
Revert "[nrf fromtree] boot: bootutil: loader: Fix slot info for dire…
anangl Jan 20, 2025
fd4cf1c
Revert "[nrf fromlist] scripts: imgtool: compression"
anangl Jan 20, 2025
aa7d51d
Revert "[nrf fromlist] boot: Replace boot_encrypt by boot_enc_encrypt…
anangl Jan 20, 2025
4c1f25f
Revert "[nrf fromlist] imgtool: Add support for calculating SHA512"
anangl Jan 20, 2025
e99b203
Revert "[nrf fromtree] boot: SHA512 verification"
anangl Jan 20, 2025
e94b54d
[nrf mergeup] Merge upstream up to commit a2bc982b3379d51fefda3e17a6a…
anangl Jan 20, 2025
3d4e61c
[nrf fromtree] imgtool: Add pure signature support
de-nordic Sep 12, 2024
b289edc
[nrf noup] github: Add a commit tags check workflow
carlescufi Oct 10, 2023
0f9f6ff
[nrf noup] zephyr: Remove duplication from cmake
sigvartmh Mar 26, 2019
8b1558d
[nrf noup] zephyr: add 'minimal' configuration files
mbolivar-nordic Sep 3, 2021
759fa36
[nrf noup] boards: add support for Thingy:91
bjda Sep 20, 2019
ef28ac7
[nrf noup] zephyr: Restore default RTC user channel count
Damian-Nordic Mar 21, 2022
f9a058f
[nrf noup] boards: thingy91x: add board config
maxd-nordic Dec 8, 2023
eb4f283
[nrf noup] treewide: add NCS partition manager support
SebastianBoe Dec 12, 2018
7ee6cc3
[nrf noup] boot: nrf53-specific customizations
sigvartmh Aug 27, 2020
3a6fe7d
[nrf noup] zephyr: clean peripherals state before boot
nvlsianpu Feb 27, 2020
f9c4052
[nrf noup] zephyr: Clean up non-secure RAM if enabled
sigvartmh Jan 6, 2023
966943e
[nrf noup] loader: Fix reading reset addr to support ext flash
chrta Feb 10, 2022
2fc7de7
[nrf noup] zephyr: Fix path variables
nordicjm Jul 11, 2023
4e54b88
[nrf noup] loader: Do not check reset vector for XIP image
de-nordic Sep 22, 2023
e8b3fb9
[nrf noup] zephyr: Add RAM flash configuration to cache for sysbuild
nordicjm Sep 18, 2023
bb3ef62
[nrf noup] zephyr: Boot even if EXT_ABI is not provided
sigvartmh Oct 17, 2023
5360321
[nrf noup] loader: Add firmware version check downgrade prevention
sigvartmh Sep 27, 2023
fbb4a6d
[nrf noup] boards: thingy53: disable GPIO ISR support
nika-nordic Oct 9, 2023
0eff8cd
[nrf noup] boot/zephyr/boards: nRF54l15pdk ext flash cfg
nvlsianpu Apr 11, 2024
a22089a
[nrf noup] loader: work-around for multi-image builds
sigvartmh Mar 30, 2021
cacc55f
[nrf noup] loader: Fix missing PCD define check
nordicjm Aug 31, 2023
e8efecf
[nrf noup] boot: Add support for NSIB and multi-image
sigvartmh May 31, 2023
8f4b25d
[nrf noup] sysflash: Move partition manager definitions to pm_sysflash.h
de-nordic Aug 10, 2023
df25cc4
[nrf noup] sysflash: Add support for three images
de-nordic Aug 11, 2023
8876364
[nrf noup] loader: introduced cleanup of unusable secondary slot
nvlsianpu Feb 15, 2024
12fef6c
[nrf noup] boards: nrf54l15: Disable FPROTECT
gchwier Apr 16, 2024
36aa424
[nrf noup] loader: remove cleanup for direct xip mode
gchwier May 17, 2024
f112b9b
[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash partition
nvlsianpu Apr 15, 2024
8bd566c
[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash update
nvlsianpu May 20, 2024
fb977e8
[nrf noup] boards: thingy91x: enable serial recovery
maxd-nordic Mar 12, 2024
643c939
[nrf noup] boot: zephyr: Disable boot banner if NCS_BOOT_BANNER is used
rlubos May 17, 2024
0cb6a2e
[nrf noup] boot/zephyr: fix fw_info search
nvlsianpu May 27, 2024
592b1b8
[nrf noup] Revert of zephyr: arm: Update reading the flash image rese…
de-nordic May 28, 2024
2c0e4e9
[nrf noup] zephyr/boards: fix nrf54l15pdk ext flash dts overlay
nvlsianpu Jun 5, 2024
2d42557
[nrf noup] boot: zephyr: Add NCS boot banner
nordicjm Jun 11, 2024
130edfd
[nrf noup] boot/../loader: skip downgrade prevention for s1/s0
nvlsianpu Jun 13, 2024
54e8861
[nrf noup] boot/../loader: reboot after updating s0/s1
nvlsianpu Jun 18, 2024
0b3e609
[nrf noup] bootutil: loader: Fix netcore address checking
nordicjm Aug 29, 2024
20f5e4d
[nrf noup] boards: nrf54l15dk: Disable FPROTECT
nvlsianpu Sep 18, 2024
9e374b9
[nrf noup] zephyr: Add support for compressed image updates
nordicjm Aug 22, 2024
7155c42
[nrf noup] boot: Add shared crypto for ECDSA and SHA
sigvartmh Feb 14, 2019
1b306c4
[nrf noup] PSA implementation of x25519 and ed25519 verification
de-nordic May 29, 2024
c436e52
[nrf noup] zephyr: Add support for ARM thumb filter
nordicjm Sep 2, 2024
d80d520
[nrf noup] Remove setting default MCUboot mbedTLS config
de-nordic Oct 17, 2024
f0104aa
[nrf noup] boot: zephyr: Do not lock PCD region with TF-M
MarkusLassila Aug 30, 2024
a119f09
[nrf noup] treewide: Add support for sysbuild assigned images
nordicjm Sep 10, 2024
8afb4f4
[nrf noup] boot: bootutil: loader: Add s0/s1 checking of MCUboot image
nordicjm Oct 15, 2024
86b1620
[nrf noup] boards: Thingy:91 X release config
maxd-nordic Oct 23, 2024
168fc1a
[nrf noup] workflows: Add a backport workflow
carlescufi Oct 25, 2024
f9832ae
[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs
michalek-no Nov 7, 2024
3494623
[nrf noup] Fix logging for ED25519_psa
maciejbaczmanski Nov 28, 2024
4a576b4
[nrf noup] PSA configuration required changes
de-nordic Jul 24, 2024
b06ca18
[nrf noup] bootutil: Provide support for SHA512 with ED25519
de-nordic Aug 2, 2024
62bfa78
[nrf noup] bootutil: Enable hash calculation directly on storage
de-nordic Sep 5, 2024
e634f5d
[nrf noup] bootutil: PureEdDSA using ED25519
de-nordic Sep 6, 2024
d1fcd2c
[nrf noup] boot/zephyr/Kconfig: conditionally disable BOOT_MAX_IMG_SE…
nvlsianpu Sep 19, 2024
e4de269
[nrf noup] bootutil: Add support for KMU stored ED25519 signature key
de-nordic Sep 20, 2024
5c683f5
[nrf noup] boot: zephyr: Add experimental selection to compression
nordicjm Nov 7, 2024
159a461
[nrf noup] boot: bootutil: Allow configuring number of KMU keys
nordicjm Dec 2, 2024
494d38d
[nrf noup] boot: bootutil: image_validate: Add KMU support to compres…
nordicjm Dec 10, 2024
eea3f89
[nrf noup] boot: zephyr: serial_recovery: Add nRF5340 Kconfig override
nordicjm Dec 9, 2024
bf0c750
[nrf noup] boot/zephyr/boards: configure fastest RRAM operations
nvlsianpu Dec 17, 2024
d2b1549
[nrf noup] boot: Remove child/parent references
nordicjm Dec 5, 2024
4740e2d
[nrf noup] sysflash: Add missing _FLASH_0_ID definitions
de-nordic Jan 15, 2025
d6d95a0
[nrf noup] boot: zephyr: boards: Disabled NCS boot banner for thingy 53
kkasperczyk-no Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/imgtool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ jobs:
pipenv run pip install pytest -e .
pipenv run pytest --junitxml=../junit/pytest-results-${{ matrix.python-version }}.xml
- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: pytest-results-${{ matrix.python-version }}
path: |
junit/pytest-results-${{ matrix.python-version }}*.xml
if-no-files-found: ignore
overwrite: true
environment:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
Expand All @@ -50,7 +51,7 @@ jobs:
with:
fetch-depth: 0
- name: Cache pip
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Issue assignment

on:
issues:
types: [opened]

jobs:
move-to-todo:
runs-on: ubuntu-latest
if: github.repository == 'mcu-tools/mcuboot'
steps:
- uses: fojia/action-move-issues-to-column@master
with:
project: 'Issue Tracking'
column: 'No Status'
owner: 'mcu-tools'
repo: 'mcuboot'
type: 'repo'
github_token: ${{ secrets.GITHUB_TOKEN }}
marker: 'issue:todo'
19 changes: 19 additions & 0 deletions .github/workflows/issue_closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue closed

on:
issues:
types: [close]

jobs:
move-to-todo:
runs-on: ubuntu-latest
if: github.repository == 'mcu-tools/mcuboot'
steps:
- uses: fojia/action-move-issues-to-column@master
with:
project: 'MCUboot releases'
column: 'Done'
owner: 'mcu-tools'
repo: 'mcuboot'
type: 'repo'
github_token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/mynewt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Print the environment
run: |
uname -a
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/zephyr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
runs-on: ubuntu-latest
# Docker image from the zephyr upstream. Includes SDK and other required tools
container:
image: zephyrprojectrtos/ci:v0.26.4
image: zephyrprojectrtos/ci:v0.27.4
options: '--entrypoint /bin/bash'
volumes:
- /home/runners/zephyrproject:/github/cache/zephyrproject
env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.1
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.17.0

steps:
- name: Set versions when workflow_dispatch
Expand All @@ -69,6 +69,7 @@ jobs:
- name: Setup Zephyr
working-directory: repos/zephyr
run: |
west config --system manifest.project-filter -- -.*,+cmsis,+hal_nordic,+hal_nxp,+hal_stm32,+libmetal,+littlefs,+mbedtls,+mcuboot,+open-amp,+picolibc,+segger,+tinycrypt,+trusted-firmware-m,+zcbor
west init -l .
west update

Expand Down
10 changes: 10 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* @d3zd3z
boot/boot_serial/ @nordicjm @de-nordic
boot/bootutil/ @davidvincze
boot/cypress/ @romanjoe
boot/espressif/ @almir-okato
boot/mynewt/ @kasjer
boot/nuttx/ @michallenc
boot/zcbor/ @nordicjm @de-nordic
boot/zephyr/ @nordicjm @de-nordic
zephyr/ @nordicjm @de-nordic
14 changes: 7 additions & 7 deletions boot/boot_serial/src/boot_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ bs_list(char *buf, int len)
int swap_status = boot_swap_type_multi(image_index);
#endif

for (slot = 0; slot < MCUBOOT_IMAGE_NUMBER; slot++) {
for (slot = 0; slot < BOOT_NUM_SLOTS; slot++) {
FIH_DECLARE(fih_rc, FIH_FAILURE);
uint8_t tmpbuf[64];

Expand Down Expand Up @@ -621,13 +621,13 @@ bs_slot_info(uint8_t op, char *buf, int len)
zcbor_list_start_encode(cbor_state, MCUBOOT_IMAGE_NUMBER);

IMAGES_ITER(image_index) {
for (slot = 0; slot < MCUBOOT_IMAGE_NUMBER; slot++) {
for (slot = 0; slot < BOOT_NUM_SLOTS; slot++) {
if (slot == 0) {
ok = zcbor_map_start_encode(cbor_state, CBOR_ENTRIES_SLOT_INFO_IMAGE_MAP) &&
zcbor_tstr_put_lit(cbor_state, "image") &&
zcbor_uint32_put(cbor_state, (uint32_t)image_index) &&
zcbor_tstr_put_lit(cbor_state, "slots") &&
zcbor_list_start_encode(cbor_state, MCUBOOT_IMAGE_NUMBER);
zcbor_list_start_encode(cbor_state, BOOT_NUM_SLOTS);

if (!ok) {
goto finish;
Expand Down Expand Up @@ -691,8 +691,8 @@ bs_slot_info(uint8_t op, char *buf, int len)
goto finish;
}

if (slot == (MCUBOOT_IMAGE_NUMBER - 1)) {
ok = zcbor_list_end_encode(cbor_state, MCUBOOT_IMAGE_NUMBER);
if (slot == (BOOT_NUM_SLOTS - 1)) {
ok = zcbor_list_end_encode(cbor_state, BOOT_NUM_SLOTS);

if (!ok) {
goto finish;
Expand Down Expand Up @@ -791,7 +791,7 @@ bs_upload(char *buf, int len)
const uint8_t *img_chunk = NULL; /* Pointer to buffer with received image chunk */
size_t img_chunk_len = 0; /* Length of received image chunk */
size_t img_chunk_off = SIZE_MAX; /* Offset of image chunk within image */
uint8_t rem_bytes; /* Reminder bytes after aligning chunk write to
size_t rem_bytes; /* Reminder bytes after aligning chunk write to
* to flash alignment */
uint32_t img_num_tmp = UINT_MAX; /* Temp variable for image number */
static uint32_t img_num = 0;
Expand Down Expand Up @@ -958,7 +958,7 @@ bs_upload(char *buf, int len)
if (flash_area_align(fap) > 1 &&
(((size_t)img_chunk) & (flash_area_align(fap) - 1)) != 0) {
/* Buffer address incompatible with write address, use buffer to write */
uint8_t write_size = MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE;
size_t write_size = MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE;
uint8_t wbs_aligned[MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE];

while (img_chunk_len >= flash_area_align(fap)) {
Expand Down
6 changes: 6 additions & 0 deletions boot/bootutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ target_sources(bootutil
src/swap_scratch.c
src/tlv.c
)
if(CONFIG_BOOT_RAM_LOAD)
target_sources(bootutil
PRIVATE
src/ram_load.c
)
endif()
3 changes: 2 additions & 1 deletion boot/bootutil/include/bootutil/boot_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ enum mcuboot_mode {
MCUBOOT_MODE_DIRECT_XIP,
MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT,
MCUBOOT_MODE_RAM_LOAD,
MCUBOOT_MODE_FIRMWARE_LOADER
MCUBOOT_MODE_FIRMWARE_LOADER,
MCUBOOT_MODE_SINGLE_SLOT_RAM_LOAD,
};

enum mcuboot_signature_type {
Expand Down
45 changes: 42 additions & 3 deletions boot/bootutil/include/bootutil/crypto/sha.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@

#elif defined(MCUBOOT_USE_MBED_TLS)

#ifdef MCUBOOT_SHA512
#include <mbedtls/sha512.h>
#else
#include <mbedtls/sha256.h>
#endif

#include <mbedtls/version.h>
#if MBEDTLS_VERSION_NUMBER >= 0x03000000
#include <mbedtls/compat-2.x.h>
Expand Down Expand Up @@ -124,31 +129,65 @@ static inline int bootutil_sha_finish(bootutil_sha_context *ctx,

#elif defined(MCUBOOT_USE_MBED_TLS)

#ifdef MCUBOOT_SHA512
typedef mbedtls_sha512_context bootutil_sha_context;
#else
typedef mbedtls_sha256_context bootutil_sha_context;
#endif

static inline int bootutil_sha_init(bootutil_sha_context *ctx)
{
int ret;

#ifdef MCUBOOT_SHA512
mbedtls_sha512_init(ctx);
ret = mbedtls_sha512_starts_ret(ctx, 0);
#else
mbedtls_sha256_init(ctx);
return mbedtls_sha256_starts_ret(ctx, 0);
ret = mbedtls_sha256_starts_ret(ctx, 0);
#endif

return ret;
}

static inline int bootutil_sha_drop(bootutil_sha_context *ctx)
{
#ifdef MCUBOOT_SHA512
mbedtls_sha512_free(ctx);
#else
mbedtls_sha256_free(ctx);
#endif

return 0;
}

static inline int bootutil_sha_update(bootutil_sha_context *ctx,
const void *data,
uint32_t data_len)
{
return mbedtls_sha256_update_ret(ctx, data, data_len);
int ret;

#ifdef MCUBOOT_SHA512
ret = mbedtls_sha512_update_ret(ctx, data, data_len);
#else
ret = mbedtls_sha256_update_ret(ctx, data, data_len);
#endif

return ret;
}

static inline int bootutil_sha_finish(bootutil_sha_context *ctx,
uint8_t *output)
{
return mbedtls_sha256_finish_ret(ctx, output);
int ret;

#ifdef MCUBOOT_SHA512
ret = mbedtls_sha512_finish_ret(ctx, output);
#else
ret = mbedtls_sha256_finish_ret(ctx, output);
#endif

return ret;
}

#endif /* MCUBOOT_USE_MBED_TLS */
Expand Down
3 changes: 3 additions & 0 deletions boot/bootutil/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
- "loader.c"
- "swap_scratch.c"

pkg.ign_files:
- "ram_load.c"

pkg.deps.BOOTUTIL_USE_MBED_TLS:
- "@apache-mynewt-core/crypto/mbedtls"

Expand Down
21 changes: 21 additions & 0 deletions boot/bootutil/src/boot_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
#include "bootutil/image.h"
#include "flash_map_backend/flash_map_backend.h"

#if defined(MCUBOOT_DATA_SHARING_BOOTINFO)
static bool saved_bootinfo = false;
#endif

#if !defined(MCUBOOT_CUSTOM_DATA_SHARING_FUNCTION)
/**
* @var shared_memory_init_done
Expand Down Expand Up @@ -233,7 +237,9 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
const uint8_t slot, const struct image_max_size *max_app_sizes)
{
int rc;
#if !defined(MCUBOOT_SINGLE_APPLICATION_SLOT)
uint8_t image = 0;
#endif

#if defined(MCUBOOT_SINGLE_APPLICATION_SLOT)
uint8_t mode = MCUBOOT_MODE_SINGLE_SLOT;
Expand All @@ -253,6 +259,8 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
uint8_t mode = MCUBOOT_MODE_RAM_LOAD;
#elif defined(MCUBOOT_FIRMWARE_LOADER)
uint8_t mode = MCUBOOT_MODE_FIRMWARE_LOADER;
#elif defined(MCUBOOT_SINGLE_APPLICATION_SLOT_RAM_LOAD)
uint8_t mode = MCUBOOT_MODE_SINGLE_SLOT_RAM_LOAD;
#else
#error "Unknown mcuboot operating mode"
#endif
Expand Down Expand Up @@ -294,6 +302,11 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
};
#endif

if (saved_bootinfo) {
/* Boot info has already been saved, nothing to do */
return 0;
}

/* Write out all fields */
rc = boot_add_data_to_shared_area(TLV_MAJOR_BLINFO, BLINFO_MODE,
sizeof(mode), &mode);
Expand All @@ -311,11 +324,13 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
sizeof(recovery), &recovery);
}

#if !defined(MCUBOOT_SINGLE_APPLICATION_SLOT)
if (!rc) {
rc = boot_add_data_to_shared_area(TLV_MAJOR_BLINFO,
BLINFO_RUNNING_SLOT,
sizeof(slot), (void *)&slot);
}
#endif

#if defined(MCUBOOT_VERSION_AVAILABLE)
if (!rc) {
Expand All @@ -326,6 +341,7 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
}
#endif

#if !defined(MCUBOOT_SINGLE_APPLICATION_SLOT)
while (image < BOOT_IMAGE_NUMBER && !rc) {
if (max_app_sizes[image].calculated == true) {
rc = boot_add_data_to_shared_area(TLV_MAJOR_BLINFO,
Expand All @@ -337,6 +353,11 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are

++image;
}
#endif

if (!rc) {
saved_bootinfo = true;
}

return rc;
}
Expand Down
Loading