-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support for NXP LS1028A. Booting into OCRAM app. Updates to A…
…RMv8 startup.
- Loading branch information
Showing
17 changed files
with
2,803 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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 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,65 @@ | ||
ARCH=AARCH64 | ||
TARGET=nxp_ls1028a | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
DEBUG?=1 | ||
DEBUG_UART?=1 | ||
VTOR?=0 | ||
CORTEX_M0?=0 | ||
NO_ASM?=0 | ||
EXT_FLASH?=1 | ||
SPI_FLASH?=0 | ||
## Force app to be copied into ram | ||
NO_XIP?=1 | ||
UART_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=0 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
NO_MPU?=0 | ||
SPMATH?=1 | ||
RAM_CODE?=0 | ||
DUALBANK_SWAP?=0 | ||
PKA?=0 | ||
|
||
WOLFTPM=1 | ||
|
||
MEASURED_BOOT?=0 | ||
MEASURED_PCR_A?=3 | ||
|
||
WOLFBOOT_TPM_KEYSTORE?=1 | ||
WOLFBOOT_TPM_KEYSTORE_NV_INDEX?=25166336 | ||
WOLFBOOT_TPM_POLICY_NV_INDEX?=25166337 | ||
WOLFBOOT_TPM_PCR_INDEX?=16 | ||
|
||
# NOR Base Address | ||
ARCH_FLASH_OFFSET?=0x20000000 | ||
|
||
# Flash Sector Size (128 KB) | ||
WOLFBOOT_SECTOR_SIZE=0x20000 | ||
|
||
# wolfBoot start address | ||
WOLFBOOT_ORIGIN=0x20020000 | ||
|
||
# wolfBoot partition size | ||
BOOTLOADER_PARTITION_SIZE=0x20000 | ||
|
||
# Application Partition size | ||
WOLFBOOT_PARTITION_SIZE?=0x20000 | ||
|
||
# Location in Flash for Application Partition | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x20040000 | ||
|
||
# Load Partition to RAM Address | ||
WOLFBOOT_LOAD_ADDRESS?=0x18020100 | ||
|
||
# Location in Flash for Update Partition | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x20060000 | ||
|
||
# Location of temporary sector used during updates | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x20080000 | ||
|
||
# DTS (Device Tree) | ||
WOLFBOOT_LOAD_DTS_ADDRESS?=0x80000000 | ||
WOLFBOOT_DTS_BOOT_ADDRESS?=0x20F00000 | ||
WOLFBOOT_DTS_UPDATE_ADDRESS?=0x20F00000 |
This file contains 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,55 @@ | ||
ARCH=AARCH64 | ||
TARGET=nxp_ls1028a | ||
SIGN?=ECC256 | ||
HASH?=SHA256 | ||
DEBUG?=1 | ||
DEBUG_UART?=1 | ||
VTOR?=0 | ||
CORTEX_M0?=0 | ||
NO_ASM?=0 | ||
EXT_FLASH?=1 | ||
SPI_FLASH?=0 | ||
## Force app to be copied into ram | ||
NO_XIP?=1 | ||
UART_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=0 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
NO_MPU?=0 | ||
SPMATH?=1 | ||
RAM_CODE?=0 | ||
DUALBANK_SWAP?=0 | ||
PKA?=0 | ||
|
||
# NOR Base Address | ||
ARCH_FLASH_OFFSET?=0x20000000 | ||
|
||
# Flash Sector Size (128 KB) | ||
WOLFBOOT_SECTOR_SIZE=0x20000 | ||
|
||
# wolfBoot start address | ||
WOLFBOOT_ORIGIN=0x20020000 | ||
|
||
# wolfBoot partition size | ||
BOOTLOADER_PARTITION_SIZE=0x20000 | ||
|
||
# Application Partition size | ||
WOLFBOOT_PARTITION_SIZE?=0x20000 | ||
|
||
# Location in Flash for Application Partition | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x20040000 | ||
|
||
# Load Partition to RAM Address | ||
WOLFBOOT_LOAD_ADDRESS?=0x18020100 | ||
|
||
# Location in Flash for Update Partition | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x20060000 | ||
|
||
# Location of temporary sector used during updates | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x20080000 | ||
|
||
# DTS (Device Tree) | ||
WOLFBOOT_LOAD_DTS_ADDRESS?=0x80000000 | ||
WOLFBOOT_DTS_BOOT_ADDRESS?=0x20F00000 | ||
WOLFBOOT_DTS_UPDATE_ADDRESS?=0x20F00000 |
This file contains 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 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 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,111 @@ | ||
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") | ||
OUTPUT_ARCH(aarch64) | ||
ENTRY(_vector_table) | ||
|
||
MEMORY | ||
{ | ||
/*The flash address range on LS1028A RDB is 0x20000000 - 0x23FFFFFF.*/ | ||
FLASH (rx) : ORIGIN = @WOLFBOOT_ORIGIN@, LENGTH = @BOOTLOADER_PARTITION_SIZE@ | ||
|
||
/* DDR4 - 2GB */ | ||
DRAM (rwx) : ORIGIN = 0x80001000 , LENGTH = 0xBFFFFFFF | ||
|
||
/* OCRAM 128K for startup RAM */ | ||
OCRAM (rwx) : ORIGIN = 0x18000000, LENGTH = 128K | ||
} | ||
|
||
SECTIONS | ||
{ | ||
PROVIDE (_DDR_ADDRESS = 0x80001000); | ||
PROVIDE (_OCRAM_ADDRESS = 0x18000000); | ||
PROVIDE (_FLASH_ADDRESS = @WOLFBOOT_ORIGIN@); | ||
PROVIDE (_CORE_NUMBER = 0); | ||
PROVIDE (_MEMORY_SIZE = LENGTH(OCRAM)); | ||
PROVIDE (_FLASH_SIZE = LENGTH(FLASH)); | ||
PROVIDE (STACK_SIZE = 20K); | ||
|
||
.boot : | ||
{ | ||
PROVIDE(_vector_table = .); | ||
._vector_table = .; | ||
. = ALIGN(0x800); | ||
KEEP(*(.vector_table)) | ||
KEEP(*(.boot*)) | ||
} > OCRAM | ||
|
||
|
||
/* Read-only sections, merged into text segment: */ | ||
.interp : { *(.interp) } | ||
.note.gnu.build-id : { *(.note.gnu.build-id) } | ||
.hash : { *(.hash) } | ||
.gnu.hash : { *(.gnu.hash) } | ||
.dynsym : { *(.dynsym) } | ||
.dynstr : { *(.dynstr) } | ||
.gnu.version : { *(.gnu.version) } | ||
.gnu.version_d : { *(.gnu.version_d) } | ||
.gnu.version_r : { *(.gnu.version_r) } | ||
.rela.init : { *(.rela.init) } | ||
.rela.fini : { *(.rela.fini) } | ||
.rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } | ||
.rela.data.rel.ro : { *(.rela.data.rel.ro .rela.data.rel.ro.* .rela.gnu.linkonce.d.rel.ro.*) } | ||
.rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } | ||
.rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) } | ||
.rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) } | ||
.rela.ctors : { *(.rela.ctors) } | ||
.rela.dtors : { *(.rela.dtors) } | ||
.rela.got : { *(.rela.got) } | ||
.rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } | ||
|
||
.text : | ||
{ | ||
_start_text = .; | ||
*(.text*) | ||
*(.note.*) | ||
. = ALIGN(8); | ||
_end_text = .; | ||
} > OCRAM | ||
|
||
.rodata : | ||
{ | ||
_rodata_start = .; | ||
*(.rodata) | ||
*(.rodata.*) | ||
. = ALIGN(8); | ||
_rodata_end = .; | ||
} > OCRAM | ||
|
||
PROVIDE(_stored_data = .); | ||
|
||
.data : | ||
{ | ||
_start_data = .; | ||
KEEP(*(.data .data.* .gnu.linkonce.d.*)) | ||
. = ALIGN(8); | ||
KEEP(*(.ramcode)) | ||
. = ALIGN(8); | ||
_end_data = .; | ||
} > OCRAM | ||
|
||
.bss : | ||
{ | ||
_start_bss = .; | ||
__bss_start__ = .; | ||
*(.dynbss) | ||
*(.bss .bss.* .gnu.linkonce.b.*) | ||
*(COMMON) | ||
. = ALIGN(8); | ||
_end_bss = .; | ||
__bss_end__ = .; | ||
_end = .; | ||
} > OCRAM | ||
|
||
. = ALIGN(16); | ||
.stack : | ||
{ | ||
_start_stack = .; | ||
. = . + STACK_SIZE; | ||
_end_stack = .; | ||
} > OCRAM | ||
|
||
PROVIDE(_stack_base = .); | ||
} |
Oops, something went wrong.