From: Michal Suchanek <hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Pantelis Antoniou
<pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
Cc: Geert Uytterhoeven
<geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: device tree compiler with overlay support?
Date: Thu, 7 May 2015 16:57:21 +0200 [thread overview]
Message-ID: <CAOMqctQSE6UZgK1xquBTMFjdeAyYD0XTUE96Yepeck0PSM_4JA@mail.gmail.com> (raw)
In-Reply-To: <E8C27FD0-CF22-4D8F-AC05-55518BEF4B84-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
On 7 May 2015 at 09:28, Pantelis Antoniou
<pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org> wrote:
> Hi Geert,
>
>> On May 7, 2015, at 10:17 , Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> wrote:
>>
>> On Tue, May 5, 2015 at 6:51 PM, Michal Suchanek <hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>> On 5 May 2015 at 17:18, Michal Suchanek <hramrach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>>> where is a device tree compiler that can compile an overlay?
>>>>
>>>> The compiler at git://git.kernel.org/pub/scm/utils/dtc/dtc.git shrieks
>>>> there is a syntax error as soon as the /plugin/ tag is present.
>>>
>>> ok, so I found a dtc patch here https://lkml.org/lkml/2013/1/4/295
>>>
>>> This does not apply cleanly to current DTC but the parts that fail are
>>> due to cosmetic changes in the code so I went ahead and applied it.
>>
>> Thanks for the link! That patch indeed requires some manual rework.
>>
>>> However, the created blob is not what the kernel can accept into
>>> of_overlay_create so what do I do with the blob to load it?
>>
>> Use "OF: DT-Overlay configfs interface" from Pantelis?
>>
>> That depends on "configfs: Implement binary attributes", also from Pantelis,
>> which requires reverting commit 28444a2bde8d1695i ("configfs_add_file:
>> fold into its sole caller").
>>
>> All of the above require manual fixups to apply.
>>
>> Still have to try the actual loading, new to the overlay game on mainline
>> kernels (I did use it on boneblack with its original kernel and its overlay
>> manager).
>>
>
> Posted the patches recently, but for your convenience here’s the git tree.
>
> https://github.com/pantoniou/dtc/tree/dt-overlays5
>
> FWIW, I’ll post the capemgr patch today too.
FWIW here is a separate branch with the dt overlay stuff I am running.
https://github.com/hramrach/linux-sunxi/commits/dt-overlay
You might want to look at the small fixes there.
It is worth noting that with your version of the patch adding -@ dtc
option the built board dtbs do not contain the symbols needed for
overlays unless overlays are enabled. So far dtbs were static wrt
build options AFAIK. That is they were either built or not but unless
the sources in question changed the dtbs would be the same.
Introducing this option dynamically based on CONFIG_OF_OVERLAY makes
dtbs content config dependent which does not seem like a very good
idea.
In fact I think -@ should be the default on compilers that support it
and might be optionally turned off.
Maybe some statistic of the size of the symbol table so generated and
relative size increase for various boards might be nice thing to
have.
Thanks
Michal
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-05-07 14:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 15:18 device tree compiler with overlay support? Michal Suchanek
[not found] ` <CAOMqctSZObmoJQocCg3JvCA=ZDvvrxzKC9Ko=aq0J=LphNW+EA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-05 16:51 ` Michal Suchanek
[not found] ` <CAOMqctT3WuqMTqaqUTN44zA2TEYmP9X7SN8ufTouQFoy=GjB1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-06 17:18 ` Michal Suchanek
2015-05-07 7:17 ` Geert Uytterhoeven
[not found] ` <CAMuHMdU=WySZ8kfaVmU6Bed=ofvrDQ9s51m7zyXN0qu-G-d4cg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 7:28 ` Pantelis Antoniou
[not found] ` <E8C27FD0-CF22-4D8F-AC05-55518BEF4B84-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-07 8:07 ` Michal Suchanek
[not found] ` <CAOMqctRPiPFtNAMBa5eZx=erL4xtohMxXAeFeMG-7KZaRxDnew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 8:09 ` Pantelis Antoniou
[not found] ` <67E0CBA3-C499-4A98-9F23-E228E334546D-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>
2015-05-07 8:28 ` Michal Suchanek
[not found] ` <CAOMqctQUhV6=YyyZNT7Kzmd5pYYaYNxA2F+c9RCH98fUabzMUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 10:24 ` Michal Suchanek
[not found] ` <CAOMqctR5ZmgCQNqzoZv6hwAJ0h-r89fPabkK6hVCVeS2io7+Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 13:22 ` Michal Suchanek
2015-05-07 13:18 ` Michal Suchanek
2015-05-07 14:57 ` Michal Suchanek [this message]
2015-05-07 7:48 ` Pantelis Antoniou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOMqctQSE6UZgK1xquBTMFjdeAyYD0XTUE96Yepeck0PSM_4JA@mail.gmail.com \
--to=hramrach-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org \
--cc=pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).