* device tree / how to build/compile & use with u-boot to boot uImage?
@ 2007-02-09 21:55 Morrison, Tom
2007-02-09 22:19 ` Ben Warren
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Morrison, Tom @ 2007-02-09 21:55 UTC (permalink / raw)
To: linuxppc-embedded, linuxppc-dev
All,
Sorry for my ignorance here, but we have upgraded our kernel from
2.6.11.xx to 2.6.20-rcx (using a specific git-branch for the mpc85xx)=20
to run on the MPC8548CDS eval board (using default options provided=20
by this branch for this eval board). I successfully compiled/loaded the=20
uImage, but it hangs after decompression (with root=3D/dev/nfs)
Also, I was told to upgrade our u-boot source code (with another git=20
branch for to the mpc85xx) and successfully get to the u-boot prompt.
>From googling through the lists - it seems that I need to build a=20
device tree blob and pass that device tree to the kernel in some
fashion?=20
I tried to compile the default dts image (using the dtc compiler=20
installed by LTIB), but it is complaining about no '/chosen' in=20
the definition:
<path>/dtc -I dts -O dtb - -o mpc8548cds.dtb -V 16 dts/mpc8548cds.dts
I've looked at the Documentation/powerpc/booting_without_of.txt,=20
and this gives an explanation of the internal parts of the dts file,=20
but it doesn't tell me how to practically pass it to the kernel=20
from u-boot (e.g.: load to memory - and use bootm xxx yyy zzz)
=20
I am pretty darn confused about this whole thing. Can anybody point me
to=20
a SUCCINCT explanation of the use of a dts file (and how compile and use
with u-boot to pass to kernel)?
Tom Morrison
Principal Software Engineer
EMPIRIX=20
20 Crosby Drive - Bedford, MA 01730
p: 781.266.3567 f: 781.266.3670=20
email: tmorrison@empirix.com=20
www.empirix.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: device tree / how to build/compile & use with u-boot to boot uImage?
2007-02-09 21:55 device tree / how to build/compile & use with u-boot to boot uImage? Morrison, Tom
@ 2007-02-09 22:19 ` Ben Warren
2007-02-09 22:25 ` Jerry Van Baren
2007-02-09 22:37 ` Grant Likely
2 siblings, 0 replies; 6+ messages in thread
From: Ben Warren @ 2007-02-09 22:19 UTC (permalink / raw)
To: Morrison, Tom; +Cc: linuxppc-dev, linuxppc-embedded
Tom,
I feel your pain.
On Fri, 2007-02-09 at 16:55 -0500, Morrison, Tom wrote:
> All,
>
> I've looked at the Documentation/powerpc/booting_without_of.txt,
> and this gives an explanation of the internal parts of the dts file,
> but it doesn't tell me how to practically pass it to the kernel
> from u-boot (e.g.: load to memory - and use bootm xxx yyy zzz)
>
> I am pretty darn confused about this whole thing. Can anybody point me
> to
> a SUCCINCT explanation of the use of a dts file (and how compile and use
>
> with u-boot to pass to kernel)?
>
u-boot> bootm <kernel_address> <initrd_address> <dtb_address>
If you don't have an initrd, it's
u-boot> bootm <kernel_address> - <dtb_address>
Hope that's succinct enough.
Ben
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: device tree / how to build/compile & use with u-boot to boot uImage?
2007-02-09 21:55 device tree / how to build/compile & use with u-boot to boot uImage? Morrison, Tom
2007-02-09 22:19 ` Ben Warren
@ 2007-02-09 22:25 ` Jerry Van Baren
2007-02-09 22:41 ` David Gibson
2007-02-09 22:37 ` Grant Likely
2 siblings, 1 reply; 6+ messages in thread
From: Jerry Van Baren @ 2007-02-09 22:25 UTC (permalink / raw)
To: Morrison, Tom; +Cc: linuxppc-dev, linuxppc-embedded
Morrison, Tom wrote:
> All,
>
> Sorry for my ignorance here, but we have upgraded our kernel from
> 2.6.11.xx to 2.6.20-rcx (using a specific git-branch for the mpc85xx)
> to run on the MPC8548CDS eval board (using default options provided
> by this branch for this eval board). I successfully compiled/loaded the
> uImage, but it hangs after decompression (with root=/dev/nfs)
>
> Also, I was told to upgrade our u-boot source code (with another git
> branch for to the mpc85xx) and successfully get to the u-boot prompt.
>
> From googling through the lists - it seems that I need to build a
> device tree blob and pass that device tree to the kernel in some
> fashion?
>
> I tried to compile the default dts image (using the dtc compiler
> installed by LTIB), but it is complaining about no '/chosen' in
> the definition:
>
> <path>/dtc -I dts -O dtb - -o mpc8548cds.dtb -V 16 dts/mpc8548cds.dts
Trivia: the no "/chosen" warning can be ignored. The u-boot command
"bootm" generates the "/chosen" branch when you run the command and it
boots linux.
Note: You want version 16 (or better?) for the fdt blob. I believe the
dtc defaults to this now, but it wasn't always that way.
[snip - others have chimed in]
> Tom Morrison
> Principal Software Engineer
gvb
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: device tree / how to build/compile & use with u-boot to boot uImage?
2007-02-09 21:55 device tree / how to build/compile & use with u-boot to boot uImage? Morrison, Tom
2007-02-09 22:19 ` Ben Warren
2007-02-09 22:25 ` Jerry Van Baren
@ 2007-02-09 22:37 ` Grant Likely
2007-02-10 0:42 ` David Gibson
2 siblings, 1 reply; 6+ messages in thread
From: Grant Likely @ 2007-02-09 22:37 UTC (permalink / raw)
To: Morrison, Tom; +Cc: linuxppc-dev, linuxppc-embedded
On 2/9/07, Morrison, Tom <tmorrison@empirix.com> wrote:
> All,
>
> I tried to compile the default dts image (using the dtc compiler
> installed by LTIB), but it is complaining about no '/chosen' in
> the definition:
>
> <path>/dtc -I dts -O dtb - -o mpc8548cds.dtb -V 16 dts/mpc8548cds.dts
Add the -f flag to ignore the warning. It's bogus for what you're doing.
u-boot adds the chosen node at runtime.
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: device tree / how to build/compile & use with u-boot to boot uImage?
2007-02-09 22:25 ` Jerry Van Baren
@ 2007-02-09 22:41 ` David Gibson
0 siblings, 0 replies; 6+ messages in thread
From: David Gibson @ 2007-02-09 22:41 UTC (permalink / raw)
To: Jerry Van Baren; +Cc: linuxppc-dev, linuxppc-embedded, Morrison, Tom
On Fri, Feb 09, 2007 at 05:25:51PM -0500, Jerry Van Baren wrote:
> Morrison, Tom wrote:
> > All,
> >
> > Sorry for my ignorance here, but we have upgraded our kernel from
> > 2.6.11.xx to 2.6.20-rcx (using a specific git-branch for the mpc85xx)
> > to run on the MPC8548CDS eval board (using default options provided
> > by this branch for this eval board). I successfully compiled/loaded the
> > uImage, but it hangs after decompression (with root=/dev/nfs)
> >
> > Also, I was told to upgrade our u-boot source code (with another git
> > branch for to the mpc85xx) and successfully get to the u-boot prompt.
> >
> > From googling through the lists - it seems that I need to build a
> > device tree blob and pass that device tree to the kernel in some
> > fashion?
> >
> > I tried to compile the default dts image (using the dtc compiler
> > installed by LTIB), but it is complaining about no '/chosen' in
> > the definition:
> >
> > <path>/dtc -I dts -O dtb - -o mpc8548cds.dtb -V 16 dts/mpc8548cds.dts
>
> Trivia: the no "/chosen" warning can be ignored. The u-boot command
> "bootm" generates the "/chosen" branch when you run the command and it
> boots linux.
>
> Note: You want version 16 (or better?) for the fdt blob. I believe the
> dtc defaults to this now, but it wasn't always that way.
Actually you want version 17 - just as soon as I get around to
implementing that in dtc. v16 and v17 have no differences that the
kernel looks at though, so it doesn't really matter.
--
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] 6+ messages in thread
* Re: device tree / how to build/compile & use with u-boot to boot uImage?
2007-02-09 22:37 ` Grant Likely
@ 2007-02-10 0:42 ` David Gibson
0 siblings, 0 replies; 6+ messages in thread
From: David Gibson @ 2007-02-10 0:42 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-dev, linuxppc-embedded, Morrison, Tom
On Fri, Feb 09, 2007 at 03:37:45PM -0700, Grant Likely wrote:
> On 2/9/07, Morrison, Tom <tmorrison@empirix.com> wrote:
> > All,
> >
> > I tried to compile the default dts image (using the dtc compiler
> > installed by LTIB), but it is complaining about no '/chosen' in
> > the definition:
> >
> > <path>/dtc -I dts -O dtb - -o mpc8548cds.dtb -V 16 dts/mpc8548cds.dts
>
> Add the -f flag to ignore the warning. It's bogus for what you're
> doing.
Yeah, I really need to rework dtc's warnings and error messages, it's
much too keen to complain at the moment. I just haven't had the time,
yet.
--
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] 6+ messages in thread
end of thread, other threads:[~2007-02-10 0:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-09 21:55 device tree / how to build/compile & use with u-boot to boot uImage? Morrison, Tom
2007-02-09 22:19 ` Ben Warren
2007-02-09 22:25 ` Jerry Van Baren
2007-02-09 22:41 ` David Gibson
2007-02-09 22:37 ` Grant Likely
2007-02-10 0:42 ` 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).