public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] ARM: at91: lds: add test SPL binary size and bbs size
Date: Mon, 19 Nov 2018 15:13:46 +0000	[thread overview]
Message-ID: <f1ffd74a-7ddf-21aa-8b8f-e01542ea94a2@microchip.com> (raw)
In-Reply-To: <BY1PR02MB11142B0693C1E43AF290CC88E7D80@BY1PR02MB1114.namprd02.prod.outlook.com>



On 19.11.2018 16:31, Ben Whitten wrote:
>> -----Original Message-----
>> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On
>> Behalf Of Eugen.Hristev at microchip.com
>> Sent: 19 November 2018 08:23
>> To: u-boot at lists.denx.de
>> Cc: Nicolas.Ferre at microchip.com;
>> wenyou.yang at atmel.com
>> Subject: [U-Boot] [PATCH 4/4] ARM: at91: lds: add test SPL
>> binary size and bbs size
>>
>> From: Wenyou Yang <wenyou.yang@atmel.com>
>>
>> Add the test for the SPL binary size and the bbs section size.
>>
>> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
>> ---
>>   arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 10
>> ++++++++++
>>   1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
>> b/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
>> index eca78f8..82098dc 100644
>> --- a/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
>> +++ b/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
>> @@ -48,3 +48,13 @@ SECTIONS
>>   		__bss_end = .;
>>   	} >.sdram
>>   }
>> +
>> +#if defined(CONFIG_SPL_MAX_SIZE)
>> +ASSERT(__image_copy_end - __image_copy_start <
> 
> There is no __image_copy_start causing SPL size calculation
> to error, replacing with __start resolves it.

Thank you, I will modify the patch and test. This means that we can let 
the SPL in configuration, which is great news.


Eugen

> 
>> (CONFIG_SPL_MAX_SIZE), \
>> +	"SPL image too big");
>> +#endif
>> +
>> +#if defined(CONFIG_SPL_BSS_MAX_SIZE)
>> +ASSERT(__bss_end - __bss_start <
>> (CONFIG_SPL_BSS_MAX_SIZE), \
>> +	"SPL image BSS too big");
>> +#endif
>> --
>> 2.7.4
>>
>> ______________________________________________
>> _
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> https://lists.denx.de/listinfo/u-boot

      reply	other threads:[~2018-11-19 15:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-19  8:22 [U-Boot] [PATCH 0/4] at91: SPL size check for at91 boards Eugen.Hristev at microchip.com
2018-11-19  8:22 ` [U-Boot] [PATCH 1/4] configs: picosam9g45_defconfig: Remove SPL Eugen.Hristev at microchip.com
2018-11-19  8:22 ` [U-Boot] [PATCH 2/4] configs: corvus_defconfig: " Eugen.Hristev at microchip.com
2018-11-19  8:23 ` [U-Boot] [PATCH 3/4] configs: wb45n_defconfig: " Eugen.Hristev at microchip.com
2018-11-19 10:29   ` Ben Whitten
2018-11-19 14:27     ` Ben Whitten
2018-11-19  8:23 ` [U-Boot] [PATCH 4/4] ARM: at91: lds: add test SPL binary size and bbs size Eugen.Hristev at microchip.com
2018-11-19 14:31   ` Ben Whitten
2018-11-19 15:13     ` Eugen.Hristev at microchip.com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1ffd74a-7ddf-21aa-8b8f-e01542ea94a2@microchip.com \
    --to=eugen.hristev@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox