Skip to content

Upmerge 2024.12.20 #393

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

Merged
merged 226 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 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
a77e9f6
Revert "[nrf noup] boot: bootutil: loader: Fix triple erasing s0/s1 u…
anangl Jan 29, 2025
e12b195
Revert "[nrf noup] boot: bootutil: loader: Fix assignment typo"
anangl Jan 29, 2025
4b683d4
Revert "[nrf noup] boot: Remove child/parent references"
anangl Jan 29, 2025
8a9e392
Revert "[nrf fromtree] boot/zephyr/boards: configure fastest RRAM ope…
anangl Jan 29, 2025
c47377e
Revert "[nrf noup] boot/zephyr/boards: configure fastest RRAM operati…
anangl Jan 29, 2025
41e6cfc
Revert "[nrf noup] boot: zephyr: serial_recovery: Add nRF5340 Kconfig…
anangl Jan 29, 2025
8b0afef
Revert "[nrf noup] boot: bootutil: image_validate: Add KMU support to…
anangl Jan 29, 2025
4a885d4
Revert "[nrf noup] boot: bootutil: Allow configuring number of KMU keys"
anangl Jan 29, 2025
6ab18fd
Revert "[nrf fromtree] boot: zephyr: boards: nrf54l10 and nrf54l05 co…
anangl Jan 29, 2025
3bc9ca2
Revert "[nrf noup] boot: zephyr: Add experimental selection to compre…
anangl Jan 29, 2025
e0ca99a
Revert "[nrf noup] bootutil: Add support for KMU stored ED25519 signa…
anangl Jan 29, 2025
e603ce0
Revert "[nrf noup] boot/zephyr/Kconfig: conditionally disable BOOT_MA…
anangl Jan 29, 2025
42ba2a5
Revert "[nrf noup] bootutil: PureEdDSA using ED25519"
anangl Jan 29, 2025
f1ef3cb
Revert "[nrf noup] bootutil: Enable hash calculation directly on stor…
anangl Jan 29, 2025
ed41469
Revert "[nrf noup] bootutil: Provide support for SHA512 with ED25519"
anangl Jan 29, 2025
5a8d7a2
Revert "[nrf noup] PSA configuration required changes"
anangl Jan 29, 2025
1f20f28
Revert "[nrf fromtree] zephyr: Add CONFIG_MCUBOOT_CLEANUP_RAM"
anangl Jan 29, 2025
5555a24
Revert "[nrf noup] Fix logging for ED25519_psa"
anangl Jan 29, 2025
77dd719
Revert "[nrf fromlist] boot_serial: Support sha256, sha384 and sha512"
anangl Jan 29, 2025
f104e9b
Revert "[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs"
anangl Jan 29, 2025
99e36bf
Revert "[nrf noup] workflows: Add a backport workflow"
anangl Jan 29, 2025
7f65da1
Revert "[nrf noup] boards: Thingy:91 X release config"
anangl Jan 29, 2025
ebdd664
Revert "[nrf noup] boot: bootutil: loader: Add s0/s1 checking of MCUb…
anangl Jan 29, 2025
4fe78aa
Revert "[nrf noup] treewide: Add support for sysbuild assigned images"
anangl Jan 29, 2025
e4b6326
Revert "[nrf noup] boot: zephyr: Do not lock PCD region with TF-M"
anangl Jan 29, 2025
885a2e6
Revert "[nrf noup] Remove setting default MCUboot mbedTLS config"
anangl Jan 29, 2025
925ab74
Revert "[nrf noup] zephyr: Add support for ARM thumb filter"
anangl Jan 29, 2025
331c510
Revert "[nrf noup] PSA implementation of x25519 and ed25519 verificat…
anangl Jan 29, 2025
6b0723b
Revert "[nrf noup] boot: Add shared crypto for ECDSA and SHA"
anangl Jan 29, 2025
6aae4eb
Revert "[nrf noup] zephyr: Add support for compressed image updates"
anangl Jan 29, 2025
878691e
Revert "[nrf noup] boards: nrf54l15dk: Disable FPROTECT"
anangl Jan 29, 2025
2d97211
Revert "[nrf noup] bootutil: loader: Fix netcore address checking"
anangl Jan 29, 2025
40f28e3
Revert "[nrf noup] boot/../loader: reboot after updating s0/s1"
anangl Jan 29, 2025
cf2647c
Revert "[nrf noup] boot/../loader: skip downgrade prevention for s1/s0"
anangl Jan 29, 2025
bb9fcf2
Revert "[nrf noup] boot: zephyr: Add NCS boot banner"
anangl Jan 29, 2025
4e648e2
Revert "[nrf noup] zephyr/boards: fix nrf54l15pdk ext flash dts overlay"
anangl Jan 29, 2025
1e4bb02
Revert "[nrf noup] Revert of zephyr: arm: Update reading the flash im…
anangl Jan 29, 2025
d99b5fe
Revert "[nrf noup] boot/zephyr: fix fw_info search"
anangl Jan 29, 2025
4b1aadc
Revert "[nrf noup] boot: zephyr: Disable boot banner if NCS_BOOT_BANN…
anangl Jan 29, 2025
663c1c7
Revert "[nrf noup] boards: thingy91x: enable serial recovery"
anangl Jan 29, 2025
e61f3fa
Revert "[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash update"
anangl Jan 29, 2025
944b60d
Revert "[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash partition"
anangl Jan 29, 2025
0d6fedb
Revert "[nrf noup] loader: remove cleanup for direct xip mode"
anangl Jan 29, 2025
0d80c0f
Revert "[nrf noup] boards: nrf54l15: Disable FPROTECT"
anangl Jan 29, 2025
8fcce98
Revert "[nrf noup] loader: introduced cleanup of unusable secondary s…
anangl Jan 29, 2025
685cd06
Revert "[nrf noup] sysflash: Add support for three images"
anangl Jan 29, 2025
07b5e65
Revert "[nrf noup] sysflash: Move partition manager definitions to pm…
anangl Jan 29, 2025
9b135b0
Revert "[nrf noup] boot: Add support for NSIB and multi-image"
anangl Jan 29, 2025
7bf4245
Revert "[nrf noup] loader: Fix missing PCD define check"
anangl Jan 29, 2025
c99f1dc
Revert "[nrf noup] loader: work-around for multi-image builds"
anangl Jan 29, 2025
2ee7e90
Revert "[nrf noup] boot/zephyr/boards: nRF54l15pdk ext flash cfg"
anangl Jan 29, 2025
5fe2f59
Revert "[nrf noup] boards: thingy53: disable GPIO ISR support"
anangl Jan 29, 2025
6abe501
Revert "[nrf noup] loader: Add firmware version check downgrade preve…
anangl Jan 29, 2025
aced3e3
Revert "[nrf noup] zephyr: Boot even if EXT_ABI is not provided"
anangl Jan 29, 2025
27eb775
Revert "[nrf noup] zephyr: Add RAM flash configuration to cache for s…
anangl Jan 29, 2025
bfd3034
Revert "[nrf noup] loader: Do not check reset vector for XIP image"
anangl Jan 29, 2025
1746c57
Revert "[nrf noup] zephyr: Fix path variables"
anangl Jan 29, 2025
d47f6bc
Revert "[nrf noup] loader: Fix reading reset addr to support ext flash"
anangl Jan 29, 2025
83b9d54
Revert "[nrf noup] zephyr: Clean up non-secure RAM if enabled"
anangl Jan 29, 2025
287bc5f
Revert "[nrf noup] zephyr: clean peripherals state before boot"
anangl Jan 29, 2025
33b8200
Revert "[nrf noup] boot: nrf53-specific customizations"
anangl Jan 29, 2025
86e391d
Revert "[nrf noup] treewide: add NCS partition manager support"
anangl Jan 29, 2025
61be87f
Revert "[nrf noup] boards: thingy91x: add board config"
anangl Jan 29, 2025
51df21e
Revert "[nrf noup] zephyr: Restore default RTC user channel count"
anangl Jan 29, 2025
a4b1583
Revert "[nrf noup] boards: add support for Thingy:91"
anangl Jan 29, 2025
b7f903e
Revert "[nrf noup] zephyr: add 'minimal' configuration files"
anangl Jan 29, 2025
3025955
Revert "[nrf noup] zephyr: Remove duplication from cmake"
anangl Jan 29, 2025
122dd3d
Revert "[nrf noup] github: Add a commit tags check workflow"
anangl Jan 29, 2025
2317bc7
Revert "[nrf fromtree] bootutil: Add SIG_PURE TLV"
anangl Jan 29, 2025
4c986a6
Revert "[nrf noup] imgtool: create image obj with image_hash"
anangl Jan 29, 2025
f7b2f38
Revert "[nrf fromlist] imgtool: Add pure signature support"
anangl Jan 29, 2025
4a6a065
Revert "[nrf fromlist] scipts: imgtool: bugfix #2096"
anangl Jan 29, 2025
0979687
Revert "[nrf fromlist] zephyr: Fixing Kconfig dependency for SHA512"
anangl Jan 29, 2025
133bf39
Revert "[nrf fromlist] scripts: imgtool: compression ARM thumb filter"
anangl Jan 29, 2025
3ad918f
Revert "[nrf fromlist] boot: bootutil: swap_scratch: Fix compressed i…
anangl Jan 29, 2025
de45d45
Revert "[nrf fromtree] scripts: imgtool: compression"
anangl Jan 29, 2025
e795ecf
Revert "[nrf fromtree] boot: bootutil: loader: Fix issue with using p…
anangl Jan 29, 2025
4472738
Revert "[nrf fromtree] boot: bootutil: loader: Fix slot info for dire…
anangl Jan 29, 2025
906a40c
Revert "[nrf fromlist] scripts: imgtool: compression"
anangl Jan 29, 2025
d07b6fa
Revert "[nrf fromlist] boot: Replace boot_encrypt by boot_enc_encrypt…
anangl Jan 29, 2025
e739cdd
Revert "[nrf fromlist] imgtool: Add support for calculating SHA512"
anangl Jan 29, 2025
a4793c7
Revert "[nrf fromtree] boot: SHA512 verification"
anangl Jan 29, 2025
4549ac1
[nrf mergeup] Merge upstream up to commit a2bc982b3379d51fefda3e17a6a…
anangl Jan 29, 2025
1deca30
[nrf fromtree] imgtool: Add pure signature support
de-nordic Sep 12, 2024
4e42490
[nrf noup] github: Add a commit tags check workflow
carlescufi Oct 10, 2023
068908d
[nrf noup] zephyr: Remove duplication from cmake
sigvartmh Mar 26, 2019
f973fc6
[nrf noup] zephyr: add 'minimal' configuration files
mbolivar-nordic Sep 3, 2021
3f63c19
[nrf noup] boards: add support for Thingy:91
bjda Sep 20, 2019
782c4a1
[nrf noup] zephyr: Restore default RTC user channel count
Damian-Nordic Mar 21, 2022
7a4b0a8
[nrf noup] boards: thingy91x: add board config
maxd-nordic Dec 8, 2023
7d603f8
[nrf noup] treewide: add NCS partition manager support
SebastianBoe Dec 12, 2018
9b3b8d2
[nrf noup] boot: nrf53-specific customizations
sigvartmh Aug 27, 2020
62d5f7b
[nrf noup] zephyr: clean peripherals state before boot
nvlsianpu Feb 27, 2020
a5c6d2e
[nrf noup] zephyr: Clean up non-secure RAM if enabled
sigvartmh Jan 6, 2023
85b9dae
[nrf noup] loader: Fix reading reset addr to support ext flash
chrta Feb 10, 2022
4943e2f
[nrf noup] zephyr: Fix path variables
nordicjm Jul 11, 2023
4ff3af1
[nrf noup] loader: Do not check reset vector for XIP image
de-nordic Sep 22, 2023
9b2bbcc
[nrf noup] zephyr: Add RAM flash configuration to cache for sysbuild
nordicjm Sep 18, 2023
72947ce
[nrf noup] zephyr: Boot even if EXT_ABI is not provided
sigvartmh Oct 17, 2023
45f9b8e
[nrf noup] loader: Add firmware version check downgrade prevention
sigvartmh Sep 27, 2023
6c636e4
[nrf noup] boards: thingy53: disable GPIO ISR support
nika-nordic Oct 9, 2023
cc3462a
[nrf noup] boot/zephyr/boards: nRF54l15pdk ext flash cfg
nvlsianpu Apr 11, 2024
366116a
[nrf noup] loader: work-around for multi-image builds
sigvartmh Mar 30, 2021
444a78d
[nrf noup] loader: Fix missing PCD define check
nordicjm Aug 31, 2023
f90af57
[nrf noup] boot: Add support for NSIB and multi-image
sigvartmh May 31, 2023
277c5c4
[nrf noup] sysflash: Move partition manager definitions to pm_sysflash.h
de-nordic Aug 10, 2023
0952fb3
[nrf noup] sysflash: Add support for three images
de-nordic Aug 11, 2023
36ac026
[nrf noup] loader: introduced cleanup of unusable secondary slot
nvlsianpu Feb 15, 2024
43623ff
[nrf noup] boards: nrf54l15: Disable FPROTECT
gchwier Apr 16, 2024
2cb3c76
[nrf noup] loader: remove cleanup for direct xip mode
gchwier May 17, 2024
8929c5f
[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash partition
nvlsianpu Apr 15, 2024
6b35b59
[nrf noup] boot/zephyr/boards: nrf54l15pdk ext-flash update
nvlsianpu May 20, 2024
d872989
[nrf noup] boards: thingy91x: enable serial recovery
maxd-nordic Mar 12, 2024
fb3cc4c
[nrf noup] boot: zephyr: Disable boot banner if NCS_BOOT_BANNER is used
rlubos May 17, 2024
b1851b6
[nrf noup] boot/zephyr: fix fw_info search
nvlsianpu May 27, 2024
e48c56f
[nrf noup] Revert of zephyr: arm: Update reading the flash image rese…
de-nordic May 28, 2024
b062f94
[nrf noup] zephyr/boards: fix nrf54l15pdk ext flash dts overlay
nvlsianpu Jun 5, 2024
053d2f2
[nrf noup] boot: zephyr: Add NCS boot banner
nordicjm Jun 11, 2024
21024f6
[nrf noup] boot/../loader: skip downgrade prevention for s1/s0
nvlsianpu Jun 13, 2024
0e1a288
[nrf noup] boot/../loader: reboot after updating s0/s1
nvlsianpu Jun 18, 2024
b5a4c74
[nrf noup] bootutil: loader: Fix netcore address checking
nordicjm Aug 29, 2024
3952b4d
[nrf noup] boards: nrf54l15dk: Disable FPROTECT
nvlsianpu Sep 18, 2024
655eeac
[nrf noup] zephyr: Add support for compressed image updates
nordicjm Aug 22, 2024
7ff8c8f
[nrf noup] boot: Add shared crypto for ECDSA and SHA
sigvartmh Feb 14, 2019
1107145
[nrf noup] PSA implementation of x25519 and ed25519 verification
de-nordic May 29, 2024
cbb7da0
[nrf noup] zephyr: Add support for ARM thumb filter
nordicjm Sep 2, 2024
62929e4
[nrf noup] Remove setting default MCUboot mbedTLS config
de-nordic Oct 17, 2024
09035f0
[nrf noup] boot: zephyr: Do not lock PCD region with TF-M
MarkusLassila Aug 30, 2024
8041ad6
[nrf noup] treewide: Add support for sysbuild assigned images
nordicjm Sep 10, 2024
b481eb0
[nrf noup] boot: bootutil: loader: Add s0/s1 checking of MCUboot image
nordicjm Oct 15, 2024
dd40ff3
[nrf noup] boards: Thingy:91 X release config
maxd-nordic Oct 23, 2024
dc0e95d
[nrf noup] workflows: Add a backport workflow
carlescufi Oct 25, 2024
ba98808
[nrf noup] boot/zephyr: add nrf54l15dk ext flash configs
michalek-no Nov 7, 2024
f3c2fbc
[nrf noup] Fix logging for ED25519_psa
maciejbaczmanski Nov 28, 2024
9644dc2
[nrf noup] PSA configuration required changes
de-nordic Jul 24, 2024
4e2273f
[nrf noup] bootutil: Provide support for SHA512 with ED25519
de-nordic Aug 2, 2024
32a7c77
[nrf noup] bootutil: Enable hash calculation directly on storage
de-nordic Sep 5, 2024
a43e5f4
[nrf noup] bootutil: PureEdDSA using ED25519
de-nordic Sep 6, 2024
d6a16f8
[nrf noup] boot/zephyr/Kconfig: conditionally disable BOOT_MAX_IMG_SE…
nvlsianpu Sep 19, 2024
b647a94
[nrf noup] bootutil: Add support for KMU stored ED25519 signature key
de-nordic Sep 20, 2024
4ceb477
[nrf noup] boot: zephyr: Add experimental selection to compression
nordicjm Nov 7, 2024
2ca0efe
[nrf noup] boot: bootutil: Allow configuring number of KMU keys
nordicjm Dec 2, 2024
97e8acf
[nrf noup] boot: bootutil: image_validate: Add KMU support to compres…
nordicjm Dec 10, 2024
2341b29
[nrf noup] boot: zephyr: serial_recovery: Add nRF5340 Kconfig override
nordicjm Dec 9, 2024
1068cb1
[nrf noup] boot/zephyr/boards: configure fastest RRAM operations
nvlsianpu Dec 17, 2024
81be16e
[nrf noup] boot: Remove child/parent references
nordicjm Dec 5, 2024
2a8f5b4
[nrf noup] sysflash: Add missing _FLASH_0_ID definitions
de-nordic Jan 15, 2025
3897a7b
[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