public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "André Schwarz" <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] MPC5200: possible to "reserve" embedded flash sectors ?
Date: Thu, 11 Mar 2010 17:37:32 +0100	[thread overview]
Message-ID: <1268325452.4803.34.camel@swa-m460> (raw)
In-Reply-To: <20100311161554.E7B0CE22AD1@gemini.denx.de>

Wolfgang,

> Dear =?ISO-8859-1?Q?Andr=E9?= Schwarz,
> 
> In message <1268321602.4803.24.camel@swa-m460> you wrote:
> > 
> > is there any reasonable way to reserve some small flash sectors embedded
> > inside U-Boot for other usage ?
> 
> Yes, of course there is. For example, in many board configurations we
> use such small sectors for the environment (then called "embedded
> environment").
> 
> > 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.
> 
> This can easily be done.
> 
> > Back with U-Boot 1.1.4 I used the board's local u-boot.lds like this :
> 
> Right. The linker script is the pace that needs to be tweaked.
> 
> > The primary goal is to create a dedicated sector holding the auto/boot
> > script being available through a nested mtd partition.
> 
> Well, I think there might be more efficient ways to acchieve this, but
> YMMV.

hmm - I'm not *that* familiar with all that abbreviations ... have to
ask someone : http://www.abbreviations.com/YMMV

Hopefully you didn't mean the worst one ;-)

> 
> Why are you asking? You wrote you have been doing this since 1.1.4, so
> where exactly is your problem?

The linker script has moved to the CPU directory, i.e. there's no local
linker script anymore.

Since I want to submit the board files as soon as the merge window will
open I'm asking for a reasonable way to implement this in current
U-Boot.

What's your favorite way of doing this ?
I'd be happy to implement it that way.

> 
> Best regards,
> 
> Wolfgang Denk
> 

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

  reply	other threads:[~2010-03-11 16:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1268325452.4803.34.camel@swa-m460 \
    --to=andre.schwarz@matrix-vision.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox