linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to use the device tree for lite5200
@ 2006-12-06 15:59 Wolfgang Grandegger
  2006-12-06 16:09 ` Kumar Gala
  2006-12-06 16:20 ` Grant Likely
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Grandegger @ 2006-12-06 15:59 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I want to boot PowerPC Linux 2.6.19 on my Icecube board but I didn't 
succeed yet to get lite5200.dts compiled and an appropriate image created:

   $ dtc -b0 lite5200.dts
   DTC: dts->dts  on file "lite5200.dts"
   ERROR: Missing /chosen node
   Input tree has errors

What is the procedure to make and boot an uImage for the U-Boot 
bootloader. I read about the third argument for bootm but did not 
understand how to use it.

TIA.

Wolfgang.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 15:59 How to use the device tree for lite5200 Wolfgang Grandegger
@ 2006-12-06 16:09 ` Kumar Gala
  2006-12-06 19:16   ` Wolfgang Grandegger
  2006-12-06 16:20 ` Grant Likely
  1 sibling, 1 reply; 8+ messages in thread
From: Kumar Gala @ 2006-12-06 16:09 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-embedded


On Dec 6, 2006, at 9:59 AM, Wolfgang Grandegger wrote:

> Hello,
>
> I want to boot PowerPC Linux 2.6.19 on my Icecube board but I didn't
> succeed yet to get lite5200.dts compiled and an appropriate image  
> created:
>
>    $ dtc -b0 lite5200.dts
>    DTC: dts->dts  on file "lite5200.dts"
>    ERROR: Missing /chosen node
>    Input tree has errors
>
> What is the procedure to make and boot an uImage for the U-Boot
> bootloader. I read about the third argument for bootm but did not
> understand how to use it.

How have you booted in the past?  Do you tftp down the images or run  
from flash?

Here's an example assuming you have a kernel image at address  
$loadaddr and the dtb at $ftaddr

dtc -b0 -Idts -Odtb -V16 lite5200.dts > lite5200.dtb

download lite5200.dtb to the system

=> bootm $loadaddr - $fdtaddr

- k

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 15:59 How to use the device tree for lite5200 Wolfgang Grandegger
  2006-12-06 16:09 ` Kumar Gala
@ 2006-12-06 16:20 ` Grant Likely
  2006-12-06 16:21   ` Grant Likely
  1 sibling, 1 reply; 8+ messages in thread
From: Grant Likely @ 2006-12-06 16:20 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-embedded

On 12/6/06, Wolfgang Grandegger <wg@grandegger.com> wrote:
>    $ dtc -b0 lite5200.dts
>    DTC: dts->dts  on file "lite5200.dts"
>    ERROR: Missing /chosen node
>    Input tree has errors

Add the -f flag to dtc to ignore the missing /chosen node error

Use the "-O dtb" flag to output a fdt blob

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 16:20 ` Grant Likely
@ 2006-12-06 16:21   ` Grant Likely
  2006-12-06 17:49     ` Jon Loeliger
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Likely @ 2006-12-06 16:21 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-embedded

On 12/6/06, Grant Likely <grant.likely@secretlab.ca> wrote:
> On 12/6/06, Wolfgang Grandegger <wg@grandegger.com> wrote:
> >    $ dtc -b0 lite5200.dts
> >    DTC: dts->dts  on file "lite5200.dts"
> >    ERROR: Missing /chosen node
> >    Input tree has errors
>
> Add the -f flag to dtc to ignore the missing /chosen node error
>
> Use the "-O dtb" flag to output a fdt blob

Oh, and like Kumar said, you need the -V 0x10 flag to generate the
correct blob version.

g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 16:21   ` Grant Likely
@ 2006-12-06 17:49     ` Jon Loeliger
  0 siblings, 0 replies; 8+ messages in thread
From: Jon Loeliger @ 2006-12-06 17:49 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded@ozlabs.org

On Wed, 2006-12-06 at 10:21, Grant Likely wrote:
> >
> > Add the -f flag to dtc to ignore the missing /chosen node error
> >
> > Use the "-O dtb" flag to output a fdt blob
> 
> Oh, and like Kumar said, you need the -V 0x10 flag to generate the
> correct blob version.

Oh, and, -V 0x10 is the default now with a current
top-of-git DTC too.  :-)

jdl

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 16:09 ` Kumar Gala
@ 2006-12-06 19:16   ` Wolfgang Grandegger
  2006-12-06 23:11     ` Grant Likely
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Grandegger @ 2006-12-06 19:16 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

Kumar Gala wrote:
> 
> On Dec 6, 2006, at 9:59 AM, Wolfgang Grandegger wrote:
> 
>> Hello,
>>
>> I want to boot PowerPC Linux 2.6.19 on my Icecube board but I didn't
>> succeed yet to get lite5200.dts compiled and an appropriate image 
>> created:
>>
>>    $ dtc -b0 lite5200.dts
>>    DTC: dts->dts  on file "lite5200.dts"
>>    ERROR: Missing /chosen node
>>    Input tree has errors
>>
>> What is the procedure to make and boot an uImage for the U-Boot
>> bootloader. I read about the third argument for bootm but did not
>> understand how to use it.
> 
> How have you booted in the past?  Do you tftp down the images or run 
> from flash?

Yes, at least for development.

> Here's an example assuming you have a kernel image at address $loadaddr 
> and the dtb at $ftaddr
> 
> dtc -b0 -Idts -Odtb -V16 lite5200.dts > lite5200.dtb
> 
> download lite5200.dtb to the system
> 
> => bootm $loadaddr - $fdtaddr

Great, that worked with the additional "-f" option, as suggested by 
Grant. Now I can boot the kernel but BESTCOM and FEC support seem still 
missing. Are there already patches around?

Thanks to all who replied.

Wolfgang.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 19:16   ` Wolfgang Grandegger
@ 2006-12-06 23:11     ` Grant Likely
  2006-12-07  9:13       ` Wolfgang Grandegger
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Likely @ 2006-12-06 23:11 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-embedded

On 12/6/06, Wolfgang Grandegger <wg@grandegger.com> wrote:
> Great, that worked with the additional "-f" option, as suggested by
> Grant. Now I can boot the kernel but BESTCOM and FEC support seem still
> missing. Are there already patches around?

They are not in mainline as they are undergoing rework; I've got
working drivers in my tree.  see here:

http://git.secretlab.ca

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use the device tree for lite5200
  2006-12-06 23:11     ` Grant Likely
@ 2006-12-07  9:13       ` Wolfgang Grandegger
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Grandegger @ 2006-12-07  9:13 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded

Grant Likely wrote:
> On 12/6/06, Wolfgang Grandegger <wg@grandegger.com> wrote:
>> Great, that worked with the additional "-f" option, as suggested by
>> Grant. Now I can boot the kernel but BESTCOM and FEC support seem still
>> missing. Are there already patches around?
> 
> They are not in mainline as they are undergoing rework; I've got
> working drivers in my tree.  see here:
> 
> http://git.secretlab.ca

I already used one of your trees, but obviously the wrong one. Now it 
works, that's great.

Thanks a lot.

Wolfgang.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-12-07  9:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 15:59 How to use the device tree for lite5200 Wolfgang Grandegger
2006-12-06 16:09 ` Kumar Gala
2006-12-06 19:16   ` Wolfgang Grandegger
2006-12-06 23:11     ` Grant Likely
2006-12-07  9:13       ` Wolfgang Grandegger
2006-12-06 16:20 ` Grant Likely
2006-12-06 16:21   ` Grant Likely
2006-12-06 17:49     ` Jon Loeliger

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).