* Open Firmware - dts file
@ 2007-08-02 19:21 Siva Prasad
2007-08-03 5:22 ` David Gibson
0 siblings, 1 reply; 2+ messages in thread
From: Siva Prasad @ 2007-08-02 19:21 UTC (permalink / raw)
To: linuxppc-dev
Hi,
I am trying to understand ..
1) How a given dts file is embedded into the zImage (how about vmlinux?)
2) Where does it get stored for later access during booting?
3) How a specific dts file out of the available in /boot/dts directory
is chosen?
I am a newbie to this open firmware thing and looking for the right
pointer to get started.
Thanks in advance
- Siva
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Open Firmware - dts file
2007-08-02 19:21 Open Firmware - dts file Siva Prasad
@ 2007-08-03 5:22 ` David Gibson
0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2007-08-03 5:22 UTC (permalink / raw)
To: Siva Prasad; +Cc: linuxppc-dev
On Thu, Aug 02, 2007 at 12:21:21PM -0700, Siva Prasad wrote:
> Hi,
>
> I am trying to understand ..
>
> 1) How a given dts file is embedded into the zImage (how about vmlinux?)
The arch/powerpc/boot/wrapper script builds the dts into a device tree
blob using dtc (the Device Tree Compiler), it then folds the binary
device tree into a special section in the zImage.
> 2) Where does it get stored for later access during booting?
The zImage, possibly after adjusting the device tree based on
information from the firmware, passes the address of the tree to the
kernel as it invokes it. The kernel adds the device tree address (as
well as any further ranges specified in the device tree blob) to its
internal list of reserved addresses so it won't clobber it with other
allocations.
> 3) How a specific dts file out of the available in /boot/dts directory
> is chosen?
Depending on the Kconfig, different Makefile targets will be
selected. Those targets then invoke the wrapper script with different
options, including different dts files into the zImage.
> I am a newbie to this open firmware thing and looking for the right
> pointer to get started.
Ok.. do understand that on systems with a full open firmware
implementation a dts won't generally be used at all. Instead the
kernel will read the device tree information from open firmware itself
and convert it directly into a device tree blob (which will later be
unpacked into the run-time device tree structure).
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-03 5:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 19:21 Open Firmware - dts file Siva Prasad
2007-08-03 5:22 ` David Gibson
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).