Skip to contentSkip to conversation

dts support in u-boot

U-Boot anupbehare at gmail.com 2 participants 4 messages Nov 27, 2009 – Dec 1, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I am porting u-boot on ppc440x5 core based board. I need to support dts in uboot.
As i am new to dts, can anyone please let me know the procedure to support it in uboot?

Thanks,
Anup B.

#1 lore raw

Hi Anup,

Quoted 9 lines · anupbehare at gmail.com

Hi,

I am porting u-boot on ppc440x5 core based board. I need to support dts in uboot.
As i am new to dts, can anyone please let me know the procedure to support it in uboot?

Thanks,
Anup B.

It is already supported in u-boot.
<http://www.denx.de/wiki/view/DULG/UBootCmdFDT>

You will need to create a .dts file to describe your board, compile it with the dtc compiler, and boot using either the 3 parameter version of bootm or using a FIT all-in-one image (preferred).
<u-boot/doc/uImage.FIT/howto.txt>

See also the linux documentation:
<linux/Documentation/powerpc/booting-without-of.txt>

and some more FDT background:
<http://www.denx.de/wiki/view/U-Boot/UBootFdtInfo#Background_Information_on_Flatte>

If you have specific questions after reading the above, ask away.

Best regards,
gvb

#2 lore raw

Hi Jerry,

Thanks for the information.

Please find my understanding about dts:
1. I will have to create board specific *.dts file.
2. Need to download latest dtc compiler.
3. Compile dts file using dtc compiler which will generate *.dtb file
4. Enable following macros in u-boot code
#define CONFIG_OF_LIBFDT
#define CONFIG_OF_BOARD_SETUP
5. Apart from these macros no code changes in u-boot source code.

Thanks,
Anup B.

Quoted 87 lines · Jerry Van Baren

Hi Anup,

anupbehare at gmail.com wrote:

Hi,

I am porting u-boot on ppc440x5 core based board. I need to support dts in uboot.

As i am new to dts, can anyone please let me know the procedure to support it in uboot?

Thanks,

Anup B.

It is already supported in u-boot.

http://www.denx.de/wiki/view/DULG/UBootCmdFDT>

You will need to create a .dts file to describe your board, compile it with the dtc compiler, and boot using either the 3 parameter version of bootm or using a FIT all-in-one image (preferred).

txt>

See also the linux documentation:

booting-without-of.txt>

and some more FDT background:

http://www.denx.de/wiki/view/U-Boot/UBootFdtInfo#Background_Information_on_Flatte>

If you have specific questions after reading the above, ask away.

Best regards,

gvb

#3 lore raw
Quoted 6 lines · anupbehare at gmail.com

Hi Jerry,

Thanks for the information.

Please find my understanding about dts:
1. I will have to create board specific *.dts file.

Yes. You should start with one from the linux source tree that matches your essential hardware as closely as possible. Get the basic functionality working and then add non-essential configuration later.

Quoted 5 lines

2. Need to download latest dtc compiler.
3. Compile dts file using dtc compiler which will generate *.dtb file
4. Enable following macros in u-boot code
#define CONFIG_OF_LIBFDT
#define CONFIG_OF_BOARD_SETUP

Yes to all of the above.

Quoted 1 line

5. Apart from these macros no code changes in u-boot source code.

Probably ;-)

Quoted 2 lines

Thanks,
Anup B.

Best regards,
gvb

[snip]