Repository navigation
Add wolfBoot target for NXP S32G2 (S32G274A GoldBox) #984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dgarske
wants to merge
9
commits into
wolfSSL:master
Choose a base branch
from
dgarske:s32g2_goldbox
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e8297b3
Fix the disk updater build with ALLOW_DOWNGRADE=1
dgarske a13a9b1
Disable _FORTIFY_SOURCE for AArch64 so Linux GNU toolchains do not em…
dgarske e32bdea
Build the AArch64 D-cache range routines for targets without the EL2 …
dgarske 1d4c0a8
Publish the booted disk slot in the i.MX 8QuadMax device tree fixup
dgarske bbd2f40
Add fs_map to locate a file range on the media for the disk filesyste…
dgarske b4fd2d9
Extend disk boot confirmation to FAT32 and ext4 file slots
dgarske ecda17a
Report whether a FIT ramdisk was loaded
dgarske 854bf0f
Add a minimal PSCI 1.1 runtime for firmware that stays resident at EL3
dgarske 199faab
Add NXP S32G2 (S32G274A GoldBox) target: wolfBoot as the Boot ROM ima…
dgarske File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # NXP S32G2 GoldBox (S32G-VNP-GLDBOX, S32G274A-RDB2) - wolfBoot booting from | ||
| # the 64 MB QuadSPI NOR, with the A/B image partitions in the same NOR. | ||
| # Build, NOR layout and programming: docs/Targets.md. | ||
| # | ||
| # Never pass CFLAGS_EXTRA= on the command line - it replaces, not appends. | ||
| ARCH=AARCH64 | ||
| TARGET=s32g2 | ||
| S32G2_QSPI=1 | ||
| SIGN?=ECC384 | ||
| HASH?=SHA384 | ||
| DEBUG?=1 | ||
| DEBUG_UART?=1 | ||
| SPMATH?=1 | ||
| NO_XIP?=1 | ||
| EXT_FLASH?=1 | ||
| # The HAL sets up the GICv3 itself (hal/s32g2.c); skip the generic GICv2 init. | ||
| SKIP_GIC_INIT?=1 | ||
| GZIP?=1 | ||
| DISK_SDCARD?=0 | ||
| # The flash's 16-byte ECC units program once per erase: keep the partition | ||
| # state as a journal, in 64 KB sectors (docs/Targets.md). | ||
| NVM_FLASH_JOURNAL?=1 | ||
| WOLFBOOT_SECTOR_SIZE?=0x10000 | ||
| WOLFBOOT_PARTITION_SIZE?=0x1000000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x100000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x1100000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x2100000 | ||
| # Separate DTB partitions are not used (the FIT carries the DTB) but the | ||
| # RAM-boot flow needs them defined; they sit after the swap sector. | ||
| WOLFBOOT_DTS_BOOT_ADDRESS?=0x2110000 | ||
| WOLFBOOT_DTS_UPDATE_ADDRESS?=0x2120000 | ||
|
|
||
| WOLFBOOT_RAMBOOT_MAX_SIZE=0x4000000 | ||
| WOLFBOOT_LOAD_ADDRESS?=0xA0000000 | ||
| WOLFBOOT_LOAD_DTS_ADDRESS?=0xA5000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # NXP S32G2 GoldBox (S32G-VNP-GLDBOX, S32G274A-RDB2) - wolfBoot as the Boot | ||
| # ROM's application image in SRAM, in place of U-Boot. The signed FIT is read | ||
| # from a FAT32 partition of the SD card, or of the eMMC with DISK_EMMC=1 | ||
| # DISK_SDCARD=0. Build, DDR blob and card layout: docs/Targets.md. | ||
| # | ||
| # Never pass CFLAGS_EXTRA= on the command line - it replaces, not appends. | ||
| ARCH=AARCH64 | ||
| TARGET=s32g2 | ||
| SIGN?=ECC384 | ||
| HASH?=SHA384 | ||
| DEBUG?=1 | ||
| DEBUG_UART?=1 | ||
| SPMATH?=1 | ||
| NO_XIP?=1 | ||
| # The HAL sets up the GICv3 itself (hal/s32g2.c); skip the generic GICv2 init. | ||
| SKIP_GIC_INIT?=1 | ||
| WOLFBOOT_SECTOR_SIZE?=0x1000 | ||
| WOLFBOOT_NO_PARTITIONS=1 | ||
| GZIP?=1 | ||
| DISK_SDCARD?=1 | ||
| DISK_FS?=fat32 | ||
|
|
||
| # A/B slots: two files on the third partition, with the boot confirmation | ||
| # state in the last 8 bytes of each file. | ||
| DISK_BOOT_CONFIRM?=1 | ||
| CFLAGS_EXTRA+=-DBOOT_PART_A=2 | ||
| CFLAGS_EXTRA+=-DBOOT_PART_B=2 | ||
| CFLAGS_EXTRA+=-DBOOT_FILE_A='"/fitImage_a.bin"' | ||
| CFLAGS_EXTRA+=-DBOOT_FILE_B='"/fitImage_b.bin"' | ||
|
|
||
| WOLFBOOT_RAMBOOT_MAX_SIZE=0x4000000 | ||
| WOLFBOOT_LOAD_ADDRESS?=0xA0000000 | ||
| WOLFBOOT_LOAD_DTS_ADDRESS?=0xA5000000 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.