public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] SPL binary too large for OMAP4460 OCM
@ 2013-09-04  7:31 bin4ry
  2013-09-04  8:44 ` Sricharan R
  0 siblings, 1 reply; 12+ messages in thread
From: bin4ry @ 2013-09-04  7:31 UTC (permalink / raw)
  To: u-boot

Hi everybody,

I need to add functionality to the SPL code. I tried to implement in a
memory-saving way, however, the SPL is about 45 kB after compilation. To
get compilation working, I had to set CONFIG_SPL_MAX_SIZE to (45 *
1024). Now, the SPL as well as u-boot won't boot. After the device'
(PandaBoard ES - OMAP4460) reset, nothing happens regarding it's output
on terminal.

My question: is it theoretically possible to to establish a successfully
booting SPL with ~45 kB in size for this device? The device'
on-chip-memory is 56kB so it could fit in there. If so, what needs to be
configured / tuned to get it working? Are there any other features I
could omit from the binary to make it smaller?

Thanks a lot,
-b

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [U-Boot] SPL binary too large for OMAP4460 OCM
@ 2013-09-04  8:43 Oleg Kosheliev
  2013-09-04 13:18 ` Tom Rini
  0 siblings, 1 reply; 12+ messages in thread
From: Oleg Kosheliev @ 2013-09-04  8:43 UTC (permalink / raw)
  To: u-boot

Hi, Andr?

>________________________________________
From: u-boot-bounces@lists.denx.de [u-boot-bounces at lists.denx.de] on
behalf of Andr? >Schaller [an.schall at googlemail.com]
>Sent: Wednesday, September 04, 2013 10:09 AM
>To: u-boot at lists.denx.de
>Subject: [U-Boot] SPL binary too large for OMAP4460 OCM
>
>Hi everybody,
>
>I need to add functionality to the SPL code. I tried to implement in a
>memory-saving way, however, the SPL is about 45 kB after compilation. To
>get compilation working, I had to set CONFIG_SPL_MAX_SIZE to (45 *
>1024). Now, the SPL as well as u-boot won't boot. After the device'
>(PandaBoard ES - OMAP4460) reset, nothing happens regarding it's output
>on terminal.
>
>My question: is it theoretically possible to to establish a successfully
>booting SPL with ~45 kB in size for this device? The device'
>on-chip-memory is 56kB so it could fit in there. If so, what needs to be
>configured / tuned to get it working? Are there any other features I
>could omit from the binary to make it smaller?
>
>Thanks a lot,
>Andr?
>_______________________________________________
>U-Boot mailing list
>U-Boot at lists.denx.de
>http://lists.denx.de/mailman/listinfo/u-boot

We can use the area 0x40300000 - 0x4030bfff for downloading the SPL image.
If the image exceed this - it leads to corrupting the ROM code stack and
the device hangs up.
See my patch [U-Boot] [RFC PATCH] armv7:omap4-common: Correct check of the
SPL image size. (It's not in mainline. I'll do some corrections and send v2
soon.)
For HS devices the SPL image is loaded from the address 0x40304350. So we
have 0x4030bfff - 0x40304350 = 0x7CAF = 31,919 bytes for SPL.
The area from 0x40300000 till 0x40304350 in HS devices is used for security
data.
If you have GP device you can use the whole 0x40300000 - 0x4030bfff space
i.e. 49,152 bytes, just change #define CONFIG_SPL_TEXT_BASE from 0x40304350
to 0x40300000.

Best regards,
  Oleg
<http://www.globallogic.com/email_disclaimer.txt>
 <http://www.globallogic.com/email_disclaimer.txt>

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [U-Boot] SPL binary too large for OMAP4460 OCM
@ 2013-09-04  7:09 André Schaller
  0 siblings, 0 replies; 12+ messages in thread
From: André Schaller @ 2013-09-04  7:09 UTC (permalink / raw)
  To: u-boot

Hi everybody,

I need to add functionality to the SPL code. I tried to implement in a
memory-saving way, however, the SPL is about 45 kB after compilation. To
get compilation working, I had to set CONFIG_SPL_MAX_SIZE to (45 *
1024). Now, the SPL as well as u-boot won't boot. After the device'
(PandaBoard ES - OMAP4460) reset, nothing happens regarding it's output
on terminal.

My question: is it theoretically possible to to establish a successfully
booting SPL with ~45 kB in size for this device? The device'
on-chip-memory is 56kB so it could fit in there. If so, what needs to be
configured / tuned to get it working? Are there any other features I
could omit from the binary to make it smaller?

Thanks a lot,
Andr?

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-09-05  9:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04  7:31 [U-Boot] SPL binary too large for OMAP4460 OCM bin4ry
2013-09-04  8:44 ` Sricharan R
2013-09-04  8:48   ` Michael Trimarchi
2013-09-04  8:56     ` Sricharan R
2013-09-04  9:04       ` bin4ry
2013-09-04  9:07         ` Sricharan R
2013-09-05  9:00           ` bin4ry
2013-09-04  9:13         ` Lokesh Vutla
  -- strict thread matches above, loose matches on Subject: below --
2013-09-04  8:43 Oleg Kosheliev
2013-09-04 13:18 ` Tom Rini
2013-09-04 13:23   ` Sricharan R
2013-09-04  7:09 André Schaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox