David Garske
e375363bbb
Add CMake `QSPI_FLASH` and `OCTOSPI_FLASH` options.
2023-02-02 12:11:23 -08:00
David Garske
8dd0ee347f
Support for the STM32 OCTOSPI peripheral.
2023-02-02 12:11:23 -08:00
John Bland
80dbfffb26
change to wolfBoot.bin
2023-01-31 09:26:20 -08:00
John Bland
92bd8b6757
update flashing documentation and update scripts for the stm32u5
2023-01-31 09:26:20 -08:00
David Garske
9725b64474
Merge pull request #276 from danielinux/nvm_flash_writeonce_refactor
...
NVM_FLASH_WRITEONCE refactoring
2023-01-27 09:19:46 -08:00
Daniele Lacamera
d4cd79e678
Fixed cosmetics after code reviews
2023-01-27 08:35:08 +01:00
Daniele Lacamera
42822cd1d8
Fix build error
2023-01-26 18:46:51 +01:00
Daniele Lacamera
b48b35a498
Fixed selection of the cached sector before write
2023-01-26 18:31:36 +01:00
Daniele Lacamera
6e61b54a20
Fix compile errors with ENCRYPT=1
2023-01-26 14:32:55 +01:00
Daniele Lacamera
e04a35bbdb
Fix compile errors
2023-01-26 14:23:45 +01:00
Daniele Lacamera
3d517cfe8c
NVM_FLASH_WRITEONCE refactoring
...
- Using two sectors to keep partition/sector flags
- Keep two redundant set of flags, update one at a time
- Erase is done when the sector is old
- Flags update is faster because Erase is done in advance
- Accessing trailer information (including encryption keys) is done by
selecting the newest information
Tested via renode, using nrf52 with NVM_FLASH_WRITEONCE flag on.
2023-01-26 09:22:48 +01:00
David Garske
47e9d7a591
Merge pull request #261 from cmcquinn/cmake-fixes
...
Improvements and fixes for CMake
2023-01-13 15:28:55 -08:00
Cameron McQuinn
98690cbc6d
Fix image generation when signing is disabled
2023-01-12 14:57:58 -07:00
John Bland
20621a68ce
Fix issues with keygen tool ( #269 )
...
* Fix issues with keygen tool import `-i` feature.
* Fix issue with key import incorrectly assuming key size.
* Add support for importing an ECC key with header.
* Fix for missing ECC key free.
* Refactor keygen tool to use utility function to get key size
* Fix to handle encoded ECC public keys when using `--sha-only` or manual sign
2023-01-09 15:59:00 -08:00
David Garske
286d8f6684
Merge pull request #267 from danielinux/v1.14-rc
...
preparing release: v1.14
2022-12-30 08:19:51 -08:00
Daniele Lacamera
f250a5b5d4
Update wolfBoot version
2022-12-30 10:57:05 +01:00
Daniele Lacamera
f6e5ee1ec6
Updated changelog
2022-12-30 10:57:05 +01:00
Daniele Lacamera
4e34b7cbe2
Updated submodules to latest versions
2022-12-30 10:57:05 +01:00
David Garske
034fa093da
Add the new example configurations to the tests.
2022-12-29 18:27:40 +01:00
David Garske
63c35ac95a
Fixes for NXP P1021 NAND flash mapping and boot page.
2022-12-29 18:27:40 +01:00
David Garske
f91e82a452
Progress on NXP P1021 eLBC FCM driver for NAND flash.
2022-12-29 18:27:40 +01:00
David Garske
c6983b8c42
Progress on P1021 support (work in progress).
2022-12-29 18:27:40 +01:00
David Garske
022b8d3c13
Progress on adding NXP QorIQ P1021 support.
2022-12-29 18:27:40 +01:00
David Garske
e88a7dcae3
Progress on DDR support for QorIQ. Refactor the platform to use "nxp_".
2022-12-29 18:27:40 +01:00
David Garske
0791005a6f
Merge pull request #268 from danielinux/fix-tpm-regressions
...
Fixed regressions on TPM SPI communication
2022-12-29 08:20:10 -08:00
Daniele Lacamera
74a26d20c8
Fixed regressions on TPM SPI communication
...
that were introduced in #265
2022-12-29 16:11:34 +01:00
David Garske
4c4fab7612
Expand build tests for aarch64 and ppc. Fixes for some minor build errors uncovered.
2022-12-28 22:47:27 +01:00
David Garske
005df0949d
Disabled builds that have requirements not supported yet. Fixed L0 build.
2022-12-28 19:15:50 +01:00
David Garske
8662f2539a
Adding build tests for all ARM based example configs.
2022-12-28 19:15:50 +01:00
David Garske
e746c3f65a
Fix for wolfBoot with wolfTPM. Tested with `cp ./config/examples/stm32wb-tpm.config .config && make clean && make`.
2022-12-28 19:15:50 +01:00
Anthony Tatowicz Jr
1d035cd6cc
Merge pull request #264 from danielinux/stm32h7_qspi.pr254.gpiofix
...
STM32H7 QSPI flash support
2022-12-27 15:38:40 -06:00
David Garske
a93eacf510
Improve QSPI driver performance.
2022-12-22 15:29:24 -08:00
David Garske
8d7d4d4f74
Fixes for QSPI read. Adds alternate byte support. Cleanup of simple QSPI read/write.
2022-12-22 15:02:31 -08:00
David Garske
c3cf21a81f
STM32 QSPI cleanups.
2022-12-21 14:06:31 -08:00
David Garske
5331f5ee23
QSPI Flash tests passing in single SPI mode (working on Quad mode).
...
```
wolfBoot Init
Flash ID (ret 0): 0x1870EF, status 0
Erase Sector: Ret 0
Flash Write: Ret 0, Address 0x200000, Page 0, Len 256
Write Page: Ret 0
Flash Read: Ret 0, Address 0x200000, Len 256, Cmd 0xB
Read Page: Ret 0
Checking...
Flash Test Passed
```
2022-12-20 16:44:53 -08:00
David Garske
26bed3e893
Fixes for QSPI driver (CS is controller by QSPI). Fix little endian byte ordering for UART printf feature.
2022-12-20 15:00:26 -08:00
Daniele Lacamera
bf62ebe3fd
Fix GPIO mode for SPI CS pins
2022-12-20 13:54:17 +01:00
David Garske
1766864a6b
Fixes for STM32 QSPI and cleanups. Added build-option for QSPI clock (`QSPI_CLOCK_MHZ`).
2022-12-20 13:31:28 +01:00
David Garske
a9526bab8f
STM32 QSPI Flash support. Refactor SPI to allow different GPIO base/AF for each pin. Adds `DEBUG_UART` support for H7.
2022-12-20 13:31:28 +01:00
David Garske
ac6f5207c7
Update documentation.
2022-12-19 11:38:00 +01:00
David Garske
f283929161
Improvements to gap fill. The default gap filling byte is `0xFF`. If using `FLAGS_INVERT=1` uses `0x00`. Can be overridden at build-time using `FILL_BYTE`. Fixes ZD 15356.
2022-12-19 11:38:00 +01:00
Cameron McQuinn
486b4db408
Fix PULL_LINKER_DEFINES
2022-12-16 10:40:11 -07:00
David Garske
da6d364f1e
Fixes for encrypt/decrypt with unaligned address. Fix issue with byte count result on Mac. Cleanups for uart-flash-server.
2022-12-16 17:50:02 +01:00
Daniele Lacamera
4ee867b2dd
Fixes for stm32wb test
...
- added img->hdr_ok flag when opening external flash image
- correct return value for uart_flash ext_flash functions
- correct image size in prepare_encrypte_update.sh
2022-12-16 17:49:46 +01:00
Cameron McQuinn
8ace007cd8
Improvements and fixes for CMake
2022-12-15 00:56:57 -07:00
David Garske
b1d7c43043
Fix for external SPI broken with cd6597e2a0
2022-12-14 23:07:38 +01:00
David Garske
95d5ed6c01
Merge pull request #258 from danielinux/docker-test-2022.12
...
Github workflows: new test scripts
2022-12-13 11:10:31 -08:00
David Garske
510e4ab4b0
Merge pull request #259 from danielinux/fix.ecc384.smallstack.tfm
...
Fix ecc_point size for ECC384 with SMALL_STACK/TFM
2022-12-13 09:19:38 -08:00
Daniele Lacamera
34b7b4c0a7
Fix ecc_point size for ECC384 with SMALL_STACK/TFM
2022-12-13 17:30:03 +01:00
Daniele Lacamera
186027b122
Github workflows: new test scripts
...
Moved most of the commands inside the renode container.
Updated docker image to compile and run all tools, wolfboot and test
image within the renode container.
2022-12-13 16:45:57 +01:00