Commit Graph

350 Commits (fce6149cf8df011484da689d064ef1909e18cddc)

Author SHA1 Message Date
Daniele Lacamera fce6149cf8 Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
David Garske 61d24ab857 Added test-app code to change LED color based on version. Improved documentation. Minor code cleanups. 2024-03-29 11:10:30 -07:00
Daniele Lacamera dfc53df909 Added support for NXP MCXA153 2024-03-29 10:25:08 +01:00
David Garske e3669245d5
Merge pull request #411 from miyazakh/renesas_rz2
Support wolfBoot on Renesas RZN2L
2024-03-01 20:22:11 -08:00
Daniele Lacamera 32057f1fa0 SAM E51: hal_flash_erase bugfix
Increment the address when erasing multiple pages.
2024-02-29 12:30:13 +01:00
David Garske c2388cd142 Fix for NXP T1024 PHY address mapping. Add ability to override macros. 2024-02-27 13:21:55 +01:00
Hideki Miyazaki 6c0509ae78 Initial commit for wolfBoot Loader project on e2studio
-- update based on readme
2024-02-27 15:49:11 +09:00
David Garske 11017d8af2
Merge pull request #405 from MulattoKid/mimxrt1040evk_support
Add support for MIMXRT1042XJM5B
2024-02-15 15:02:09 -08:00
David Garske aaac032566 Add LPUART1 IO init. Add automated testing for RT1040. 2024-02-15 14:54:46 -08:00
David Garske 8a7c6933a4
Merge pull request #407 from danielinux/dualbank_swap_fork_bootloader_once
DUALBANK: fork_bootloader should only execute once
2024-02-15 09:06:08 -08:00
Daniele Lacamera c70c8a470d Added support for Microchip SAM E51 2024-02-15 17:30:11 +01:00
Daniele Lacamera c25497eba9 DUALBANK: fork_bootloader should only execute once
fork_bootloader() should perform a physical copy of
the bootloader to its partition in the second bank only
if the content of the two partitions does not already match.
2024-02-15 16:55:33 +01:00
Daniel Fedai Larsen 0f25c80114 Add support for MIMXRT1042XJM5B 2024-02-13 11:50:21 +01:00
David Garske 9e2aaebed3 Fix for NXP T1024 to get MAC address from Integrity OS ethernet configuration area in flash. 2024-02-13 08:55:11 +01:00
David Garske 85b59634a1 Peer review feedback. 2024-02-12 19:54:12 +01:00
David Garske 87d60ddbe5 Added NXP T1024 mEMAC, MDIO and PHY setup. Setting PHY fixes Integrity OS Ethernet issues and task crash.
Example Output:
```
PHY 2: SGMII, Mac DC:A7:D9:0:6:F6
PHY 2: TI DP83867 (OUI 80028, Mdl 23, Rev 1)
PHY 1: SGMII, Mac DC:A7:D9:0:6:F5
PHY 1: TI DP83867 (OUI 80028, Mdl 23, Rev 1)
PHY 3: RGMII, Mac DC:A7:D9:0:6:F7
PHY 3: TI DP83867 (OUI 80028, Mdl 23, Rev 1)
PHY 4: RGMII, Mac DC:A7:D9:0:6:F8
PHY 4: TI DP83867 (OUI 80028, Mdl 23, Rev 1)
```
2024-02-12 19:54:12 +01:00
David Garske 2a93b0936c Fix for eSDHC to update FDT with status and clock. Fix eSPI base address. 2024-02-12 19:54:12 +01:00
David Garske 5808b4c59e Fix for T1024 CPU core clock calculation. 2024-02-12 19:54:12 +01:00
David Garske 349231b982 Cleanups. 2024-02-12 19:54:12 +01:00
David Garske 275222f0cb CPLD Fixes. Add MRAM support. 2024-02-12 19:54:12 +01:00
David Garske 7b1d180951 Improvements for CPLD. Patch for PCIe from TigerLake. 2024-02-12 19:54:12 +01:00
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