David Garske
ffa31caa56
Fix for T1024 CPLD.
...
Reads:
```
CPLD BOARD_ID: 0x41503031
CPLD PLD_VER: 0x42
```
2024-02-12 19:54:12 +01:00
David Garske
fea3b9ed1d
Improve PCIe code.
2024-02-12 19:54:12 +01:00
David Garske
0b206d6758
Fixes for NXP T1024 with Integrity OS. Adds additional FDT fixups for FMAN, Ethernet, PCI. Add PCI init and enumeration.
2024-02-12 19:54:12 +01:00
David Garske
83283c6cf7
Fixes for NXP T1024 and booting Integrity OS:
...
* Fixed PPC spin table based on ePAPR 1.1.
* Added flattened device tree (FDT) support. Setting required FDT fields per ePAPR 1.1.
* Added Frame Manager microcode upload.
* Fixed CPLD and setting QE clock.
* Added support for setting logical device numbers and updated device tree.
* Fixed QUICC Engine base address (was incorrect, should be 0x140000).
* Fixed "cpu-release-addr" to use 64-bit value.
* Added secondary cached boot page.
* Added L2 cache support to multi-core.
* Added flattened device tree parser tool for testing (`make fdt-parser` and `tools/fdt-parser/fdt-parser`).
* Added checks for FDT header.
* Added automated test case for NXP T1024 FDT.
2024-01-17 14:16:15 +01:00
Daniele Lacamera
ac17c826b6
Added new config option NXP_CUSTOM_DCD_OBJS
...
+ Fix linker error due to wrong pointer type
2023-11-22 15:19:09 +01:00
Daniele Lacamera
0d614fc669
Added custom DCD for i.mx-RT10XX
2023-11-16 09:56:44 +01:00
Daniele Lacamera
c3c6d21675
Added cppcheck --enable-portability, fixed UBs
...
Fixed reported UBs involving (void *) ptr arithmetic
2023-10-13 16:14:07 +02:00
Daniele Lacamera
dcb82b6545
cppcheck: added "--enable=warning"
2023-10-13 16:08:22 +02:00
Daniele Lacamera
5f5b4a5365
Fixed new cppcheck warning in hal/stm32c0.c
2023-10-13 15:49:42 +02:00
Daniele Lacamera
b5c8bc8024
Fix cppcheck warnings
2023-10-13 15:49:12 +02:00
David Garske
8d882bc898
Peer review cleanups and added CI test.
2023-10-13 14:34:01 +02:00
David Garske
c4dfa3f986
PR cleanups based on peer review. Fixes to support < 10KB wolfBoot for either RSA2048 or ED25519. Partition scheme allows 10KB application partition or (6KB actual due to NVM write once). Made space using NO_MPU=1, RAM_CODE=0, USE_SLOW_SHA256 and !FLASH_SECURABLE_MEMORY_SUPPORT.
2023-10-13 14:34:01 +02:00
Bill Phipps
a1d584b838
STM32C0 support
2023-10-13 14:34:01 +02:00
David Garske
389e12faf1
Fixes to get TPM working with T1024 and MMU enabled.
2023-10-06 15:28:16 +02:00
David Garske
3e8d6fb061
Added NXP IFC NOR Flash erase/write.
2023-10-06 15:28:16 +02:00
David Garske
322d1b3a36
Refactor DDR law setup for use with stage 2 as stack.
2023-10-06 15:28:16 +02:00
David Garske
b3e2fb9ddd
NXP T1024 wolfBoot support:
...
* Added DDR4 w/ECC.
* Added L2 and L2 CPC SRAM support
* Added platform SRAM 160KB support
* Added support for core timers (timebase) and platform clock.
* Added IFC driver with erase/write
* Added stage 1 loader to relocate wolfBoot to DDR
* Added CPLD, QUICC, FMAN and MP drivers
* Added eSPI driver for TPM.
* Added hal_early_init instead of calling ddr_init directly.
* Fixes for device tree (DTB) loading with update_ram and PPC boot.
* Fixes for relocating CCSRBAR to upper.
* Fixes for interrupt offsets.
2023-10-06 15:28:16 +02:00
Marco Oliverio
7c03fc83a1
fsp: tgl: linker script: load stage1 data at 1 mb
2023-09-28 13:12:26 +02:00
Marco Oliverio
133479f212
fsp: defer SATA init in wolfBoot_start
...
In hal_init() TPM is not ready yet. SATA inti code needs TPM to unlock disk when
using TPM sealed secret based disk locking.
2023-09-28 13:12:26 +02:00
Marco Oliverio
2c4df2866b
fsp: tpm: support policy stored in the flash
2023-09-28 13:12:26 +02:00
Daniele Lacamera
b29290b583
Added flag WOLFSSL_PKCS11_RW_TOKENS
...
Writable token support in PR wolfssl/wolfssl#6778
2023-09-21 08:31:30 +02:00
Daniele Lacamera
b8a5a6243d
Cleanup, config rename, documentation
2023-09-21 08:31:30 +02:00
Daniele Lacamera
291adfe87d
Fixed merge of user_settings with new TPM logic
2023-09-21 08:31:28 +02:00
Daniele Lacamera
5ae3f14af3
Fix nonsecure RAM area in SAU
2023-09-21 08:29:18 +02:00
Daniele Lacamera
e4abcbd78b
Expanded RAM space for App 64->128 KB
2023-09-21 08:29:16 +02:00
Daniele Lacamera
ed0357289c
Fixed NS flash access + flash write unlock + misc
...
- non-secure flash area increased to cover BOOT+UPDATE partitions
- call unlock/lock functions before accessing pkcs11 store for writing
- Enabled more features in application wolfcrypt front-end
- Fixed compiler w4rnings
2023-09-21 08:28:23 +02:00
Daniele Lacamera
d53999de18
Fixed PKCS11 store functions.
...
Working C_InitToken/C_Login.
2023-09-21 08:28:23 +02:00
Daniele Lacamera
fd862cbd8f
Working PKCS11 test.
...
Temporarily removed some features so the image fits in 64Kb
2023-09-21 08:28:09 +02:00
Daniele Lacamera
f7d6c17685
TZ: PKCS11 wrappers via wolfPKCS11 in S world
2023-09-21 07:57:18 +02:00
Daniele Lacamera
c849ddfebb
Reverted accidental changes in uart_drv_stm32wb
2023-09-21 07:57:18 +02:00
Daniele Lacamera
41b11ed1dd
Added uart support for stm32l5 (LPUART1)
2023-09-21 07:57:18 +02:00
Daniele Lacamera
0cc1eea05d
Added raw file read from NS-domain
...
+ fix linker script with the correct NSC address
+ fix ecc key import
2023-09-21 07:57:18 +02:00
Daniele Lacamera
0971d47436
New keyvault slots structure in Secure SRAM
...
- Example with slots allocated at compile time
- Defining/allocating slots, provisioned as well as empty
- Checks for memory usage
- No free function for slots
2023-09-21 07:57:18 +02:00
Daniele Lacamera
e2ab9a5553
Unified TZ support for STM32L5/U5
...
- added file with common code
- added support for TRNG on U5
- added support for wolfcrypt NSC on U5
2023-09-21 07:57:18 +02:00
Daniele Lacamera
80f881dab5
Fixed STM32L5 TRNG driver + simplified GTZC and SAU setup
2023-09-21 07:57:18 +02:00
Daniele Lacamera
fd809c5b69
Expanded WCS interface
...
- Added TRNG driver for STM32L5
- Link with correct objects in test-app
- Expanded wc_callable interface
2023-09-21 07:57:18 +02:00
Daniele Lacamera
9bf80ab8cd
Initial draft: wolfcrypt secure mode
2023-09-21 07:57:18 +02:00
Marco Oliverio
d88315c801
fsp: move _stage2_params symbol in wolfboot .bss
...
including the symbol in the C file will ensure that the linker reserves the
necessary space.
2023-09-19 10:12:59 +00:00
Marco Oliverio
9e9e504e63
fsp: remove unused stage2_params declaration
2023-09-19 10:12:59 +00:00
Daniele Lacamera
686335bab5
Updated linker script files for tgl target
...
- keystore moved to the beginning of the flash space
- fixed .bss
2023-09-19 10:12:59 +00:00
Daniele Lacamera
5db2714eae
Moved keystore section to the end of the flash
2023-09-19 10:12:59 +00:00
Marco Oliverio
6b4f0be37f
x86: fsp: support .data and .bss in stage1
2023-09-19 09:33:16 +00:00
Marco Oliverio
ab69e27c17
x86: tgl: flash layout reorder
2023-09-19 09:33:16 +00:00
Marco Oliverio
ae7221d321
fix: remove stale section include in stage1 linker script
2023-09-19 09:33:16 +00:00
Tesfa Mael
a29b78d680
Add function headers
2023-08-22 07:18:15 +02:00
David Garske
6ea1a1e4a5
Added GitHub action build tests for NXP parts (iMX RT, Kinetis and LPC).
2023-08-21 11:08:48 +02:00
David Garske
802ebdce1d
Fix for iMX RT1050 program. Disable optimized XIP for now, since it causes page program issue.
2023-08-21 11:08:48 +02:00
David Garske
7b454ab898
Added flash test case for iMX RT. Fixed CRLF. Fixed test app LED IO configuration.
2023-08-21 11:08:48 +02:00
David Garske
5c63d75890
Add support for iMX RT1050 and RT1060 wolfBoot_printf using DEBUG_UART=1.
2023-08-21 11:08:48 +02:00
David Garske
d223b34319
Add support for the RT1050 HyperFlash configuration (default on EVKB).
2023-08-21 11:08:48 +02:00