David Garske
c8a28005ac
Disable XIP support. This enables `PART_BOOT_EXT` to correctly load the boot partition from external flash.
2023-05-05 10:43:10 -07:00
David Garske
23061c041c
Add TPM test (`RX: 0x1141105`).
2023-05-05 09:50:40 -07:00
David Garske
0f110e4cd9
Progress on eSPI support for NXP P1021 TPM.
2023-05-04 15:23:45 -07:00
David Garske
ef35f473c9
Merge pull request #296 from jpbland1/tpm-root-trust
...
wolfTPM pubkey storage with policy based access restriction
2023-05-04 15:09:06 -07:00
John Bland
fe2b797b01
get wolfboot simulator working with the tpm simulator
...
move pcr reset and extend outside of session
the tpm uses policy checking for modifying PCR's so we need to reset and extend the PCR's with the image hash before the session begins, currently tested unseal, having trouble getting the simulator to run update in order to test reseal
2023-05-03 11:39:25 -04:00
John Bland
eb30566bba
add encryption key unsealing from the tpm
...
make the config/examples/stm32f4-tpm-keystore.config config use ecc256
2023-04-24 13:23:09 -04:00
John Bland
b94249f8f7
correctly identify a forward powerfail vs a revert
...
powerfail and add an exception to wolfBoot_delta_update when a revert gets
interrupted since the version will change in the middle of the update process
2023-04-22 06:13:53 +02:00
John Bland
14ec346e1c
before calling wolfBoot_delta_update, check if the
...
0th sector has been changed with the update partition still being in
IMG_STATE_UPDATING state. the state still being IMG_STATE_UPDATING means that a
delta update started and that the version may have been switched over, in which
case wolfBoot_current_firmware_version() >= wolfBoot_update_firmware_version()
no longer tells us if we need to perform an inverse operation on it's own.
also removes part of the update powerfail test that does checks for the
previous version without triggering a rollback
2023-04-21 20:31:58 +02:00
David Garske
3b90e32356
Switch to small page size by default. Capture read_id return code. Add SPMATHALL to config.mk.
2023-04-21 16:41:00 +02:00
David Garske
69ca95eb94
Adds `factory_wstage1.bin` option to include first stage loader. Fix test-app verbose issue.
2023-04-21 16:41:00 +02:00
David Garske
553ec760fd
NXP QorIQ refactor for shared PPC (e500 / e6500) registers
...
* Fixes for e500 L1/L2 cache.
* Fixes for eLBC and DDR3 drivers on P1021.
* Fixes for LAW and TLB for P1021.
* Fix for the e500v2 core peripheral issues with data barrier / coherency safety.
* Support for SP math all (`SPMATHALL=1`).
* Support for stage 1 loader (`make stage1`).
2023-04-21 16:41:00 +02:00
John Bland
371ff3bb9e
add documentation for using --policy-signed
2023-04-18 17:29:27 -04:00
John Bland
9648f527a2
update tpm seal and unseal code to use new seal
...
arguments and reset out the PCR values so they're not impacted by previous calls
2023-04-17 18:15:40 -04:00
John Bland
79e2f43b68
add TPM pubkey sealing doc and update code based on pr comments
2023-04-14 01:55:14 -04:00
David Garske
5e9e33d136
Merge pull request #298 from danielinux/fix-duplicate-test
...
Removed duplicate test entry in test.mk
2023-04-13 12:24:25 -07:00
Daniele Lacamera
27df34264c
Removed duplicate test entry in test.mk
2023-04-13 21:01:21 +02:00
David Garske
d7711a42b6
Merge pull request #297 from danielinux/fix_get_trailer_nvm
...
Fix bug in get_trailer_at()
2023-04-13 11:00:29 -07:00
Daniele Lacamera
48496c3568
Fix bug in get_trailer_at()
2023-04-13 19:17:21 +02:00
David Garske
f008ebf606
Merge pull request #293 from danielinux/update-submodules-5.6.0
...
Prepare release 1.15
2023-04-13 09:05:36 -07:00
Daniele Lacamera
65635b3940
Updated version & README.md
2023-04-13 17:34:26 +02:00
Daniele Lacamera
769cbb8b1e
Updated submodule to wolfSSL latest tag
2023-04-13 17:14:44 +02:00
Daniele Lacamera
3ecf85efec
Updated submodules to latest version
2023-04-13 17:13:14 +02:00
John Bland
f71108442c
switch wolftpmPcrArray to uint8_t and return negative versions of tpm errors
2023-04-12 23:49:58 -04:00
John Bland
1e93b3d042
add policy signed header to sign.c
2023-04-12 13:36:03 -04:00
John Bland
7dd97be63c
update policy sealing logic based on pr comments
2023-04-12 11:20:46 -04:00
Hideki Miyazaki
6b79068c6b
initial created for RA6M4
2023-04-12 07:02:16 +02:00
John Bland
76fb8feac2
add missing error check unseal call
2023-04-11 12:26:42 -04:00
John Bland
3fbc99d36e
wolfTPM pubkey storage with policy based access restriction
...
this update uses the tpm to retreive the public key used to validate the image that will boot and restricts access to that key by tpm policy. when the image is updated it's signature is used to extend the PCR and when the image is loaded it's signature must match what was sealed in order to get the public key from the tpm. enabling this option is done by setting WOLFBOOT_TPM_KEYSTORE in .config
2023-04-11 11:46:21 -04:00
billphipps
27c079b04c
Correct spacing.
2023-03-23 06:04:35 +01:00
billphipps
310efc468c
Update to check if the initial bytes are erased, then no update is
...
present.
2023-03-23 06:04:35 +01:00
David Garske
f31634d2de
Merge pull request #290 from danielinux/test-failsafe-sim
...
Add power failure tests via simulator
2023-03-21 10:22:26 -07:00
Daniele Lacamera
56a1158241
Disable DELTA/powerfail test
2023-03-21 18:03:38 +01:00
Daniele Lacamera
d99f14045a
Add 16KB random data at the end of the image
2023-03-21 18:03:38 +01:00
Daniele Lacamera
9759773f9d
Added simulator tests with delta updates
2023-03-21 18:03:38 +01:00
Daniele Lacamera
49c6b46456
Fixed make commands in workflows
2023-03-21 18:03:38 +01:00
Daniele Lacamera
e39ce78b30
Fix fprintf format string warning
2023-03-21 18:03:38 +01:00
Daniele Lacamera
7e9ecbad50
Added github action for powerfail tests
2023-03-21 18:03:38 +01:00
Daniele Lacamera
887f96c7b0
Fix fprintf warnings
2023-03-21 18:03:38 +01:00
Daniele Lacamera
57a8fb30f1
Added test scripts
2023-03-21 18:03:38 +01:00
Daniele Lacamera
6aa5c114e5
Added option to sim target to simulate powerfails
2023-03-21 18:03:38 +01:00
Daniele Lacamera
96bf93838f
Allow NVM_FLASH_WRITEONCE code to run in 64bit sim
2023-03-21 18:03:38 +01:00
David Garske
6f12975bc5
Merge pull request #289 from danielinux/gh-action-rsa4096
...
Parallelize renode tests execution, remove unfeasible test, add compile-time check for large stack usage
2023-03-21 10:01:17 -07:00
Daniele Lacamera
43fa7b17f1
Added WOLFBOOT_HUGE_STACK option
...
The option can be enabled to use RSA4096 with fast math.
2023-03-21 17:06:22 +01:00
Daniele Lacamera
8c47d5c496
Disable TFM+RSA4096 test
2023-03-21 17:05:48 +01:00
Daniele Lacamera
40bd66dd96
Parallel memory/sha renode tests
2023-03-21 16:44:52 +01:00
Daniele Lacamera
8e74db2f27
Eliminate sigset warning in test-expect-version
2023-03-21 16:44:52 +01:00
Marco Oliverio
b502eef4a7
Merge pull request #292 from danielinux/fix_keystore_size
...
keygen.c: fixed size of exported binary keystore
2023-03-20 11:44:58 +01:00
Daniele Lacamera
ab6cd52e7c
keygen.c: fixed size of exported binary keystore
2023-03-20 09:10:53 +01:00
Marco Oliverio
3fa27842c6
Merge pull request #288 from danielinux/encryption-unit-tests
...
Encryption unit tests
2023-03-14 17:45:31 +01:00
Daniele Lacamera
cd7e4e10fc
Fixed after reviewer's comments
2023-03-14 16:12:40 +01:00