Commit Graph

2541 Commits (4d31ef5502ca2ade0635307b23af9ceb99b1861e)

Author SHA1 Message Date
Brett Nicholas 4d31ef5502 Add self-header feature with support for sim and AURIX TC3xx 2026-02-27 11:39:51 +01:00
David Garske 9397988f01 Support for custom flash option byte on NXP S32K14xx 2026-02-27 11:36:53 +01:00
David Garske 38e2a1f89a
Merge pull request #695 from rizlik/fix-pci
Pci: fixes and unit testings
2026-02-25 14:56:03 -08:00
David Garske bd02eea7eb
Merge pull request #694 from danielinux/add-extra-verify-enc-fallback
Added extra verify step in encrypted fallback
2026-02-25 09:45:48 -08:00
Marco Oliverio b9ecbca141 pci: minor formatting 2026-02-25 18:30:26 +01:00
Daniele Lacamera 6d9ff5ca6f Adjusted bound check in unit test 2026-02-25 17:54:42 +01:00
Marco Oliverio 729f6a6e9e
Update tools/unit-tests/unit-pci.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-25 17:23:54 +01:00
Daniele Lacamera bdaa5ad38a Addressed copilot's comments 2026-02-25 17:03:13 +01:00
Marco Oliverio 083d795196
Update src/pci.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-25 13:48:44 +01:00
Marco Oliverio 45edf98dc7 unit: pci: add comprehensive pci unit test 2026-02-25 13:20:09 +01:00
Marco Oliverio e93aad1823 pci: fix: use correct offset for I/O bridge window 2026-02-25 13:20:09 +01:00
Marco Oliverio 04288e9bf5 pci: add comments to clarify bridge alignment constraints 2026-02-25 13:20:09 +01:00
Marco Oliverio 0cfa11f684 pci: fix: use off instead of addr in bar restore path 2026-02-25 13:20:09 +01:00
Marco Oliverio b25683c138 pci: wolfBoot_printf -> PCI_DEBUG_PRINTF 2026-02-25 13:20:09 +01:00
Marco Oliverio e274532331 pci: fix: use int instead of uint32 as return error for pci_enum 2026-02-25 13:20:09 +01:00
Marco Oliverio 345ed94dd1 pci: fix: restore enum state on program bridge error 2026-02-25 13:20:09 +01:00
Marco Oliverio 4739af9e69 pci: fix: write both masks at once in 64bit BAR sizing 2026-02-25 13:20:09 +01:00
Marco Oliverio ea819534ce pci: fix: remove unused functions 2026-02-25 13:20:09 +01:00
Marco Oliverio 7147c9ffa9 pci: fix: config_io_read16/write16: use off instead of addr 2026-02-25 13:20:09 +01:00
Marco Oliverio eb5f65cea5 pci: fix: operator precedence 2026-02-25 13:20:09 +01:00
David Garske 5a6b8c6f9b
Merge pull request #693 from danielinux/fix-delta-boundary-checks
[delta] Add bounds checks for delta image
2026-02-24 13:33:43 -08:00
Daniele Lacamera c9d94d6a78 Using 'len' iso magic number 70000 in test 2026-02-24 16:30:14 +01:00
Daniele Lacamera 4e119ce11c Addressed copilot's comment 2026-02-24 16:21:23 +01:00
Daniele Lacamera a4dc9c358f Use partition size as bound if header sector is erased 2026-02-24 16:17:45 +01:00
Daniele Lacamera b180574097 Addressed copilot's comments 2026-02-24 14:19:22 +01:00
Daniele Lacamera 43f2273a7f Added extra verify step in encrypted fallback
Using the original IV
2026-02-24 11:34:48 +01:00
Andrew Hutchings f13dbc00d0
Merge pull request #692 from danielinux/fix-tpm-forcezero
Fix size in forceZero
2026-02-24 10:05:14 +00:00
Daniele Lacamera 96228bdd25 Added boundary checks for delta image 2026-02-24 10:51:11 +01:00
Daniele Lacamera ade582f7d9 Fix size in forceZero 2026-02-24 08:55:45 +01:00
David Garske 9eca74dd96
Merge pull request #691 from danielinux/fix_strings_c
Fix strncasecmp bounds and alpha-only case folding
2026-02-23 13:18:58 -08:00
Daniele Lacamera 2244688d70 Renamed function as suggested by copilot 2026-02-23 21:03:52 +01:00
Daniele Lacamera 6a5762d241 Addressed copilot review comments
- Converted 'strncat' to the standard POSIX behavior. Fixed fdt-parser
  to use the right len argument.
2026-02-23 21:03:52 +01:00
Daniele Lacamera 25ae592093 Fix strncasecmp bounds and alpha-only case folding
+ Added unit tests for string.c
2026-02-23 21:03:35 +01:00
David Garske 0a738ac4d1
Merge pull request #690 from danielinux/fix_spi_flash_boundary_checks
Fix spi_flash_write_page to stop at len or page boundary
2026-02-23 11:48:51 -08:00
Daniele Lacamera d9fe0f42df Fix spi_flash_write_page to stop at len or page boundary
+ Added unit tests for spi_flash.c
2026-02-23 17:56:27 +01:00
David Garske 3be63df3f3
Merge pull request #688 from MulattoKid/imx_non_quad_read_in_lut
Support single reads in i.MX RT FCB LUT
2026-02-18 10:57:17 -08:00
Daniel Fedai Larsen 57dfba3cab Support single reads in i.MX RT FCB LUT
Before this commit the LUT in the FCB for all i.MX RT targets had a
quad-read (0xEB) command as the read command in the LUT in the FCB.
However, this assumes the flash chip support QSPI, which it may not,
either at all or by default. To support such flash chips this commit
adds the option to use a single-read (0x03) command instead in the LUT.
QSPI can then be enabled later on (by e.g. the BootROM or the
application wolfBoot boots).

The single-read command sequence is taken from the NXP SDK.
2026-02-18 07:44:54 +01:00
Alex Lanzano b7cd9d7fe7
Merge pull request #687 from rizlik/pic32_remove_unused_macros
microchip: pic32cx: remove unused macros
2026-02-17 09:16:27 -05:00
Marco Oliverio f3c2775f21 microchip: pic32cx: remove unused macros 2026-02-17 09:39:24 +01:00
David Garske 466a8df226
Merge pull request #686 from bigbrett/tc3-asm-support
tc3: enable cortex-m asm
2026-02-16 17:06:58 -08:00
Brett Nicholas 823d093345 enable tc3 HSM use of sp cortex-m asm 2026-02-16 14:54:48 -07:00
Daniel Pouzzner 7b871c6241
Merge pull request #684 from danielinux/minor_build_fixes
Minor build fixes
2026-02-11 13:12:30 -06:00
Daniele Lacamera c352808ba1 Minor build fixes
- exclude attestation symbols for non-PSA builds
- fix dependency of signed test-application on keytools
2026-02-11 19:31:26 +01:00
David Garske 25bee84ff2
Merge pull request #682 from danielinux/update-benchmark-h5
Updated benchmark scripts to run on rpi + stm32h563
2026-02-11 07:28:34 -08:00
Daniele Lacamera cd2b02e10b Fixed wrong naming for HYBRID defines
+ longer DICE test timeout
2026-02-11 13:38:31 +01:00
Daniele Lacamera bbd8afc798 Fixed DICE test failures 2026-02-11 13:06:43 +01:00
Daniele Lacamera ca51036447 Fixed linker script for emu-app, addressed more comments 2026-02-11 12:35:54 +01:00
Daniele Lacamera c4d49cdc73 Fix emu-test-apps linker scripts 2026-02-11 11:55:35 +01:00
Daniele Lacamera 47ad6c21ef Updated benchmark to run on rpi + stm32h563 2026-02-09 18:48:47 +01:00
David Garske 5b43fcc49a
Merge pull request #668 from danielinux/dice
Add support for DICE attestation + PSA attestation
2026-02-06 14:11:02 -08:00