@@ -2,20 +2,27 @@ OUTPUT_ARCH( "powerpc" )
22
33ENTRY( _reset )
44
5- /* On initial start, only a limited space(4k) is accessible.
6- * Code here bootstraps to enable access to other needed address spaces */
7- BOOTSTRAP_TLB = 0xEFFFF000;
5+ /* On initial start, only a limited space (4K) is accessible.
6+ * Code here bootstraps to enable access to other needed address spaces.
7+ * Boot code must be at the top of flash (last 4KB of bootloader partition).
8+ * Computed from FLASH region so it adapts to any board flash layout:
9+ * T2080 RDB (128MB @ 0xE8000000): 0xEFFFF000 / 0xEFFFFFFC
10+ * CW VPX3-152 (256MB @ 0xF0000000): 0xFFFFF000 / 0xFFFFFFFC */
11+ BOOTSTRAP_TLB = ORIGIN(FLASH) + LENGTH(FLASH) - 0x1000;
812
913/* Entry point where RCW directs code to execute from */
10- BOOTSTRAP_ENTRY = 0xEFFFFFFC ;
14+ BOOTSTRAP_ENTRY = ORIGIN (FLASH) + LENGTH (FLASH) - 0x4 ;
1115
1216MEMORY
1317{
1418 FLASH (rx) : ORIGIN = @WOLFBOOT_ORIGIN@, LENGTH = @BOOTLOADER_PARTITION_SIZE@
1519
1620 /* CPC as SRAM - 1MB (T2080 supports up to 2MB, using 1MB for P384 stack)
17- * Layout: .ramcode at bottom, stack grows down from top */
18- RAM (rwx) : ORIGIN = 0xF8F00000 , LENGTH = 0x100000
21+ * Layout: .ramcode at bottom, stack grows down from top
22+ * Address must match L2SRAM_ADDR in nxp_ppc.h:
23+ * T2080 RDB: 0xF8F00000
24+ * CW VPX3-152: 0xEE900000 (relocated to avoid 256MB flash VA overlap) */
25+ RAM (rwx) : ORIGIN = @L2SRAM_ADDR@, LENGTH = 0x100000
1926
2027 /* DDR - 2GB */
2128 DRAM (rwx) : ORIGIN = 0x00000000 , LENGTH = 0x7FFFFFFF
0 commit comments