Commit Graph

2087 Commits (60b208e5e136efee6baad409e4f78a46d1d95b2d)

Author SHA1 Message Date
Brett Nicholas 60b208e5e1
Merge pull request #562 from danielinux/update-flash-elf
Scatter/gather ELF files according to segments `paddr`
2025-04-16 07:14:22 -06:00
Daniele Lacamera e7f151db0d Fixed: unused variable 2025-04-16 09:09:43 +02:00
Daniele Lacamera 02c2152937 Attempt to update renode base images 2025-04-15 17:29:24 +02:00
Daniele Lacamera 11b8a684b4 Removed elf32bit build test 2025-04-15 17:19:26 +02:00
Daniele Lacamera 71f24248cf Reviewers requests
- Removed stray printfs from elf.c
- Updated test-configs.yml to include build tests for config files
2025-04-14 18:33:15 +02:00
Daniele Lacamera c841113ea7 Fixed warnings in test build 2025-04-11 16:19:43 +02:00
Daniele Lacamera 5f8b79a3c8 Added test for scattered ELF + validation via sim 2025-04-11 16:06:59 +02:00
Daniele Lacamera ea0b4fb935 Added missing files + cosmetics as per review
- Added missing `test-app/app_sim_scattered.c`
- Added missing `test-app/sim_scattered.ld`
- Fixed comments at the end of define blocks for consistency
- Removed unused constants as indicated
2025-04-11 15:55:05 +02:00
Daniele Lacamera 9c3e86241a Some of the fixes requested during review:
- ARCH_FLASH_OFFSET only used in simulation (dynamic 'base' address)
- Fixed the DISABLE_BACKUP case
- renamed define to WOLFBOOT_ELF_SCATTERED
2025-04-11 15:55:05 +02:00
Daniele Lacamera 9d7084c6f5
fixed misleading comment
Spotted by copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-08 08:46:31 +02:00
Daniele Lacamera d142426392 Fixed 'backup disabled' case without ELF_SCATTERED 2025-04-07 17:41:38 +02:00
Daniele Lacamera 386a172587 Fix regressions detected by github workflows 2025-04-07 17:10:37 +02:00
Daniele Lacamera 50725b38d9 Added example config files for sim, sim32 + ELF sg 2025-04-07 12:19:26 +02:00
Daniele Lacamera d9104ec151 Fix scatter-gather ELF 2025-04-07 12:19:04 +02:00
Daniele Lacamera 11091944d7 ELF_SCATTERED: added sha check (WIP) 2025-04-04 19:15:04 +02:00
Daniele Lacamera e7cd340ebf Moved elf parsing/scattering to elf.c, WIP sim 2025-04-03 17:12:42 +02:00
Brett Nicholas fb6ca4378f WIP: structure is there, but some major issues. See WOLFBOOT-ELF-LOADER-GAPS.md and video 2025-04-03 09:53:00 +02:00
Brett Nicholas 7caf579ba0 formatting 2025-04-03 09:53:00 +02:00
Brett Nicholas 4f6921df86 WIP: first stab at elf loading impl 2025-04-03 09:53:00 +02:00
Brett Nicholas 9510360de9 AI WIP 2025-04-03 09:53:00 +02:00
David Garske fec31c5cf6
Merge pull request #561 from danielinux/build-cmake-test
Fixes for CMake builds
2025-03-28 06:50:51 -07:00
Daniele Lacamera 0901bb4c92 Removed duplicate flag 2025-03-28 11:30:07 +01:00
Daniele Lacamera 2b20782652 Added support for more targets, added more tests 2025-03-28 11:00:07 +01:00
David Garske 574f68b984
Merge pull request #548 from danielinux/encrypt_cache_in_stack
Move encrypt cache to stack
2025-03-27 11:07:13 -07:00
Daniele Lacamera b8908ef8aa Fixed typo in workflow 2025-03-27 18:32:06 +01:00
Daniele Lacamera 068f1acfc9 Added missing symbols, change fix for double def 2025-03-27 18:21:25 +01:00
Daniele Lacamera cb9d1b0b28 Avoid double definition of WOLFBOOT_KEYTOOLS 2025-03-27 18:12:39 +01:00
Daniele Lacamera eacb183751 Fixed workflow 2025-03-27 18:04:36 +01:00
Daniele Lacamera c4f0dec606 Added cmake build test to github actions 2025-03-27 15:50:09 +01:00
David Garske d13f3260ab Documentation cleanups. Renamed zynqmp CSU `PKA` to `HW_SHA3`. Disabled CSU PUF code, since it is only supported with eFuses (it cannot be used adhoc). 2025-03-26 09:14:57 +01:00
David Garske 5e9cc8c603 Minor documentation fixes. 2025-03-26 09:14:57 +01:00
David Garske 64c74b8233 Progress on RoT. Creation of PUF, Regeneration and use of it for AES Key wrapping. 2025-03-26 09:14:57 +01:00
David Garske 79437e5865 Fixes for PUF ROT 2025-03-26 09:14:57 +01:00
David Garske 851130293c Added Xilinx UltraScale+ MPSoC CSU Support CSU support.
Enabled support for offloading SHA3 hashing to CSU hardware using PKA=1.
Added support for enabling JTAG at runtime if CSU_DEBUG is set. Requires patching PMUFW to enable register access. See: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/2587197506/Zynq+UltraScale+MPSoC+JTAG+Enable+in+U-Boot
2025-03-26 09:14:57 +01:00
David Garske 2d4d897acb
Merge pull request #544 from miyazakh/fix_raspi3
Revert simple start-up for Raspi3b
2025-03-20 16:16:56 -07:00
David Garske f9b92cb6a9
Merge pull request #558 from bigbrett/aurix-ide-fixes
quick fixes for AURIX IDE
2025-03-17 11:19:09 -07:00
Brett Nicholas f3957d0b58 quick fixes for AURIX IDE 2025-03-13 09:57:00 -06:00
Daniele Lacamera 076cd1d6c4 Fix for unit test failing 2025-03-04 18:20:46 +01:00
Daniele Lacamera 07ef67bd3e Fix typos 2025-03-02 00:35:00 +01:00
Daniele Lacamera a195efe608 Avoid enforcing alignment on stack for IAR 2025-02-27 16:46:26 +01:00
David Garske 44f987ccce Add note about git submodules when cloning from GitHub and trying to build. Thank you #554. 2025-02-25 22:18:34 +01:00
Patrik Dahlström 6a661d77bf stm32f1: add short description to Targets.md
Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
2025-02-21 18:41:04 +01:00
Patrik Dahlström 84ac2c799e stm32f1: add github build test
Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
2025-02-21 18:41:04 +01:00
Patrik Dahlström 7f7252470b stm32f103: add example config
Config based on the STM32F4 ditto.

