DTC failure on /memreserve/ if moved after /include/

Grant Likely grant.likely at secretlab.ca
Tue May 3 06:13:49 EST 2011


cc'ing David Gibson and Jon Loeliger who both can do a better job of
answering this question.

g.


On Mon, May 2, 2011 at 12:54 PM, Stephen Warren <swarren at nvidia.com> wrote:
> The following from tegra-harmony.dts compiles fine:
>
>    /dts-v1/;
>
>    /memreserve/ 0x1c000000 0x04000000;
>    /include/ "tegra250.dts"
>
>    / {
>
> However, if I re-order this as follows:
>
>    /dts-v1/;
>    /include/ "tegra250.dts"
>
>    /memreserve/ 0x1c000000 0x04000000;
>
>    / {
>
> Then dtc fails:
>
>      DTC     arch/arm/boot/tegra-harmony.dtb
>    DTC: dts->dtb  on file "arch/arm/boot/dts/tegra-harmony.dts"
>    Error: arch/arm/boot/dts/tegra-harmony.dts:4.1-13 syntax error
>    FATAL ERROR: Unable to parse input tree
>    make[1]: *** [arch/arm/boot/tegra-harmony.dtb] Error 1
>
> Is this a dtc bug, or does the DTS syntax actually disallow this?
>
> Thanks.
>
> --
> nvpublic
>
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the devicetree-discuss mailing list