Skip to contentSkip to conversation

How to use the device tree for lite5200

DISCUSSION Wolfgang Grandegger 4 participants 8 messages Dec 6, 2006 – Dec 7, 2006

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Wolfgang Grandegger

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:

Quoted 8 lines
   $ 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

#2 lore raw
Quoted 13 lines · Kumar Gala
Quoted 10 lines · Wolfgang Grandegger

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
Quoted 5 lines
Quoted 3 lines

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.

Quoted 7 lines

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.

#3 lore raw
Quoted 3 lines · Wolfgang Grandegger

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

Signature · 4 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#4 lore raw
Quoted 9 lines · Grant Likely
Quoted 3 lines · Wolfgang Grandegger

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.

#5 lore raw
In reply to Wolfgang Grandegger
Quoted 4 lines · Wolfgang Grandegger
   $ 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

Signature · 4 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#6 lore raw
Quoted 9 lines · Grant Likely
Quoted 4 lines · Wolfgang Grandegger
   $ 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.

Signature · 4 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#7 lore raw
Quoted 7 lines · Grant Likely
Quoted 4 lines

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