Booting takes about 6 seconds and update around 15.

Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
2025-02-21 18:41:04 +01:00
Patrik Dahlström 2f64090c49 stm32f103: add test application
The test application used during development of STM32F103 support. If
booting version 1 of the software, trigger an update. If running ver. 2,
all is good.

Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
2025-02-21 18:41:04 +01:00
Patrik Dahlström 523051331e Add STM32F103 (Blue Pill) support
The Blue Pill board is typically fitted with a STM32F103C8T6, but
reports online seem to indicate that it sometimes can come with its
bigger sibling the STM32F103C8TB as is the case with my board.

This patch adds support for all low- to medium-density STM32F103
devices. All of these devices have their flash divided in 1 KB pages, up
to 128 KB. The high-density and connectivity line of devices, sometimes
called XL devices, use 2 KB pages and are not supported.

Similar to the STM32F4 support, the code will spin up the PLL for
maximum speed during init and turn it off just before booting the
application. the maxium speed is 72 MHz.

Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
2025-02-21 18:41:04 +01:00
David Garske b9a39580d4
Merge pull request #551 from danielinux/mcxw71
Added support for NXP MCX W71
2025-02-20 07:31:01 -08:00
Daniele Lacamera ea79b86fb1 Added comment in test-app 2025-02-20 16:20:05 +01:00
Daniele Lacamera 9b4278265e Fixes to hal after review 2025-02-20 16:18:40 +01:00
Daniele Lacamera c00fe36fc0 Fixed LED mapping for mcxw71 in Targets.md 2025-02-20 13:14:39 +01:00