From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Wed, 18 May 2011 10:19:58 +0530 Subject: [U-Boot] [PATCH v2 18/22] armv7: embed u-boot size within u-boot for use from SPL In-Reply-To: <20110516135644.28e07e2c@schlenkerla.am.freescale.net> References: <1298893591-17636-1-git-send-email-aneesh@ti.com> <1305472900-4004-19-git-send-email-aneesh@ti.com> <20110516135644.28e07e2c@schlenkerla.am.freescale.net> Message-ID: <4DD34FF6.6020403@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Scott, On Tuesday 17 May 2011 12:26 AM, Scott Wood wrote: > On Sun, 15 May 2011 20:51:36 +0530 > Aneesh V wrote: > >> Embed the u-boot flash image size at a known offset from the >> start of u-boot so that SPL can use it while loading u-boot >> from a non-XIP media. >> >> Signed-off-by: Aneesh V >> V2: >> * Removed the linker script label '__flash_image_end' and its usage. >> Instead '_end' is used now >> --- >> arch/arm/cpu/armv7/start.S | 6 +++++- >> 1 files changed, 5 insertions(+), 1 deletions(-) >> >> diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S >> index f92c6d9..f676d7d 100644 >> --- a/arch/arm/cpu/armv7/start.S >> +++ b/arch/arm/cpu/armv7/start.S >> @@ -64,8 +64,12 @@ _pad: .word 0x12345678 /* now 16*4=64 */ >> >> .global _end_vect >> _end_vect: >> +.global _u_boot_size >> +_u_boot_size: >> + .word 0xDEADBEEF >> + .word _end - _start > > 0xdeadbeef does not seem like a good magic value to identify this header > format -- especially since it looks like that may have been the value > present in the older images that don't have this header (depending on > whether the .balignl needed to pad). Thanks for pointing this out. I will change it to something different. best regards, Aneesh