public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Building two different "SPL" for the same board?
@ 2013-05-17 18:06 Henrik Nordström
  2013-05-17 18:17 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Henrik Nordström @ 2013-05-17 18:06 UTC (permalink / raw)
  To: u-boot

I am looking into reusing the SPL system initialization part for a very
minimalistic "SPL" which only initializes the board.

To give a bit of context, on the Allwinner CPUs there is a recovery boot
mode where data can be copied over USB and executed by the CPU. But most
of the board including DRAM controller is not initialized by default so
the very first thing you need to do is to upload & execute board
initialization code (but excluding CPU initialization).

Note: It is not really an SPL as all it does is initializing the board
and then returning control to the USB loader so additional code
(u-boot.bin) can be uploaded to DRAM and executed.

I have this implemented today partially out-of-tree leaching objects
from an u-boot build to build a binary with the initialization code. My
question is if it would make sense to try integrate this into the u-boot
tree somehow. Have something similar been done for any other board?

The current "code" is at
https://github.com/linux-sunxi/sunxi-tools/tree/master/felboot
mainly main.c (entry + stubs), the rest is only for a small printf and
is not needed.

Regards
Henrik

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

end of thread, other threads:[~2013-05-24  1:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 18:06 [U-Boot] Building two different "SPL" for the same board? Henrik Nordström
2013-05-17 18:17 ` Tom Rini
2013-05-17 20:56   ` Henrik Nordström
2013-05-22 15:26     ` Tom Rini
2013-05-23  8:53       ` Henrik Nordström
2013-05-23  9:54         ` Albert ARIBAUD
2013-05-23 20:39         ` Tom Rini
2013-05-24  1:14           ` Henrik Nordström

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