* [fedora-arm] precedence of built-in vs. platform trees?
@ 2012-11-29 6:39 Jon Masters
[not found] ` <50B7033C.3030204-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jon Masters @ 2012-11-29 6:39 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Cc: arm-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
Hey guys,
I apologize if I should have RTFM. If a platform provides a device tree
at boot time, and the kernel also has a tree appended, what behavior is
supposed to happen? i.e. what is the standard that is anticipated here?
Jon.
_______________________________________________
arm mailing list
arm@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/arm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [fedora-arm] precedence of built-in vs. platform trees?
[not found] ` <50B7033C.3030204-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org>
@ 2012-11-29 11:06 ` Leif Lindholm
2012-11-29 11:46 ` Grant Likely
1 sibling, 0 replies; 4+ messages in thread
From: Leif Lindholm @ 2012-11-29 11:06 UTC (permalink / raw)
To: Jon Masters
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
arm-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
On Thu, Nov 29, 2012 at 01:39:56AM -0500, Jon Masters wrote:
> Hey guys,
>
> I apologize if I should have RTFM. If a platform provides a device tree
> at boot time, and the kernel also has a tree appended, what behavior is
> supposed to happen? i.e. what is the standard that is anticipated here?
From the kernel config help on CONFIG_ARM_APPENDED_DTB:
<<<
This is meant as a backward compatibility convenience for those
systems with a bootloader that can't be upgraded to accommodate
the documented boot protocol using a device tree.
>>>
and
<<<
Do not leave this option active in a production kernel
if you don't intend to always append a DTB.
>>>
Meaning that if the loader supports passing DTB, the kernel shouldn't
have an appended one.
Apart from that, if you use an appended DTB, this completely overrides
any DTB passed by the loader, so (unless you also enable the unholy
CONFIG_ARM_ATAG_DTB_COMPAT) you also lose the ability to pass kernel
command line options from the loader.
/
Leif
_______________________________________________
arm mailing list
arm@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/arm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: precedence of built-in vs. platform trees?
[not found] ` <50B7033C.3030204-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org>
2012-11-29 11:06 ` Leif Lindholm
@ 2012-11-29 11:46 ` Grant Likely
[not found] ` <CACxGe6uc-E2kHuQeKbJNDgEWLa_DLqDRzC4eRyKReeZTVdQVeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 4+ messages in thread
From: Grant Likely @ 2012-11-29 11:46 UTC (permalink / raw)
To: Jon Masters; +Cc: devicetree-discuss, arm-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
On Thu, Nov 29, 2012 at 6:39 AM, Jon Masters <jonathan-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org> wrote:
> Hey guys,
>
> I apologize if I should have RTFM. If a platform provides a device tree
> at boot time, and the kernel also has a tree appended, what behavior is
> supposed to happen? i.e. what is the standard that is anticipated here?
Hmmm, nobody has asked that before. I don't think it is really defined :-)
I presume that the built-in DT will end up getting used from what I
remember about the code.
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: precedence of built-in vs. platform trees?
[not found] ` <CACxGe6uc-E2kHuQeKbJNDgEWLa_DLqDRzC4eRyKReeZTVdQVeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-11-29 16:06 ` Mitch Bradley
0 siblings, 0 replies; 4+ messages in thread
From: Mitch Bradley @ 2012-11-29 16:06 UTC (permalink / raw)
To: Grant Likely; +Cc: devicetree-discuss, arm-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
On 11/29/2012 1:46 AM, Grant Likely wrote:
> On Thu, Nov 29, 2012 at 6:39 AM, Jon Masters <jonathan-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org> wrote:
>> Hey guys,
>>
>> I apologize if I should have RTFM. If a platform provides a device tree
>> at boot time, and the kernel also has a tree appended, what behavior is
>> supposed to happen? i.e. what is the standard that is anticipated here?
>
> Hmmm, nobody has asked that before. I don't think it is really defined :-)
>
> I presume that the built-in DT will end up getting used from what I
> remember about the code.
That sounds like the right default, but it would be nice if one could
override it with a cmdline option. It's *usually* easier to change the
kernel than the platform firmware or bootloader, but there are
exceptions. In our (OLPC's) case, DT mods can be made trivially by
editing a script (and the firmware includes an editor). We use this
feature all the time in development, and sometimes even for customers,
for testing bug fixes.
>
> g.
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-29 16:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29 6:39 [fedora-arm] precedence of built-in vs. platform trees? Jon Masters
[not found] ` <50B7033C.3030204-Zp4isUonpHBD60Wz+7aTrA@public.gmane.org>
2012-11-29 11:06 ` Leif Lindholm
2012-11-29 11:46 ` Grant Likely
[not found] ` <CACxGe6uc-E2kHuQeKbJNDgEWLa_DLqDRzC4eRyKReeZTVdQVeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-29 16:06 ` Mitch Bradley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).