[Feature][ZXW-130]merge P50U02 version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/boot/common/src/loader/drivers/image.c b/boot/common/src/loader/drivers/image.c
index 09c296a..4614eb2 100755
--- a/boot/common/src/loader/drivers/image.c
+++ b/boot/common/src/loader/drivers/image.c
@@ -222,7 +222,7 @@
 	uint32_t uiPageSize = 0;
 
 	uint32_t uiImgHdrSizeOld = sizeof(image_header_t);
-	uint32_t uiImgHdrSizeNew = sizeof(sImageHeader);
+	uint32_t uiImgHdrSizeNew = sizeof(sImageNewHeader);
 
 	uint32_t uiUBootSize = 0;
 	uint32_t uiUBootLoadAddr = 0;
@@ -329,7 +329,7 @@
 	writel(remap,0x140000);
 
 	/*3¡¢½âÎöM0µÄ°æ±¾Í·£¬»ñÈ¡ÔËÐеØÖ·ÒÔ¼°´óС*/
-	header = (image_header_t *)CONFIG_SYS_SDRAM_TEMP_BASE;
+	header = (image_header_t *)(CONFIG_SYS_SDRAM_TEMP_BASE + sizeof(sImageNewHeader));
 	m0_size = ___htonl(header->ih_size);    /* m0.bin */
 	m0_load_addr = ___htonl(header->ih_load);
 	*m0_entry_point = ___htonl(header->ih_ep);   
@@ -340,7 +340,7 @@
 	}
 
 	/*4¡¢½«M0µÄ°æ±¾´ÓIRAM0¿½±´µ½load_addr*/
-	memcpy(m0_load_addr, CONFIG_SYS_SDRAM_TEMP_BASE + image_header_size, m0_size); 
+	memcpy(m0_load_addr, CONFIG_SYS_SDRAM_TEMP_BASE + sizeof(sImageNewHeader)+ image_header_size, m0_size); 
 
 	/*5¡¢ÐÞ¸ÄIRAM±ê¼Ç£¬Ê¹BOOT¼ÌÐøÍùÏÂÖ´ÐÐ*/
 	writel(0, M0_IMAGE_READY_FLAG_ADDR);