Skip to content

Commit 1263e3e

Browse files
committed
Support for NXP T1040 RDB
1 parent 5222385 commit 1263e3e

File tree

21 files changed

+5241
-3389
lines changed

21 files changed

+5241
-3389
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ endif
269269
ifeq ($(TARGET),nxp_t1024)
270270
MAIN_TARGET:=factory_wstage1.bin
271271
endif
272+
ifeq ($(TARGET),nxp_t1040)
273+
MAIN_TARGET:=factory_wstage1.bin
274+
endif
272275

273276
ifeq ($(TARGET),sama5d3)
274277
MAIN_TARGET:=wolfboot.bin test-app/image_v1_signed.bin

arch.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ ifeq ($(ARCH),PPC)
691691
# Target-specific CPU flags
692692
ifeq ($(TARGET),nxp_t2080)
693693
CFLAGS+=-mcpu=e6500 -mno-altivec -mbss-plt
694-
else ifeq ($(TARGET),nxp_t1024)
694+
else ifneq ($(filter nxp_t1024 nxp_t1040,$(TARGET)),)
695695
CFLAGS+=-mcpu=e5500
696696
endif
697697

@@ -1030,8 +1030,8 @@ ifeq ($(ARCH),ARM_BE)
10301030
endif
10311031
endif
10321032

1033-
ifeq ($(TARGET),nxp_t1024)
1034-
# Power PC big endian
1033+
ifneq ($(filter nxp_t1024 nxp_t1040,$(TARGET)),)
1034+
# Power PC big endian (e5500 core, T1024 2-core / T1040 4-core)
10351035
ARCH_FLAGS=-mhard-float -mcpu=e5500
10361036
CFLAGS+=$(ARCH_FLAGS)
10371037
BIG_ENDIAN=1

config/examples/nxp-t1040.config

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# NXP QorIQ T1040 (4 core)
2+
3+
ARCH=PPC
4+
TARGET=nxp_t1040
5+
SIGN?=ECC384
6+
HASH?=SHA384
7+
IMAGE_HEADER_SIZE?=512
8+
DEBUG?=0
9+
DEBUG_UART?=1
10+
VTOR?=1
11+
CORTEX_M0?=0
12+
NO_ASM?=0
13+
EXT_FLASH?=0
14+
SPI_FLASH?=0
15+
NO_XIP?=0
16+
UART_FLASH?=0
17+
ALLOW_DOWNGRADE?=0
18+
NVM_FLASH_WRITEONCE?=0
19+
WOLFBOOT_VERSION?=0
20+
NO_MPU?=0
21+
SPMATH?=0
22+
SPMATHALL?=1
23+
RAM_CODE?=0
24+
DUALBANK_SWAP?=0
25+
WOLFTPM?=0
26+
ELF?=1
27+
DEBUG_ELF=0
28+
29+
# NOR Base Address (128MB NOR at 0xE8000000 - 0xEFFFFFFF)
30+
ARCH_FLASH_OFFSET?=0xE8000000
31+
32+
# Flash Sector Size (128KB)
33+
WOLFBOOT_SECTOR_SIZE=0x20000
34+
35+
# wolfBoot start address (same as T1024 - NOR top is 0xEFFFFFFF)
36+
WOLFBOOT_ORIGIN=0xEFF40000
37+
# wolfBoot partition size (custom)
38+
BOOTLOADER_PARTITION_SIZE=0xC0000
39+
40+
# Application Partition Size (15MB)
41+
WOLFBOOT_PARTITION_SIZE?=0xF00000
42+
# Location in Flash for Application Partition
43+
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xEE000000
44+
# Load Partition to RAM Address
45+
WOLFBOOT_LOAD_ADDRESS?=0x70000000
46+
47+
# Location in Flash for Update Partition
48+
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0xEEF00000
49+
50+
# Location of temporary sector used during updates
51+
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xE80F0000
52+
53+
# Stage 1 loader settings (16KB)
54+
WOLFBOOT_STAGE1_SIZE=0x4000
55+
# Location in Flash for stage 1 loader (XIP from boot ROM)
56+
WOLFBOOT_STAGE1_FLASH_ADDR=0xEFFFC000
57+
# Address in RAM to load wolfBoot (end of DDR at 2GB-1MB for 32-bit addressing)
58+
WOLFBOOT_STAGE1_LOAD_ADDR=0x7FF00000
59+
60+
# DTS (Device Tree)
61+
WOLFBOOT_DTS_BOOT_ADDRESS?=0xE8800000
62+
WOLFBOOT_DTS_UPDATE_ADDRESS?=0xE8820000
63+
# DTS Load to RAM Address
64+
WOLFBOOT_LOAD_DTS_ADDRESS?=0x7F100000
65+
66+
# Load to RAM before hash and verify
67+
CFLAGS_EXTRA+=-DWOLFBOOT_USE_RAMBOOT

0 commit comments

Comments
 (0)