mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox PBL question
@ 2017-02-13 15:13 Wadim Egorov
  2017-02-13 19:22 ` Sascha Hauer
  0 siblings, 1 reply; 9+ messages in thread
From: Wadim Egorov @ 2017-02-13 15:13 UTC (permalink / raw)
  To: barebox

Hi,

I would like to add SPL support for the RK3288 SoC to barebox. But I am
facing
a few problems.

The maximum size of the SPL image which the ROM code will read is 32KB.
I was thinking to use the PBL feature for the SPL part. But using the
the pbl code (with decompression) seems to be not a good idea, because
it's size
is already about 30K. I think this is an overhead.

But now I wonder how to generate two different images with a single build.
A SPL image, which should not exceed 32K and a barebox.

I have problems to fully understand the PBL mechanism.
Why are the builds always adding the barebox.bin images to the PBL part?

Here is an example, cat .zbarebox.cmd

ld -EL  -Map arch/arm/pbl/zbarebox.map --gc-sections -static -o
arch/arm/pbl/zbarebox -e pbl_start -T arch/arm/pbl/zbarebox.lds
--start-group  common/built-in-pbl.o [...]  arch/arm/pbl/piggy.shipped.o
--end-group

piggy.shipped.o is barebox.bin, which is added in piggy.shipped.S:

.incbin "arch/arm/pbl/piggy.shipped"

So my question is, how do I generate a seperate PBL image without the
piggy stuff?
My SPL code for RK3288 should just init the SDRAM an then jump back to
ROM code to load the barebox.

Regards,
Wadim

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2017-02-15  7:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13 15:13 barebox PBL question Wadim Egorov
2017-02-13 19:22 ` Sascha Hauer
2017-02-13 20:53   ` Trent Piepho
2017-02-14  7:27     ` Sascha Hauer
2017-02-14 18:12       ` Trent Piepho
2017-02-15  7:57         ` s.hauer
2017-02-14  9:54   ` Wadim Egorov
2017-02-14 10:48     ` Sascha Hauer
2017-02-14 11:34       ` Wadim Egorov

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