Skip to content

Commit a56c70e

Browse files
dgarskedanielinux
authored andcommitted
Support for NXP T1040 RDB
1 parent 7458d6d commit a56c70e

21 files changed

Lines changed: 5241 additions & 3389 deletions

Makefile

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

274277
ifeq ($(TARGET),sama5d3)
275278
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
@@ -695,7 +695,7 @@ ifeq ($(ARCH),PPC)
695695
# Target-specific CPU flags
696696
ifeq ($(TARGET),nxp_t2080)
697697
CFLAGS+=-mcpu=e6500 -mno-altivec -mbss-plt
698-
else ifeq ($(TARGET),nxp_t1024)
698+
else ifneq ($(filter nxp_t1024 nxp_t1040,$(TARGET)),)
699699
CFLAGS+=-mcpu=e5500
700700
endif
701701

@@ -1034,8 +1034,8 @@ ifeq ($(ARCH),ARM_BE)
10341034
endif
10351035
endif
10361036

1037-
ifeq ($(TARGET),nxp_t1024)
1038-
# Power PC big endian
1037+
ifneq ($(filter nxp_t1024 nxp_t1040,$(TARGET)),)
1038+
# Power PC big endian (e5500 core, T1024 2-core / T1040 4-core)
10391039
ARCH_FLAGS=-mhard-float -mcpu=e5500
10401040
CFLAGS+=$(ARCH_FLAGS)
10411041
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)