[U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?

I define CONFIG_OF_FLAT_TREE support under u-boot.I just want to know how can I get/set the third address(the address of the device-tree blob) that we will use at bootm command?Thanks ahead,
Sincerely, Jie
--------------------------------- Never miss a thing. Make Yahoo your homepage.

jie han wrote:
I define CONFIG_OF_FLAT_TREE support under u-boot.I just want to know how can I get/set the third address(the address of the device-tree blob) that we will use at bootm command?Thanks ahead,
Sincerely, Jie
Hi Jie,
Board and processor are??? U-boot version is???
You most likely want to define CONFIG_OF_LIBFDT, CONFIG_OF_FLAT_TREE is deprecated.
I'm presuming you are using a recent u-boot (preferably tip-o-tree).
The device tree blob will be where you load it. :-) TFTP is a convenient method...
Your question could be interpreted that you don't have a blob to load. If not, you need to generate a blob using a FDT source file (.dts) that describes your hardware and compiled it with "dtc". Example FDT sources and the device tree compiler itself are now part of the linux kernel sources.
Good luck, gvb

What's different between CONFIG_OF_LIBFDT and CONFIG_OF_FLAT_TREE? My board is mpc8641d and u-boot version is 1.3.1. I f I define CONFIG_OF_FLAT_TREE,and u-boot command bootm will call ft_setup() function, and how is it work?I found DTS files under kernel /arch/powerpc/sysDev directory,Could you give me some advice how to build it?
Thanks,
Jie
Jerry Van Baren gerald.vanbaren@ge.com wrote: jie han wrote:
I define CONFIG_OF_FLAT_TREE support under u-boot.I just want to know how can I get/set the third address(the address of the device-tree blob) that we will use at bootm command?Thanks ahead,
Sincerely, Jie
Hi Jie,
Board and processor are??? U-boot version is???
You most likely want to define CONFIG_OF_LIBFDT, CONFIG_OF_FLAT_TREE is deprecated.
I'm presuming you are using a recent u-boot (preferably tip-o-tree).
The device tree blob will be where you load it. :-) TFTP is a convenient method...
Your question could be interpreted that you don't have a blob to load. If not, you need to generate a blob using a FDT source file (.dts) that describes your hardware and compiled it with "dtc". Example FDT sources and the device tree compiler itself are now part of the linux kernel sources.
Good luck, gvb
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
--------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search.

jie han wrote:
What's different between CONFIG_OF_LIBFDT and CONFIG_OF_FLAT_TREE?
CONFIG_OF_FLAT_TREE was the original FDT interface code and had a ...uh... funky interface. David Gibson wrote a FDT library intended for embedded use and CONFIG_OF_LIBFDT uses that. We've been switching processors/boards over. I believe the switchover is mostly complete.
My board is mpc8641d and u-boot version is 1.3.1.
No direct experience, but I believe that is good. Is this a custom board or an eval board? If it is a custom board, you will need to generate an appropriate *.dts file by customizing an example.
I f I define CONFIG_OF_FLAT_TREE,and u-boot command bootm will call ft_setup() function, and how is it work?
With CONFIG_OF_LIBFDT, bootm calls the appropriate board and processor setup routines fdt_chosen() and ft_board_setup().
Note that CONFIG_OF_LIBFDT adds the "fdt" command which is very helpful for printing out out (and modifying) blob data.
I found DTS files under kernel /arch/powerpc/sysDev directory,Could you give me some advice how to build it?
You need to build the device tree compiler (dtc). You can get the source from Jon Loeliger's repository: http://jdl.com/git_repos/
Thanks, Jie
[snip]
gvb

Hello, I've made a port of u-boot-1.3.1 to a WindRiver sbc8256 board with CONFIG_OF_LIBFDT defined. Is the dtc-1.0.0 usable along with the U-boot version 1.3.1 or do I need to get a newer dtc?
Cheers // Matias
jie han wrote:
What's different between CONFIG_OF_LIBFDT and CONFIG_OF_FLAT_TREE?
CONFIG_OF_FLAT_TREE was the original FDT interface code and had a ...uh... funky interface. David Gibson wrote a FDT library intended for embedded use and CONFIG_OF_LIBFDT uses that. We've been switching processors/boards over. I believe the switchover is mostly complete.
My board is mpc8641d and u-boot version is 1.3.1.
No direct experience, but I believe that is good. Is this a custom board or an eval board? If it is a custom board, you will need to generate an appropriate *.dts file by customizing an example.
I f I define CONFIG_OF_FLAT_TREE,and u-boot command bootm will call ft_setup() function, and how is it work?
With CONFIG_OF_LIBFDT, bootm calls the appropriate board and processor setup routines fdt_chosen() and ft_board_setup().
Note that CONFIG_OF_LIBFDT adds the "fdt" command which is very helpful for printing out out (and modifying) blob data.
I found DTS files under kernel /arch/powerpc/sysDev directory,Could you give me some advice how to build it?
You need to build the device tree compiler (dtc). You can get the source from Jon Loeliger's repository: http://jdl.com/git_repos/
Thanks, Jie
[snip]
gvb
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

On Thu, 2008-01-10 at 07:01, samppa@sundmangroup.com wrote:
Hello, I've made a port of u-boot-1.3.1 to a WindRiver sbc8256 board with CONFIG_OF_LIBFDT defined. Is the dtc-1.0.0 usable along with the U-boot version 1.3.1 or do I need to get a newer dtc?
Please do get a newer DTC. Lots of really necessary bits have been added to it since then, and the DTC 1.1 release is quite imminent.
Thanks, jdl
participants (4)
-
Jerry Van Baren
-
jie han
-
Jon Loeliger
-
samppa@sundmangroup.com