[U-Boot] MPC5200: possible to "reserve" embedded flash sectors ?

André Schwarz andre.schwarz at matrix-vision.de
Thu Mar 11 16:33:22 CET 2010


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


More information about the U-Boot mailing list