From: =?ISO-8859-1?Q?Andr=E9?= Schwarz Date: Thu, 11 Mar 2010 16:33:22 +0100 Subject: [U-Boot] MPC5200: possible to "reserve" embedded flash sectors ? Message-ID: <1268321602.4803.24.camel@swa-m460> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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