From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2][v2] Add readme of how to boot from espi flash for p4080ds.
Date: Thu, 18 Nov 2010 17:27:39 +0100 [thread overview]
Message-ID: <m2tyjesikk.fsf@ohwell.denx.de> (raw)
In-Reply-To: <20101117141219.3961b9e6@udp111988uds.am.freescale.net> (Scott Wood's message of "Wed, 17 Nov 2010 14:12:19 -0600")
Hi Scott,
> On Wed, 17 Nov 2010 13:42:43 +0100
> Detlev Zundel <dzu@denx.de> wrote:
>
>> > Yes, a simple C tool to take an existing PBL or RCW dump and "espi-ize"
>> > it into a PBL dump would be nice. The user will still need to acquire
>> > the existing RCW manually. This only needs to be done once on a board;
>> > it's not part of building a U-Boot image.
>>
>> @Scott: What is meant by "acquiring the existing RCW"? Can't we have a
>> tool that is fed with a value for RCW?
>
> I mean that a simple tool could take an existing RCW and modify it for
> espi boot, but it needs to take as input an RCW that is valid for other
> parameters.
>
> The least error prone way to do this, for a user that wants to take a
> board that's already successfully booting from NOR and make it boot
> from eSPI, is to extract the RCW they're already using from the board.
Ok, thanks for the explanation.
> Creating an RCW from scratch is more complicated, which is why we
> have that javascript tool -- though we could provide some example RCWs
> for common configs.
Just for my information - it sounds like the RCW is really complex. If
RCW still expands to "reset control word", I would expect it to be 32
bits though. It is rather common for U-Boot porters to determine 32-bit
values for specific registers without using a javascript tool, so maybe
I'm wrong here.
>> > This README describes how to build an Image can be used by PBL (pre-boot
>> > loader), building u-boot image is the first step, then RCW, PBI
>> > commands, XXD dump of u-boot.bin, the tool will combine the RCW and PBI
>> > and XXD dump together to produce the PBL XXD file, suppose the PBL XXD
>> > file is saved as x.xxd, we need to run "xxd -r x.xxd > pbl_image.bin" to
>> > produce the final PBL Image. Take a look at the whole process, I see no
>> > way it can be scripted / automatized.
>>
>> I said it once before, look at how kwbimage wraps up u-boot.bin into
>> such an "augmented" image. If the Marvell guys can do this for their
>> platform, I see no reason why this cannot be done for your platform.
>
> Sure, once you have a valid input RCW it should be possible to automate
> the rest.
For the supported configurations the RCW should be provided of course,
so I do not see a big problem here?
Cheers
Detlev
--
Practice random senselessness and act kind of beautiful.
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2010-11-18 16:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 8:50 [U-Boot] [PATCH 2/2][v2] Add readme of how to boot from espi flash for p4080ds Shaohui Xie
2010-11-16 10:34 ` Wolfgang Denk
2010-11-16 16:21 ` Detlev Zundel
2010-11-17 17:19 ` Kumar Gala
2010-11-17 20:54 ` Wolfgang Denk
2010-11-16 21:54 ` Scott Wood
2010-11-16 22:02 ` Wolfgang Denk
2010-11-16 22:18 ` Scott Wood
2010-11-17 10:25 ` Xie Shaohui-B21989
2010-11-17 12:42 ` Detlev Zundel
2010-11-17 20:12 ` Scott Wood
2010-11-18 16:27 ` Detlev Zundel [this message]
2010-11-18 17:01 ` Kumar Gala
2010-11-19 11:06 ` Detlev Zundel
2010-11-17 13:21 ` Wolfgang Denk
2010-11-17 20:57 ` Scott Wood
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=m2tyjesikk.fsf@ohwell.denx.de \
--to=dzu@denx.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