mirror of https://github.com/wolfSSL/wolfBoot.git
101 lines
3.4 KiB
Plaintext
101 lines
3.4 KiB
Plaintext
# NXP QorIQ T1040 (4 core)
|
|
|
|
ARCH=PPC
|
|
TARGET=nxp_t1040
|
|
SIGN?=ECC384
|
|
HASH?=SHA384
|
|
IMAGE_HEADER_SIZE?=512
|
|
DEBUG?=0
|
|
DEBUG_UART?=1
|
|
VTOR?=1
|
|
CORTEX_M0?=0
|
|
NO_ASM?=0
|
|
EXT_FLASH?=0
|
|
SPI_FLASH?=0
|
|
NO_XIP?=0
|
|
UART_FLASH?=0
|
|
ALLOW_DOWNGRADE?=0
|
|
NVM_FLASH_WRITEONCE?=0
|
|
WOLFBOOT_VERSION?=0
|
|
NO_MPU?=0
|
|
SPMATH?=0
|
|
SPMATHALL?=1
|
|
RAM_CODE?=0
|
|
DUALBANK_SWAP?=0
|
|
WOLFTPM?=0
|
|
ELF?=1
|
|
DEBUG_ELF=0
|
|
|
|
# NOR Base Address (128MB NOR at 0xE8000000 - 0xEFFFFFFF)
|
|
ARCH_FLASH_OFFSET?=0xE8000000
|
|
|
|
# Flash Sector Size (128KB)
|
|
WOLFBOOT_SECTOR_SIZE=0x20000
|
|
|
|
# wolfBoot start address (same as T1024 - NOR top is 0xEFFFFFFF)
|
|
WOLFBOOT_ORIGIN=0xEFF40000
|
|
# wolfBoot partition size (custom)
|
|
BOOTLOADER_PARTITION_SIZE=0xC0000
|
|
|
|
# Application Partition Size (15MB)
|
|
WOLFBOOT_PARTITION_SIZE?=0xF00000
|
|
# Location in Flash for Application Partition
|
|
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xEE000000
|
|
# Load Partition to RAM Address
|
|
WOLFBOOT_LOAD_ADDRESS?=0x70000000
|
|
|
|
# Location in Flash for Update Partition
|
|
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0xEEF00000
|
|
|
|
# Location of temporary sector used during updates
|
|
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xE80F0000
|
|
|
|
# Stage 1 loader settings (16KB)
|
|
WOLFBOOT_STAGE1_SIZE=0x4000
|
|
# Location in Flash for stage 1 loader (XIP from boot ROM)
|
|
WOLFBOOT_STAGE1_FLASH_ADDR=0xEFFFC000
|
|
# Address in RAM to load wolfBoot (end of DDR at 2GB-1MB for 32-bit addressing)
|
|
WOLFBOOT_STAGE1_LOAD_ADDR=0x7FF00000
|
|
|
|
# DTS (Device Tree)
|
|
WOLFBOOT_DTS_BOOT_ADDRESS?=0xE8800000
|
|
WOLFBOOT_DTS_UPDATE_ADDRESS?=0xE8820000
|
|
# DTS Load to RAM Address
|
|
WOLFBOOT_LOAD_DTS_ADDRESS?=0x7F100000
|
|
|
|
# Load to RAM before hash and verify
|
|
CFLAGS_EXTRA+=-DWOLFBOOT_USE_RAMBOOT
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# wolfIP network test in the test-app (optional)
|
|
# -----------------------------------------------------------------------------
|
|
# Compiles wolfIP + the NXP QorIQ FMan ethernet port (mEMAC/MDIO, FM1@DTSEC1)
|
|
# into the test-app and runs a board-side network test. The T1040 (e5500)
|
|
# reuses the same nxp_fman driver as the T2080; default CCSRBAR is the reset
|
|
# value 0xFE000000 (no BOARD_CW_VPX3152 relocate). Build the app FLAT and
|
|
# 32-bit (ELF=0) at a low load address (the elf32 load path is unused). wolfIP
|
|
# objects are built -fno-plt -D_FORTIFY_SOURCE=0 (no PLT/GOT runtime fixup).
|
|
# Point WOLFBOOT_LIB_WOLFIP at a wolfIP checkout (or add it as lib/wolfip).
|
|
#ENABLE_WOLFIP=1
|
|
#WOLFBOOT_LIB_WOLFIP=../lib/wolfip
|
|
#ELF=0
|
|
#WOLFBOOT_LOAD_ADDRESS=0x100000
|
|
# PHY wiring. nxp_fman default is FM1@DTSEC1 SGMII, PHY probed at addr 0x2.
|
|
# On the T1040D4RDB the cabled front port "ETH0" is FM1@DTSEC4 (ethernet@e6000),
|
|
# RGMII, Realtek RTL8211 PHY (id 0x001CC915) at MDIO addr 4 -- hardware-verified
|
|
# (DHCP lease, WOLFIP_TEST: PASS). DTSEC1/2 are fixed-link to the on-board L2
|
|
# switch (no PHY). Uncomment for the RDB ETH0 port:
|
|
#CFLAGS_EXTRA+=-DNXP_FMAN_MEMAC_IDX=4
|
|
#CFLAGS_EXTRA+=-DNXP_FMAN_IF_SGMII=0
|
|
#CFLAGS_EXTRA+=-DNXP_FMAN_PHY_ADDR=4
|
|
# To find the cabled port on a different board, enable the MDIO bus scan: it
|
|
# prints ID1/ID2/BSR for every address after init; the one with link=UP (BSR
|
|
# bit 2) is the wired port. Diagnostic only.
|
|
#CFLAGS_EXTRA+=-DWOLFIP_PHY_SCAN
|
|
# Test mode (neither flag = acquire a DHCP lease and stop):
|
|
# WOLFBOOT_TEST_TFTP=1 RRQ a file from a host tftpd, report size+checksum
|
|
# (set CFLAGS_EXTRA TFTP_EXPECT_SIZE/TFTP_EXPECT_SUM to verify)
|
|
# WOLFIP_SPEED_TEST=1 TCP throughput server on port 9 (drive with nc/dd/pv)
|
|
#WOLFBOOT_TEST_TFTP=1
|
|
#WOLFIP_SPEED_TEST=1
|