From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Stephen Neuendorffer" <stephen.neuendorffer@xilinx.com>
Cc: linuxppc-dev@ozlabs.com, Scott Wood <scottwood@freescale.com>,
paulus@samba.org, John Linn <linnj@xilinx.com>,
petermendham@computing.dundee.ac.uk
Subject: Re: [PATCH] powerpc/bootwrapper: Add documentation of boot wrappertargets
Date: Fri, 27 Jun 2008 21:22:55 -0700 [thread overview]
Message-ID: <fa686aa40806272122g3f4148d3ua1e59df54709cc68@mail.gmail.com> (raw)
In-Reply-To: <20080626201643.D01221788058@mail223-wa4.bigfish.com>
On Thu, Jun 26, 2008 at 1:16 PM, Stephen Neuendorffer
<stephen.neuendorffer@xilinx.com> wrote:
> Forgive my ignorance here, but what specifically does this imply? As
> far as I can tell, generally speaking, some of the board-specific
> information is passed into the boot wrapper, which then stuffs it into
> the device tree.
Yes, you are correct. I'll fill out the documentation more here.
>> uImage is for device-tree aware U-Boot versions
>
> And this differs from above because it gets a device tree passed in,
> which uboot has already stuffed correctly.
Correct.
>> dtbImage is used for boards that can take an ELF zImage, but still
> need
>> a dtb provided.
>>
>> simpleImage, not sure here.
>
> So both of these are elfs... but how do they differ? Is it only in how
> the right head.s file gets picked up?
simpleImage is not an elf. Its a raw position-independent binary
which can be loaded anywhere in RAM.
Some dtbImages are elfs; but there are a flat binaries. The main
difference is that all simpleImages assume that firmware provides
nothing interesting; but the flat dtbImages have custom code for
extracting a little bit of data out of the boards firmware.
It's all a bit of a confusing mess. It might be a good idea to rework
all the image names to stuff not so non-obvious, but I'm not sure the
best way to go about it. There is a lot of historical stuff in there
where the various 'zImage.*' targets grew and morphed over time in
ways that are hard to follow. It may make more sense to change the
flat-binary dtbImages to be simpleImages instead with overrides for
specific boards (just like is done for virtex405-*). ps3 is the other
major user of dtbImage. I created the whole dtbImage stuff in the
first place to eliminate overloaded makefile targets where some
zImage% target were providing a device tree and other zImage% targets
were not. Splitting dtb-provided from dtb-not-provided targets
clarified the Makefile quite a bit. dtbImage is not a fantastic name,
but I needed something different from zImage for images with an
embedded device tree.
Looking at the Makefile, dtbImage and simpleImage targets are
virtually identical. Perhaps it would be best to merge the targets
and deal with all the differences in the wrapper script (with the
default to just use simpleboot.S as the init code). Thoughts?
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
next prev parent reply other threads:[~2008-06-28 4:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 20:21 [PATCH] powerpc/bootwrapper: Add documentation of boot wrapper targets Grant Likely
2008-06-26 5:02 ` Grant Likely
2008-06-26 13:35 ` John Linn
2008-06-26 16:48 ` Stephen Neuendorffer
2008-06-26 17:21 ` Peter Mendham
2008-06-26 19:07 ` Josh Boyer
2008-06-26 20:16 ` [PATCH] powerpc/bootwrapper: Add documentation of boot wrappertargets Stephen Neuendorffer
2008-06-26 20:22 ` Scott Wood
2008-06-28 4:22 ` Grant Likely [this message]
2008-06-29 21:30 ` Stephen Neuendorffer
2008-06-27 17:49 ` [PATCH] powerpc/bootwrapper: Add documentation of boot wrapper targets 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=fa686aa40806272122g3f4148d3ua1e59df54709cc68@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linnj@xilinx.com \
--cc=linuxppc-dev@ozlabs.com \
--cc=paulus@samba.org \
--cc=petermendham@computing.dundee.ac.uk \
--cc=scottwood@freescale.com \
--cc=stephen.neuendorffer@xilinx.com \
/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;
as well as URLs for NNTP newsgroup(s).