mirror of https://github.com/wolfSSL/wolfBoot.git
89 lines
2.8 KiB
Plaintext
89 lines
2.8 KiB
Plaintext
# NXP LS1028A with SD card disk boot
|
|
#
|
|
# Same as nxp-ls1028a.config, but the signed application image is loaded
|
|
# from the SD card slot (eSDHC1 at 0x02140000) instead of XSPI NOR. The
|
|
# card is GPT (or MBR) partitioned; the signed image sits at offset 0 of
|
|
# the first two partitions (BOOT_PART_A / BOOT_PART_B, 0-based indexes
|
|
# into the partition table - same card layout as the T1040 eSDHC target).
|
|
# wolfBoot picks the slot with the higher version, verifies it and boots
|
|
# it from DDR (src/update_disk.c).
|
|
|
|
ARCH=AARCH64
|
|
TARGET=nxp_ls1028a
|
|
SIGN?=ECC256
|
|
HASH?=SHA256
|
|
DEBUG?=0
|
|
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
|
|
ELF?=1
|
|
|
|
# SD card disk boot (Freescale eSDHC driver, hal/nxp_esdhc.c)
|
|
DISK_SDCARD=1
|
|
# Upper bound for the unauthenticated image size read from disk
|
|
WOLFBOOT_RAMBOOT_MAX_SIZE?=0x1000000
|
|
# Boot slots: partition table indexes (0-based) and read chunk size
|
|
CFLAGS_EXTRA+=-DBOOT_PART_A=0 -DBOOT_PART_B=1
|
|
CFLAGS_EXTRA+=-DDISK_BLOCK_SIZE=0x8000
|
|
# do_boot keeps the MMU and caches on (ENETC coherency) and cleans from the
|
|
# entry point before the jump. Pin the clean length to the RAMBOOT window so
|
|
# it covers the area images are loaded into regardless of what
|
|
# WOLFBOOT_PARTITION_SIZE is set to. Note this cleans one span from the
|
|
# entry point: an ELF or FIT payload that relocates a segment outside this
|
|
# window would need its own cache maintenance.
|
|
CFLAGS_EXTRA+=-DWOLFBOOT_MMU_FLUSH_APP_SIZE=0x1000000
|
|
# eSDHC bring-up trace on the DUART console
|
|
#CFLAGS_EXTRA+=-DDEBUG_ESDHC
|
|
|
|
# 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. Matches the 16MB SD card slots; the sign
|
|
# tool bounds the image against this even though disk boot does not use
|
|
# the NOR partitions.
|
|
WOLFBOOT_PARTITION_SIZE?=0x1000000
|
|
|
|
# Location in Flash for Application Partition (unused for disk boot,
|
|
# kept for target.h consistency)
|
|
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x20100000
|
|
|
|
# Load the image to DDR, not the default OCRAM: OCRAM also holds
|
|
# wolfBoot's own .data/.bss/.stack and cannot hold a disk-sized image.
|
|
WOLFBOOT_LOAD_ADDRESS?=0x80100000
|
|
|
|
# Location in Flash for Update Partition
|
|
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x21100000
|
|
|
|
# Location of temporary sector used during updates
|
|
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x22100000
|
|
|
|
# DTS (Device Tree). The load address must sit above
|
|
# WOLFBOOT_LOAD_ADDRESS + WOLFBOOT_RAMBOOT_MAX_SIZE.
|
|
WOLFBOOT_LOAD_DTS_ADDRESS?=0x82000000
|
|
WOLFBOOT_DTS_BOOT_ADDRESS?=0x20F00000
|
|
WOLFBOOT_DTS_UPDATE_ADDRESS?=0x20F00000
|