Commit Graph

1073 Commits (51fcb61cd201f78d33bcd79ace2d5acaa99cf71b)

Author SHA1 Message Date
Hideki Miyazaki 51fcb61cd2 modified interval when using version 1 2023-07-06 08:24:26 +02:00
Hideki Miyazaki 5fdc5e66cd rm pincfg, jlink, launch and configuration.xml from wolfBoot project 2023-07-06 08:24:26 +02:00
Hideki Miyazaki c0cba25e8b rm app_RA configuration.xml 2023-07-06 08:24:26 +02:00
Hideki Miyazaki 343631ba70 rm fsp.ld, pincfg, .jlink and .launch files 2023-07-06 08:24:26 +02:00
Hideki Miyazaki dee6be0671 update SW only case and fix SCE use case 2023-07-06 08:24:26 +02:00
David Garske 25bca043ed Increase size limits by 38 bytes (due to v5.6.3 update). 2023-07-05 18:34:42 +02:00
David Garske 1d6c421b41 Disable dynamic stack for SP math and SP math all. 2023-07-05 18:34:42 +02:00
Daniele Lacamera 17b948bd25 Added WOLFSSL_SP_NO_DYN_STACK to user_settings.h 2023-07-05 18:34:42 +02:00
Daniele Lacamera 180d819d4a Added WOLFSSL_SP_NO_DYN_STACK 2023-07-05 18:34:42 +02:00
Daniele Lacamera e186531ec2 Fixed preprocessor symbol clash MP_INT_SIZE 2023-07-05 18:34:42 +02:00
Daniele Lacamera b131ae553e Updated submodules 2023-07-05 18:34:42 +02:00
David Garske 338f4bc2ea Peer review feedback. 2023-07-05 17:03:57 +02:00
David Garske 11f46a51e1 Further fixes and improvements with NXP T2080 regression testing. Added required LAW's to startup assembly. Moved LAW definitions to header. Move isr_empty so other boot functions go in the boot section. 2023-07-05 17:03:57 +02:00
David Garske 63766c24e3 Fixes for regression testing on NXP T2080. Fix legacy U-Boot image header load address (make optional feature). Cleanup disabled/dead code. 2023-07-05 17:03:57 +02:00
David Garske db15f9b0f1 Further NXP P1021 fixes and improvements:
* Added ELF32 and ELF64 loader support (config `ELF=1` or build option `WOLFBOOT_ELF`).
* Add ELF support to `update_ram.c` loader.
* Add support for loading entire flash image to RAM when `EXT_FLASH=1` and `NO_XIP=1` (or `WOLFBOOT_USE_RAMBOOT`).
* Added QUICC Engine support to load microcode and enable.
* Add multiple core support for NXP P1021.
* Fixes to resolve first stage boot ROM relocation.
  - Implemented temporary workaround to resolve stack traps.
* Added PPC GOT relocation support.
* Fix for the PPC `isr_empty` handler address.
* Fix to allow stack to use DDR by having assembly setup DDR TLB. After relocating wolfBoot use stack on DDR.
* Cleanup wolfBoot output.
  - Only remove extra .bin/.elf created unless `make distclean` is used.
  - Don't output the key grep test (only check result).
  - Adjust build order (first stage, wolfboot, test app, key, sign test app and factory).
  - Fix to make sure linker script is rebuilt before objects.

Sample NXP P1021 Output:

