public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
@ 2008-01-09 19:29 jie han
  2008-01-09 19:55 ` Jerry Van Baren
  0 siblings, 1 reply; 6+ messages in thread
From: jie han @ 2008-01-09 19:29 UTC (permalink / raw)
  To: u-boot

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080109/ef9f67c8/attachment.htm 

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

* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
  2008-01-09 19:29 [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE? jie han
@ 2008-01-09 19:55 ` Jerry Van Baren
  2008-01-09 20:14   ` jie han
  0 siblings, 1 reply; 6+ messages in thread
From: Jerry Van Baren @ 2008-01-09 19:55 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
  2008-01-09 19:55 ` Jerry Van Baren
@ 2008-01-09 20:14   ` jie han
  2008-01-09 20:37     ` Jerry Van Baren
  0 siblings, 1 reply; 6+ messages in thread
From: jie han @ 2008-01-09 20:14 UTC (permalink / raw)
  To: u-boot

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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080109/72c8b746/attachment.htm 

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

* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
  2008-01-09 20:14   ` jie han
@ 2008-01-09 20:37     ` Jerry Van Baren
  2008-01-10 13:01       ` samppa at sundmangroup.com
  0 siblings, 1 reply; 6+ messages in thread
From: Jerry Van Baren @ 2008-01-09 20:37 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
  2008-01-09 20:37     ` Jerry Van Baren
@ 2008-01-10 13:01       ` samppa at sundmangroup.com
  2008-01-10 20:52         ` Jon Loeliger
  0 siblings, 1 reply; 6+ messages in thread
From: samppa at sundmangroup.com @ 2008-01-10 13:01 UTC (permalink / raw)
  To: u-boot

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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

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

* [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE?
  2008-01-10 13:01       ` samppa at sundmangroup.com
@ 2008-01-10 20:52         ` Jon Loeliger
  0 siblings, 0 replies; 6+ messages in thread
From: Jon Loeliger @ 2008-01-10 20:52 UTC (permalink / raw)
  To: u-boot

On Thu, 2008-01-10 at 07:01, samppa at 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

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

end of thread, other threads:[~2008-01-10 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-09 19:29 [U-Boot-Users] How to define CONFIG_OF_FLAT_TREE? jie han
2008-01-09 19:55 ` Jerry Van Baren
2008-01-09 20:14   ` jie han
2008-01-09 20:37     ` Jerry Van Baren
2008-01-10 13:01       ` samppa at sundmangroup.com
2008-01-10 20:52         ` Jon Loeliger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox