public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Hawkins <dwh@ovro.caltech.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Make MPC83xx one step closer to full	relocation.
Date: Tue, 08 Apr 2008 15:17:46 -0700	[thread overview]
Message-ID: <47FBEF0A.2010603@ovro.caltech.edu> (raw)
In-Reply-To: <044c01c899c2$abbb67b0$03323710$@Tjernlund@transmode.se>

Hi Joakim,

>> See for example cpu/mpc8xx/start.S - while at the  moment we really
>> start with .text, it would technically be more approrpriate to change
>> the  first  256  bytes  (from monitor base to EXC_OFF_SYS_RESET) into
>> .rodata or something like this.
> 
> Ahh, now I see what you mean and it gave me an idea ...

While you're chewing on ideas, here's a couple of points about
mpc83xx/start.S

The reset configuration words that start at the beginning of
Flash are *optional*, and depend on the reset configurations
words source pin strapping (CFG_RS[0:2]).

If CFG_RS[0:2] = 000b, then the RCWs are read from the local
bus chip-select 0. Nominally this means read from flash, but
hardware can subvert the bus to the flash and supply the RCWs
from an alternative source, eg. on the MPC8349EA-MDS-PB, the
RCWs can be driven onto the local bus by an on-board CPLD
(which in turn gets the RCWs from dip switches).

On my custom MPC8349EA board, I can deliver the RCWs from the
Flash, or if flash is blank, from the FPGA, or I can change the
CFG_RS[0:2] source so that the processor uses hard-coded
RCWs, or an I2C boot EEPROM.

If the RCWs were placed in their own section, then that section
could be made optional. In the case of it being used, and boot-low
being used (RCWH[BMS] = 0), then the RCW+U-Boot magic+string section
would need be 100h bytes in size, and be concatenated with the
U-Boot image. Otherwise the RCW area could be left as a separate
binary image, that the user has to burn to Flash. (Eg. for a user
that for some bizarre reason wants to put RCWH[BMS] = 1 :) ).

How about a 100-byte section called .rcw, or .rcwdata?

I'm not sure if these comments will make life easier or worse ...

Cheers,
Dave

  reply	other threads:[~2008-04-08 22:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 14:41 [U-Boot-Users] [PATCH] Make MPC83xx one step closer to full relocation Joakim Tjernlund
2008-03-28 23:33 ` Kim Phillips
2008-03-28 23:47   ` Joakim Tjernlund
2008-03-29  0:01     ` Kim Phillips
2008-03-29  0:04       ` Joakim Tjernlund
2008-04-08  8:58     ` Stefan Roese
2008-04-08  9:31       ` Joakim Tjernlund
2008-04-08 10:06         ` Stefan Roese
2008-04-08 10:50           ` Joakim Tjernlund
2008-04-08 11:58             ` Wolfgang Denk
2008-04-08 13:07               ` Joakim Tjernlund
2008-04-08 13:25                 ` Stefan Roese
2008-04-08 14:04                   ` Joakim Tjernlund
2008-04-08 19:52                     ` Stefan Roese
2008-04-08 20:30                       ` Joakim Tjernlund
2008-04-08 20:41                     ` Wolfgang Denk
2008-04-08 20:52                       ` Joakim Tjernlund
2008-04-08 21:09                         ` Wolfgang Denk
2008-04-08 21:51                           ` Joakim Tjernlund
2008-04-08 22:17                             ` David Hawkins [this message]
2008-04-09  9:40                             ` Stefan Roese
2008-04-09 10:44                               ` Wolfgang Denk
2008-04-09 11:14                                 ` Joakim Tjernlund
2008-04-09 11:45                                   ` Stefan Roese
2008-04-09 12:36                                   ` Wolfgang Denk
2008-04-08 11:52         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2008-02-02 19:44 Joakim Tjernlund

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=47FBEF0A.2010603@ovro.caltech.edu \
    --to=dwh@ovro.caltech.edu \
    --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