Commit Graph

1836 Commits (master)

Author SHA1 Message Date
Hideki Miyazaki 03675979a4 addressed review comments 2024-09-20 20:20:55 +02:00
Hideki Miyazaki 44d3201cc9 fix ccrx use case for rx72n 2024-09-20 20:20:55 +02:00
David Garske 7609abfce2
Merge pull request #504 from philljj/no_asn_build
user_settings: default to NO_ASN if NO_RSA defined.
2024-09-13 14:43:47 -07:00
jordan f975dbed44 renode tests: update github actions. 2024-09-13 16:30:12 -05:00
jordan 42f92ebedb user_settings: default to NO_ASN if NO_RSA defined. 2024-09-13 15:58:24 -05:00
David Garske 080dae0125 Fixes to properly support TPM policy with more than one PCR. 2024-09-10 20:53:10 +02:00
David Garske 21464f7834
Merge pull request #481 from danielinux/pkcs11-store-fixes
Refactoring of pkcs11_store.c module
2024-09-06 08:06:30 -07:00
Daniele Lacamera 865e3ee6c3 Fixed wrong check due to fail_if refactoring 2024-09-06 16:55:57 +02:00
Daniele Lacamera 29729988a8 Removed deprecate libcheck API 2024-09-06 13:51:14 +02:00
Daniele Lacamera a1a7601314 Unit tests: cleanup warnings 2024-09-06 11:36:16 +02:00
Daniele Lacamera 6737d7e7ad Refactoring of PKCS11 store module + unit tests 2024-09-05 18:53:03 +02:00
Brett Nicholas 002dc8d415 doc update: add AURIX TC3xx to Targets.md
Adds a blurb about AURIX TC3xx support to Targets.md
2024-09-02 20:30:24 +02:00
Hideki Miyazaki 9f551a27b5 addressed review comments 2024-09-02 14:02:36 +02:00
Hideki Miyazaki bf88d15ea6 add raspi3b uart 2024-09-02 14:02:36 +02:00
David Garske 68285050b5
Merge pull request #497 from bigbrett/imxrt-followup-fixes
Fix ROM API hang for imx rt1064
2024-08-26 09:08:16 -07:00
Brett Nicholas 340d9df74b imxrt: add FLEXSPI instance to ROM API calls, fixing 1064 update hang 2024-08-26 09:19:41 -06:00
Brett Nicholas 12d2f27113
Merge pull request #495 from MulattoKid/imxrt_flash_interaction_fix
Fix flash interactions for i.MX RT targets
2024-08-26 08:59:03 -06:00
Daniel Fedai Larsen 8cf988fa26 Fix return code for hal_flash_write 2024-08-26 06:01:50 +00:00
Daniel Fedai Larsen c281c9a3d2 Add docs about ensuring needed functions are in RAM 2024-08-23 06:41:21 +00:00
Daniel Fedai Larsen 5761f94916 Add DSB barrier in hal_flash_init/write/erase 2024-08-23 06:15:11 +00:00
Daniel Fedai Larsen da4f0a6ee6 Add RAMFUNCTION to hal_flash_init 2024-08-23 06:05:15 +00:00
Daniel Fedai Larsen ef4c3bbd35 Move DCACHE_InvalidateByRange to outside the loop in hal_flash_write 2024-08-23 05:59:49 +00:00
Daniel Fedai Larsen 9cf1e3a962 Add USE_GET_CONFIG to all i.MX RT targets except 1052 2024-08-22 10:41:37 +02:00
Daniel Fedai Larsen 7ddbf8386d Set RAM_CODE=1 for all i.MX RT target example configs 2024-08-22 10:40:49 +02:00
David Garske 49ec647ee4
Merge pull request #491 from bigbrett/aurix-tc3xx-bmhd-removal
tc3xx: remove bmhd input sections from linker script
2024-08-21 08:28:27 -07:00
David Garske 48c7c356d5
Merge pull request #490 from danielinux/universal_keystore_padding
Keygen to allow multiple keystore types
2024-08-20 17:13:57 -07:00
Brett Nicholas 79cd6e74f0 tc3xx: remove bmhd input sections from linker script 2024-08-20 11:41:31 -06:00
Daniele Lacamera 837b8bf315 Keygen to allow multiple keystore types
when WOLFBOOT_UNIVERSAL_KEYSTORE=1, the keystore.der file should align
all the keys to the maximum slot size (576).
2024-08-20 14:58:50 +02:00
David Garske 13fc3c069c Fix for XMSS `WOLFBOOT_XMSS_PARAMS` for Xilinx Vitis symbol with string. Fix stack size for LMS. 2024-08-14 18:06:12 +02:00
David Garske 9e17315d49 Fixes for building wolfBoot with XMSS/LMS. 2024-08-14 18:06:12 +02:00
David Garske be169145e2 Fixes for Zynqmp QSPI sizes on ZCU102. Fix for XMSS/LMS on Windows mingw with fopen binary mode. 2024-08-14 18:06:12 +02:00
David Garske b5a5b28f19 Fix unit test and new `WOLFBOOT_USE_PCI`. 2024-08-14 18:06:12 +02:00
David Garske 8a7f5e5baa Refactor to eliminate PLATFORM_ -> TARGET_. Fix CI errors. 2024-08-14 18:06:12 +02:00
David Garske cf936dffa2 Fixes for Xilinx zynqmp. 2024-08-14 18:06:12 +02:00
David Garske 3687851f75 Xilinx zynqmp documentation cleanups. Fixes for building with Eclipse wildcard .c include pains. 2024-08-14 18:06:12 +02:00
Daniele Lacamera d2811b2538
Unit test for update_ram.c (#488)
* Initial draft with two test cases

* Added more unit tests. Found OOB access.

* Fix potential OOB access with too-large update img

* NO_FORK disabled by default

* Cover more corner cases

* Added unit tests for update_ram.c

Fixed fallback in partition election
2024-08-13 09:36:33 -07:00
Daniele Lacamera 3ff7059dc5
Unit tests for update_flash.c (#487)
* Initial draft with two test cases

* Added more unit tests. Found OOB access.

* Fix potential OOB access with too-large update img

* NO_FORK disabled by default

* Cover more corner cases
2024-08-13 06:25:49 -07:00
David Garske 44e4ce9874
Merge pull request #486 from danielinux/unit-test-mock-flash-generic
Unit test: make flash mocking generic
2024-08-12 11:12:37 -07:00
Daniele Lacamera 2588aa7611 Unit test: make flash mocking generic
Avoid duplicated test code for mocking the flash
2024-08-12 11:00:13 +02:00
Daniele Lacamera 30a1f67e43
Added 32bit simulator via TARGET=sim FORCE_32BIT=1 (#485)
* Added 32bit simulator via TARGET=sim FORCE_32BIT=1

Tests can now run on 32bit simulator (e.g. to match XMALLOC fixed
sizes with sp_math and WOLFBOOT_SMALL_STACK).

* Added draft for new workflow: test simulator with different memory config

* Fix 64bit, SMALL_STACK xmalloc sizes

* Test defaults to SPMATH

* Fixed test: defaults to spmath. Added RSA tests (failing)

* Fixed RSA allocation sizes for 64bit build

* Added 64bit fastmath test (failing)

* Fixed ecc_point size for 64bit builds (FASTMATH)

* simulator config: use SPMATH by default

* Attempt to fix i386 libc dep in workflow

* Added HUGE_STACK to silence warning in FASTMATH+RSA4096 tests
2024-08-09 06:46:15 -07:00
David Garske 8273575e55
Merge pull request #483 from danielinux/delta-unit-tests
Added unit tests for delta.c
2024-08-07 09:51:17 -07:00
Daniele Lacamera c61d516e81 Added copyright notices to unit test files 2024-08-07 17:18:30 +02:00
Daniele Lacamera 58a2e089a8 Added unit tests for delta.c 2024-08-07 16:45:17 +02:00
David Garske 4d18fe837d
Merge pull request #482 from bigbrett/aurix-hotfixes
Fix AURIX build error
2024-07-31 12:33:43 -07:00
Brett Nicholas 161f06e046 fix variable name typo 2024-07-31 12:32:13 -06:00
Brett Nicholas 214964642b review comments re: style and variable init 2024-07-31 09:22:31 +02:00
Brett Nicholas 2d6308ec2c - Infineon TC3xx support
- fix (existing) unused variable compiler warnings
- documentation updates
- add multi-sector erase option
2024-07-31 09:22:31 +02:00
David Garske 98e8a987c2
Merge pull request #480 from MulattoKid/imx_rt_hab_fix
Add HAB support irrespective of MCUSDK setting for imx_rt target
2024-07-30 09:26:54 -07:00
Daniel Fedai Larsen ca09a1ab99 Add HAB support irrespective of MCUSDK setting for imx_rt target 2024-07-29 07:53:22 +02:00
David Garske 53530c466b Added hal_led_on/hal_led_off API's enabled with `ENABLE_LED` for testing. 2024-07-25 06:17:38 +02:00