summaryrefslogtreecommitdiff
path: root/board/freescale/mx53_smd
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/mx53_smd')
-rw-r--r--board/freescale/mx53_smd/flash_header.S2
-rw-r--r--board/freescale/mx53_smd/u-boot.lds1
2 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/mx53_smd/flash_header.S b/board/freescale/mx53_smd/flash_header.S
index 0ca3b85..b451edc 100644
--- a/board/freescale/mx53_smd/flash_header.S
+++ b/board/freescale/mx53_smd/flash_header.S
@@ -49,7 +49,7 @@ app_code_csf: .word 0x0
reserv2: .word 0x0
boot_data: .word 0x77800000
-image_len: .word _end - TEXT_BASE
+image_len: .word _end_of_copy - TEXT_BASE + CONFIG_FLASH_HEADER_OFFSET
plugin: .word 0x0
dcd_hdr: .word 0x40A001D2 /* Tag=0xD2, Len=51*8 + 4 + 4, Ver=0x40 */
diff --git a/board/freescale/mx53_smd/u-boot.lds b/board/freescale/mx53_smd/u-boot.lds
index 560878e..c6cb751 100644
--- a/board/freescale/mx53_smd/u-boot.lds
+++ b/board/freescale/mx53_smd/u-boot.lds
@@ -67,6 +67,7 @@ SECTIONS
__u_boot_cmd_end = .;
. = ALIGN(4);
+ _end_of_copy = .; /* end_of ROM copy code here */
__bss_start = .;
.bss : { *(.bss) }
_end = .;