public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
@ 2013-08-23  6:36 TigerLiu at viatech.com.cn
  2013-08-23 19:52 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-08-23  6:36 UTC (permalink / raw)
  To: u-boot

Hi, experts:

I have a question about supporting FDT in uboot.

1. If i want to provide FDT support function in uboot code, just need to
:

Define CONFIG_OF_LIBFDT in vendor_config.h

If my uImage is still a single component image, not need to define
CONFIG_FIT at the same time?

    

Best wishes,

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

* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
  2013-08-23  6:36 [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT TigerLiu at viatech.com.cn
@ 2013-08-23 19:52 ` Tom Rini
  2013-08-26  2:40   ` TigerLiu at viatech.com.cn
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2013-08-23 19:52 UTC (permalink / raw)
  To: u-boot

On Fri, Aug 23, 2013 at 02:36:23PM +0800, TigerLiu at viatech.com.cn wrote:
> Hi, experts:
> 
> I have a question about supporting FDT in uboot.
> 
> 1. If i want to provide FDT support function in uboot code, just need to
> :
> 
> Define CONFIG_OF_LIBFDT in vendor_config.h
> 
> If my uImage is still a single component image, not need to define
> CONFIG_FIT at the same time?

CONFIG_FIT and CONFIG_OF_LIBFDT are indeed unrelated options.  You can
use DT files with legacy images and plain zImages as well.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130823/72dc7fd5/attachment.pgp>

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

* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
  2013-08-23 19:52 ` Tom Rini
@ 2013-08-26  2:40   ` TigerLiu at viatech.com.cn
  2013-08-26 12:55     ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-08-26  2:40 UTC (permalink / raw)
  To: u-boot

Hi, Rini:
>CONFIG_FIT and CONFIG_OF_LIBFDT are indeed unrelated options.  You can
>use DT files with legacy images and plain zImages as well.

Thanks for your reply!

I also have a question about CONFIG_OF_CONTROL.
If CONFIG_OF_CONTROL is defined, then Uboot will use FDT to configure
device.
But based on README, it said:
This option is experimental and only available on a few boards.

So, most currently released u-boot binary still didn't use FDT to
configure device during uboot posting phase?
Just use FDT as kernel parameter passed to linux kernel's entry point?

Best wishes,

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

* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
  2013-08-26  2:40   ` TigerLiu at viatech.com.cn
@ 2013-08-26 12:55     ` Tom Rini
  2013-08-27  1:32       ` TigerLiu at viatech.com.cn
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2013-08-26 12:55 UTC (permalink / raw)
  To: u-boot

On Mon, Aug 26, 2013 at 10:40:27AM +0800, TigerLiu at viatech.com.cn wrote:
> Hi, Rini:
> >CONFIG_FIT and CONFIG_OF_LIBFDT are indeed unrelated options.  You can
> >use DT files with legacy images and plain zImages as well.
> 
> Thanks for your reply!
> 
> I also have a question about CONFIG_OF_CONTROL.
> If CONFIG_OF_CONTROL is defined, then Uboot will use FDT to configure
> device.
> But based on README, it said:
> This option is experimental and only available on a few boards.
> 
> So, most currently released u-boot binary still didn't use FDT to
> configure device during uboot posting phase?

Correct.  Only a few drivers have been converted at this time.  Frankly,
I would like to see things stabilize within the kernel a bit more, make
sure people really are happy with the bindings they need for a
particular thing, and then we can see about using them again in U-Boot.

> Just use FDT as kernel parameter passed to linux kernel's entry point?

That is one use, yes.  But that may or may not be a recommended way to
store the FDT for a platform (based on some discussion on the
devicetrees mailing list, while there's no formal recommendations yet,
having the shipped with platform FDT be done in such a way that it can
be updated is strongly encouraged, possibly without having to replace
the rest of the firmware as that's seen as a possible way to brick the
hardware).

If you're planning on shipping hardware soon, with a device tree
embedded within it, I would strongly encourage talking with
devicetrees at vger.kernel.org about how to best do it, for your platform.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130826/5b9c6e0b/attachment.pgp>

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

* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
  2013-08-26 12:55     ` Tom Rini
@ 2013-08-27  1:32       ` TigerLiu at viatech.com.cn
  2013-08-27  2:04         ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-08-27  1:32 UTC (permalink / raw)
  To: u-boot

Hi,Rini:
Thanks for your reply!
>> Just use FDT as kernel parameter passed to linux kernel's entry
point?
>
>That is one use, yes.  But that may or may not be a recommended way to
>store the FDT for a platform (based on some discussion on the
>devicetrees mailing list, while there's no formal recommendations yet,
>having the shipped with platform FDT be done in such a way that it can
>be updated is strongly encouraged, possibly without having to replace
>the rest of the firmware as that's seen as a possible way to brick the
>hardware).
>
>If you're planning on shipping hardware soon, with a device tree
>embedded within it, I would strongly encourage talking with
>devicetrees at vger.kernel.org about how to best do it, for your platform.

So, based on your experience:
Do most ARM SOC production vendors adopt which way to store dtb binary?

I think storing dtb binary into a dedicated nv-storage(such as : some
blocks in NAND chip) is a better way.

Best wishes,

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

* [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT
  2013-08-27  1:32       ` TigerLiu at viatech.com.cn
@ 2013-08-27  2:04         ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2013-08-27  2:04 UTC (permalink / raw)
  To: u-boot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/26/2013 09:32 PM, TigerLiu at viatech.com.cn wrote:
> Hi,Rini: Thanks for your reply!
>>> Just use FDT as kernel parameter passed to linux kernel's
>>> entry
> point?
>> 
>> That is one use, yes.  But that may or may not be a recommended
>> way to store the FDT for a platform (based on some discussion on
>> the devicetrees mailing list, while there's no formal
>> recommendations yet, having the shipped with platform FDT be done
>> in such a way that it can be updated is strongly encouraged,
>> possibly without having to replace the rest of the firmware as
>> that's seen as a possible way to brick the hardware).
>> 
>> If you're planning on shipping hardware soon, with a device tree 
>> embedded within it, I would strongly encourage talking with 
>> devicetrees at vger.kernel.org about how to best do it, for your
>> platform.
> 
> So, based on your experience: Do most ARM SOC production vendors
> adopt which way to store dtb binary?
> 
> I think storing dtb binary into a dedicated nv-storage(such as :
> some blocks in NAND chip) is a better way.

The best way to do it is something being actively discussed as today
not many vendors do but we're rapidly approaching the point where
vendors ship hardware with kernels that use DT for most things so the
problem needs to be solved, or at least recommendations made.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSHAlIAAoJENk4IS6UOR1WD3sQAJvub6k4sSqQVMXt/yhGQMi0
Fubw/nh1XWRq3LSgC3clGKvFfGqqBds1kv2DNKyDwnbLwIL+cy3hho30Cce8zK0f
55g1ZRD7G4OPd8jCSM/Sg0S87EJ20J55KfnUxU9Mc3u0lbnpUmF4zMX8cZnowZ3D
bxcUTSlaJ6UD25ZtgiKxW0gJqszNobjqPuf+edJj1UD2vGV7U+u7gLNXxO9HZcaw
ITq7z5ir5TtyLEwyS7+u2QIOowQb06jf/jfvva4GJI/kDyHzbW2uJb49myiFEflT
bjyRciI+VRA8oAHUFe+yDgjuB2M6HHguSqhpT0bd9BVyoQZTz5gDBtuE7MsI0kgC
T/bsJ4aMUN/elF2BDZLoGTdLaaFmr9te/FkLbnHSRk40okCjoal6vtMeDPuQGi7/
LEkH+EqCALVmRyurkhMexz/lZW9jZh81kgPvcj1bMC8hKERmzUAtNsPgGAkRx3TA
Tk2Vj0woIwp5NuPGzVVf1b+DRzqVNnOs7qNLabIvfYkUEs+RjsZgGqc/Lv96WKAP
HtHcXdhXM4IiSu8HqEPTdUA0FfQaYnSp3RokOCrDDkNh0AYYV/Kn1Lm/s+j47TQ5
gxRzJLwAApVXrQLOtmRul/Pu54SRqWhEAjMKhnE5bVPSqQtvu7SW+SXooTtHkm6J
TzEfk7jzyBM/KHE5fDlq
=gM85
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2013-08-27  2:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23  6:36 [U-Boot] [U-boot] CONFIG_FIT and CONFIG_OF_LIBFDT TigerLiu at viatech.com.cn
2013-08-23 19:52 ` Tom Rini
2013-08-26  2:40   ` TigerLiu at viatech.com.cn
2013-08-26 12:55     ` Tom Rini
2013-08-27  1:32       ` TigerLiu at viatech.com.cn
2013-08-27  2:04         ` Tom Rini

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