```
Relocating BOOT ROM to DDR
Loading wolfBoot to DDR
Jumping to full wolfBoot
wolfBoot HAL Init
Flash Init: Ret 0, ID 0x76207620
QE: Length 63732, Count 1
QE: uploading 'Microcode for P1021 r1.0' version 0.0.1
QE: Traps 0
MP: Starting core 2 (spin table 0xFFFFF240)
Versions: Boot 1, Update 0
Trying Boot partition at 0x200000
Loading header 512 bytes to 0x1DFFFE00
Loading image 3170724 bytes to 0x1E000000
Image size 3170724
Firmware Valid
Loading elf at 0x1E000000
Found valid elf32 (big endian)
Booting at 0x6000
```
2023-07-05 17:03:57 +02:00
David Garske a56e2252c1 Revert the TPM based key store (root of trust). This feature is not ready for next release. 2023-07-04 08:36:41 +02:00
Dimitri Papadopoulos be037ca04d Fix typos found by codespell 2023-07-04 07:43:02 +02:00
Hideki Miyazaki 4e20d5a90d addressed review comments 2023-06-10 08:53:32 +02:00
Hideki Miyazaki d9ada916e9 addressed review comments 2023-06-10 08:53:32 +02:00
Hideki Miyazaki 5ed7390c40 reorganize folders under IDE/Renesas 2023-06-10 08:53:32 +02:00
Takashi Kojo 737c549161 Add tools/format-conv/der2raw 2023-06-10 08:53:32 +02:00
Takashi Kojo 030073d990 Add TSIP 2023-06-10 08:53:32 +02:00
Takashi Kojo 81fb762fa7 move doboot to boot_renesas_rx.c 2023-06-10 08:53:32 +02:00
Takashi Kojo 2590a04a14 move printPartitions to application 2023-06-10 08:53:32 +02:00
Takashi Kojo 83dac8ecfc Readme.md for the demo 2023-06-10 08:53:32 +02:00
Takashi Kojo 6393c48860 print partition info 2023-06-10 08:53:32 +02:00
Takashi Kojo def2a530e4 Simple boot 2023-06-10 08:53:32 +02:00
Takashi Kojo cf86de2515 Initial wolfBoot project, Renesas RX72N, e2Studio 2023-06-10 08:53:32 +02:00
John Bland c6629ed86a add missing steps for policy pubkey sealing
update wolfTPM version to include new sealing functions, add preseal helper commands
2023-05-18 12:33:49 +02:00
John Bland 1e3f30a1c6 add github action for encryption with delta updates 2023-05-17 19:39:00 +02:00
John Bland 6a21c02e6c add a simulator test for using encryption and delta updates
increase argument count max since the tools duplicate the sig and hash args
2023-05-17 19:39:00 +02:00
Hideki Miyazaki c32a29539a addressed review comments 2023-05-17 14:15:18 +02:00
Hideki Miyazaki 170bb9a585 Support Renesas RA6M4 with SCE use 2023-05-17 14:15:18 +02:00
John Bland edcdba28fc
Merge pull request #309 from danielinux/fix-nvm-pre-erase
NVM_FLASH_WRITEONCE Fixed wrong partition erase
2023-05-16 11:35:49 -04:00
Daniele Lacamera c897362031 NVM_FLASH_WRITEONCE Fixed wrong partition erase
When using NVM_FLASH_WRITEONCE, before writing to the active trailer sector,
we check that the sector has been previously erased. This check was
erasing the wrong partition trailer, leaving the system without a
trailer for a few lines of code, but potentially vulnerable to
powerfailure events.
2023-05-16 09:33:48 +02:00
John Bland f97e71c724
Merge pull request #308 from danielinux/sim-encrypt-tests
Improved simulator tests
2023-05-15 11:53:07 -04:00
Daniele Lacamera 46ea4923d1 Build tests: change ubuntu repository 2023-05-15 14:57:27 +02:00
Daniele Lacamera 048af83858 New partition sizes in tests 2023-05-15 13:38:57 +02:00
Daniele Lacamera 39d8eedc61 Added sim-encrypt tests to github workflow 2023-05-15 11:54:37 +02:00
Daniele Lacamera bc5831747c Added extra clean round at the end of the powerfail test 2023-05-15 11:42:22 +02:00
Daniele Lacamera 588b3192d2 New simulator tests
- internal flash now mapped at 0xC0000000 (using `ARCH_FLASH_OFFSET`)
- wolfBoot binary included in internal flash (wolfboot partition is also
  now writeable to test self-updates and encryption)
- sim test app supports encryption (sets the key for test)
- added new target to store the update in the external flash
- external flash mapped to 0xD0000000
2023-05-15 11:13:38 +02:00
billphipps 106b78086a
Merge pull request #302 from dgarske/nxp_tpm
Support for NXP P1021 eSPI and TPM (and fixes for eLBC NAND)
2023-05-10 20:17:27 -04:00
David Garske 08e6a37ad7 Fix to use correct boot ROM entry in stage1 linker script. 2023-05-10 17:01:31 -07:00
David Garske 4e93027cb9 Fix execute bit 2023-05-10 16:55:01 -07:00
David Garske a5bb56599c Fix PIC for PowerPC. Must put `got2` into the flash region. 2023-05-10 16:52:24 -07:00
David Garske 28ee143a1b Update the new `spi_xfer` to include a "continue" flag to allow leaving the CS asserted. 2023-05-10 15:26:57 -07:00
David Garske 6f24981f03 Improvements to the clock calculation code (dynamic based on ratio). Remove execute bits on files. Make stage1 PIC. Disable L1/L2 for first stage. Add PLT/GOT to .data region. 2023-05-10 15:11:09 -07:00
David Garske 89b2303b87 Fix NXP T2080 build. 2023-05-09 09:49:51 -07:00
David Garske c2fbcecda1 Reduce first stage init code (don't relocate CCSRBAR or invalidate all TLB's). Improve udelay to use timebase. Fix L1 cache line sizes. Fix L2ADDR to enable all 256KB. Use `do_boot` not the jump to function pointer. Switch PPC test app linker script to use `WOLFBOOT_LOAD_ADDRESS`. 2023-05-08 17:42:14 -07:00
David Garske bd8d45e40f
Merge pull request #304 from jpbland1/preseal-compiled
add ability to compile preseal with no filesystem
2023-05-08 15:07:40 -07:00