public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] MPC5200: possible to "reserve" embedded flash sectors ?
@ 2010-03-11 15:33 André Schwarz
  2010-03-11 16:15 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: André Schwarz @ 2010-03-11 15:33 UTC (permalink / raw)
  To: u-boot

Hi,

is there any reasonable way to reserve some small flash sectors embedded
inside U-Boot for other usage ?

Example :

2 sectors @ 0-16k U-boot start including initial code @ reset vector.
1 sector @ 16k-24k e.g. environment.
2 sectors @ 24k-40k reserved (small linux mtd partitions).
? sectors @ 40k+ remaining U-Boot code.


Back with U-Boot 1.1.4 I used the board's local u-boot.lds like this :

[snip]...
.text      	 :
  {
    cpu/mpc5xxx/start.o (.text)
    lib_ppc/board.o (.text)
    lib_ppc/interrupts.o (.text)
    lib_ppc/ticks.o (.text)

    . = DEFINED(env_offset) ? env_offset : .;
    common/environment.o (.text)

    . = DEFINED(CFG_ENV_ADD_SPACE) ? (. + CFG_ENV_ADD_SPACE) : .;

    *(.text)
    *(.fixup)
[snip]...


The primary goal is to create a dedicated sector holding the auto/boot
script being available through a nested mtd partition.

Since the flash is completely used up there's no chance using sectors
outside of U-Boot.



Any hints are welcome.



Regards,
Andr?


MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Hans-Joachim Reich

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

end of thread, other threads:[~2010-03-22  9:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-11 15:33 [U-Boot] MPC5200: possible to "reserve" embedded flash sectors ? André Schwarz
2010-03-11 16:15 ` Wolfgang Denk
2010-03-11 16:37   ` André Schwarz
2010-03-11 20:52     ` Wolfgang Denk
2010-03-12  8:32       ` André Schwarz
2010-03-15  9:00         ` André Schwarz
2010-03-21 18:15           ` Wolfgang Denk
2010-03-22  9:02             ` André Schwarz

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