Browse Source

u-boot: config: Setting the correct ivt values

ivt base address value is computed as follows

hdr_base = entry_point – sizeof(struct imx_header);

However the value is misscalculated due to:
- the entry point is the same as the CONFIG_SYS_TEXT_BASE and
  originally has the value of 0x3f008000

- the size of the imx_header is altered when holding the attribute
  to keep it aligned to 4K

This patch moves the CONFIG_SYS_TEXT_BASE to 0x3f000800 and removes
the attribute to reflect the correct values in the ivt base address.

Signed-off-by: Juan Gutierrez <b44802@freescale.com>
Juan Gutierrez 11 years ago
parent
commit
e7363f5a86
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/configs/vf610twr.h
  2. 1 1
      tools/imximage.h

+ 1 - 1
include/configs/vf610twr.h

@@ -126,7 +126,7 @@
 #define CONFIG_BOOTDELAY		0
 
 #define CONFIG_LOADADDR			0x3f400000
-#define CONFIG_SYS_TEXT_BASE		0x3f008000
+#define CONFIG_SYS_TEXT_BASE		0x3f000800
 
 /*
 #define CONFIG_EXTRA_ENV_SETTINGS \

+ 1 - 1
tools/imximage.h

@@ -165,7 +165,7 @@ struct imx_header {
 		imx_header_v2_t hdr_v2;
 	} header;
 	uint32_t flash_offset;
-} __attribute__((aligned(4096)));
+};// __attribute__((aligned(4096)));
 
 typedef void (*set_dcd_val_t)(struct imx_header *imxhdr,
 					char *name, int lineno,