Commit Graph

959 Commits (b401dae331aebad6280554659e1f7ca644e654ff)

Author SHA1 Message Date
Daniele Lacamera b401dae331 Fix NVM_FLASH_WRITEONCE redundancy
Address of non-selected block to erase was shifted by one block
2023-03-13 10:37:48 +01:00
David Garske 16bc109c06
Merge pull request #282 from danielinux/update-ram-decrypt
Allow encrypted images in MMU targets
2023-03-09 12:16:45 -08:00
Daniele Lacamera 99980348dd Update MAIN_TARGET for raspberry pi builds 2023-03-09 18:38:48 +01:00
Daniele Lacamera 2f2a6d416d Support encrypted images in MMU targets 2023-03-09 16:31:29 +01:00
David Garske cb1eaff8e8 Support for SP math with AARCH64 when hardware supports it. 2023-03-09 07:05:24 +01:00
Brett Nicholas 6dacae2945 removed imx_rt10xx_nor files from codebase and replaced with SDK reference 2023-03-06 17:31:48 +01:00
Brett Nicholas 0759c1e7cd changed comment style and copyright year 2023-03-06 17:31:48 +01:00
Brett Nicholas a943e9defc updated to include RT1064 2023-03-06 17:31:48 +01:00
Brett Nicholas b6cf7f94a9 removed local path to SDK from compiler include path 2023-03-06 17:31:48 +01:00
Brett Nicholas 680ce5f8e8 first commit - test app boots on MIMXRT1064-EVK 2023-03-06 17:31:48 +01:00
David Garske fa483a460a Fix docker tests in github actions by running the test as root in docker 2023-03-06 16:25:06 +01:00
David Garske 919d33d7b5 Increase the QSPI timeout to accommodate release build optimizations. 2023-03-06 16:25:06 +01:00
David Garske 80ac15693c Fixed STM32H7 UART 5. Added CMake support for DEBUG_UART. Adjust example config to use correct QSPI offsets for update partition. 2023-03-06 16:25:06 +01:00
David Garske 40f2f82dd7 Add support for UART5. 2023-02-02 12:11:23 -08:00
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