All of lore.kernel.org
 help / color / mirror / Atom feed
* standalone dtc compiler build from git://git.jdl.com/software/dtc.git  gives error
@ 2012-04-11 17:59 Karicheri, Muralidharan
       [not found] ` <3E54258959B69E4282D79E01AB1F32B7300643-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Karicheri, Muralidharan @ 2012-04-11 17:59 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

Hi, Jon Lolieger,

I have tried using the standalone dtc compiler at git://git.jdl.com/software/dtc.git to compile my dts file and got the following error:-

a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
DTC: dts->dtb  on file "tci6614-evm.dts"
tci6614-evm.dts:4 syntax error

The dtc in the linux tree (Linux version 3.2) is able to compile the dts file and I am able to boot kernel using the dtb. I am using v1.3.0 tag of the dtc git repo. Comparing the files with that under scripts/dtc in the kernel tree, I find they are different. Why is the dtc not able to compile the dts file? How is the dtc tree synced with the Linux kernel tree? As a user, how do I know what version of dtc I need to use for a given kernel release? Any help here?


Murali Karicheri
Software Design Engineer

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

* Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives error
       [not found] ` <3E54258959B69E4282D79E01AB1F32B7300643-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
@ 2012-04-11 18:20   ` Stephen Warren
       [not found]     ` <4F85CB76.1010904-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Warren @ 2012-04-11 18:20 UTC (permalink / raw)
  To: Karicheri, Muralidharan; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

On 04/11/2012 11:59 AM, Karicheri, Muralidharan wrote:
> Hi, Jon Lolieger,
> 
> I have tried using the standalone dtc compiler at git://git.jdl.com/software/dtc.git
> to compile my dts file and got the following error:-
> 
> a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
> DTC: dts->dtb  on file "tci6614-evm.dts"
> tci6614-evm.dts:4 syntax error
> 
...
> Why is the dtc not able to compile the dts file?

I think the only way to answer that is going to be to post your .dts
file, or at least the first 4 or 5 lines of it.

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

* RE: standalone dtc compiler build from git://git.jdl.com/software/dtc.git  gives error
       [not found]     ` <4F85CB76.1010904-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-04-11 22:26       ` Karicheri, Muralidharan
       [not found]         ` <3E54258959B69E4282D79E01AB1F32B7300A78-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Karicheri, Muralidharan @ 2012-04-11 22:26 UTC (permalink / raw)
  To: Stephen Warren; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

>> -----Original Message-----
>> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>> Sent: Wednesday, April 11, 2012 2:21 PM
>> To: Karicheri, Muralidharan
>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> Subject: Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives
>> error
>> 
>> On 04/11/2012 11:59 AM, Karicheri, Muralidharan wrote:
>> > Hi, Jon Lolieger,
>> >
>> > I have tried using the standalone dtc compiler at git://git.jdl.com/software/dtc.git
>> > to compile my dts file and got the following error:-
>> >
>> > a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
>> > DTC: dts->dtb  on file "tci6614-evm.dts"
>> > tci6614-evm.dts:4 syntax error
>> >
>> ...
>> > Why is the dtc not able to compile the dts file?
>> 
>> I think the only way to answer that is going to be to post your .dts
>> file, or at least the first 4 or 5 lines of it.

Stephen,

Thanks for responding.

Here it is 

/dts-v1/;
/include/ "skeleton.dtsi"

/ {
        model = "Texas Instruments TCI6614 EVM";
        compatible = "ti,tci6614-evm";
        #address-cells = <1>;
        #size-cells = <1>;

And "skeleton.dtsi" has 

/*
 * Skeleton device tree; the bare minimum needed to boot; just include and
 * add a compatible value.  The bootloader will typically populate the memory
 * node.
 */

/ {
        #address-cells = <1>;
        #size-cells = <1>;
        chosen { };
        aliases { };
        memory { device_type = "memory"; reg = <0 0>; };
};

BTW, the dtc compiler in the Linux kernel tree runs fine. Also I get the same error when I run the
dtc against other existing dts files in the Linux 3.2 kernel tree. Any clue?

Thanks

Murali

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

* Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives error
       [not found]         ` <3E54258959B69E4282D79E01AB1F32B7300A78-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
@ 2012-04-11 23:13           ` Stephen Warren
       [not found]             ` <4F861023.7080307-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Warren @ 2012-04-11 23:13 UTC (permalink / raw)
  To: Karicheri, Muralidharan; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

On 04/11/2012 04:26 PM, Karicheri, Muralidharan wrote:
>>> -----Original Message-----
>>> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>>> Sent: Wednesday, April 11, 2012 2:21 PM
>>> To: Karicheri, Muralidharan
>>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>>> Subject: Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives
>>> error
>>>
>>> On 04/11/2012 11:59 AM, Karicheri, Muralidharan wrote:
>>>> Hi, Jon Lolieger,
>>>>
>>>> I have tried using the standalone dtc compiler at git://git.jdl.com/software/dtc.git
>>>> to compile my dts file and got the following error:-
>>>>
>>>> a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
>>>> DTC: dts->dtb  on file "tci6614-evm.dts"
>>>> tci6614-evm.dts:4 syntax error
>>>>
>>> ...
>>>> Why is the dtc not able to compile the dts file?
>>>
>>> I think the only way to answer that is going to be to post your .dts
>>> file, or at least the first 4 or 5 lines of it.
> 
> Stephen,
> 
> Thanks for responding.
> 
> Here it is 
> ...

That's odd. I just tried both v1.3.0 and master dtc, and could compile
your example just fine. I also compiled
arch/arm/boot/dts/tegra-cardhu.dts from the kernel (next-20120411). Both
worked fine.

Note that I get the error you're seeing if I run Ubuntu's packaged dtc,
which is 1.1.0.dfsg-1build1 on my system. Are you sure you're running
the dtc binary you think you are?

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

* RE: standalone dtc compiler build from git://git.jdl.com/software/dtc.git  gives error
       [not found]             ` <4F861023.7080307-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2012-04-13 15:26               ` Karicheri, Muralidharan
       [not found]                 ` <3E54258959B69E4282D79E01AB1F32B7302875-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Karicheri, Muralidharan @ 2012-04-13 15:26 UTC (permalink / raw)
  To: Stephen Warren; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

Stephen,
>> -----Original Message-----
>> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>> Sent: Wednesday, April 11, 2012 7:14 PM
>> To: Karicheri, Muralidharan
>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> Subject: Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives
>> error
>> 
>> On 04/11/2012 04:26 PM, Karicheri, Muralidharan wrote:
>> >>> -----Original Message-----
>> >>> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>> >>> Sent: Wednesday, April 11, 2012 2:21 PM
>> >>> To: Karicheri, Muralidharan
>> >>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> >>> Subject: Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git
>> gives
>> >>> error
>> >>>
>> >>> On 04/11/2012 11:59 AM, Karicheri, Muralidharan wrote:
>> >>>> Hi, Jon Lolieger,
>> >>>>
>> >>>> I have tried using the standalone dtc compiler at git://git.jdl.com/software/dtc.git
>> >>>> to compile my dts file and got the following error:-
>> >>>>
>> >>>> a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
>> >>>> DTC: dts->dtb  on file "tci6614-evm.dts"
>> >>>> tci6614-evm.dts:4 syntax error
>> >>>>
>> >>> ...
>> >>>> Why is the dtc not able to compile the dts file?
>> >>>
>> >>> I think the only way to answer that is going to be to post your .dts
>> >>> file, or at least the first 4 or 5 lines of it.
>> >
>> > Stephen,
>> >
>> > Thanks for responding.
>> >
>> > Here it is
>> > ...
>> 
>> That's odd. I just tried both v1.3.0 and master dtc, and could compile
>> your example just fine. I also compiled
>> arch/arm/boot/dts/tegra-cardhu.dts from the kernel (next-20120411). Both
>> worked fine.
>> 
>> Note that I get the error you're seeing if I run Ubuntu's packaged dtc,
>> which is 1.1.0.dfsg-1build1 on my system. Are you sure you're running
>> the dtc binary you think you are?

You are right. I never realized that I had a host version of dtc. The problem doesn't happen when I used the git version and I could boot up Linux using the DTB. Now I see the same error when run the command on an ARM
Target machine. I have cross compiled the dtc (using oe (actually Arago)). Not sure if anyone tried this on an ARM target.

root@tci6614-evm:/# ./dtc -I dts -O dtb -o tci6614-evm.dtb tci6614-evm.dts -q
DTC: dts->dtb  on file "tci6614-evm.dts"
tci6614-evm.dts:4 syntax error
FATAL ERROR: Unable to parse input tree
root@tci6614-evm:/# ./dtc -v
Version: DTC 1.2.0

root@tci6614-evm:/# cat tci6614-evm.dts
/dts-v1/;
/include/ "skeleton.dtsi"

/ {
        model = "Texas Instruments TCI6614 EVM";
        compatible = "ti,tci6614-evm";
        #address-cells = <1>;
        #size-cells = <1>;

        chosen {
                bootargs = "console=ttyS0,115200n8 mem=512M rootwait=1 rw ubi.mt
d=2,2048 rootfstype=ubifs root=ubi0:rootfs";
        };

root@tci6614-evm:/# cat skeleton.dtsi
/*
 * Skeleton device tree; the bare minimum needed to boot; just include and
 * add a compatible value.  The bootloader will typically populate the memory
 * node.
 */

/ {
        #address-cells = <1>;
        #size-cells = <1>;
        chosen { };
        aliases { };
        memory { device_type = "memory"; reg = <0 0>; };
};

Murali

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

* RE: standalone dtc compiler build from git://git.jdl.com/software/dtc.git  gives error
       [not found]                 ` <3E54258959B69E4282D79E01AB1F32B7302875-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
@ 2012-04-13 15:31                   ` Karicheri, Muralidharan
  0 siblings, 0 replies; 6+ messages in thread
From: Karicheri, Muralidharan @ 2012-04-13 15:31 UTC (permalink / raw)
  To: Karicheri, Muralidharan, Stephen Warren
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

>> -----Original Message-----
>> From: devicetree-discuss-bounces+m-karicheri2=ti.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> [mailto:devicetree-discuss-bounces+m-karicheri2=ti.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org] On Behalf Of
>> Karicheri, Muralidharan
>> Sent: Friday, April 13, 2012 11:26 AM
>> To: Stephen Warren
>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> Subject: RE: standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives
>> error
>> 
>> Stephen,
>> >> -----Original Message-----
>> >> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>> >> Sent: Wednesday, April 11, 2012 7:14 PM
>> >> To: Karicheri, Muralidharan
>> >> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> >> Subject: Re: standalone dtc compiler build from git://git.jdl.com/software/dtc.git
>> gives
>> >> error
>> >>
>> >> On 04/11/2012 04:26 PM, Karicheri, Muralidharan wrote:
>> >> >>> -----Original Message-----
>> >> >>> From: Stephen Warren [mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org]
>> >> >>> Sent: Wednesday, April 11, 2012 2:21 PM
>> >> >>> To: Karicheri, Muralidharan
>> >> >>> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> >> >>> Subject: Re: standalone dtc compiler build from
>> git://git.jdl.com/software/dtc.git
>> >> gives
>> >> >>> error
>> >> >>>
>> >> >>> On 04/11/2012 11:59 AM, Karicheri, Muralidharan wrote:
>> >> >>>> Hi, Jon Lolieger,
>> >> >>>>
>> >> >>>> I have tried using the standalone dtc compiler at
>> git://git.jdl.com/software/dtc.git
>> >> >>>> to compile my dts file and got the following error:-
>> >> >>>>
>> >> >>>> a0868495@ares-ubuntu:~/dtc$ dtc -I dts -O dtb tci6614-evm.dts
>> >> >>>> DTC: dts->dtb  on file "tci6614-evm.dts"
>> >> >>>> tci6614-evm.dts:4 syntax error
>> >> >>>>
>> >> >>> ...
>> >> >>>> Why is the dtc not able to compile the dts file?
>> >> >>>
>> >> >>> I think the only way to answer that is going to be to post your .dts
>> >> >>> file, or at least the first 4 or 5 lines of it.
>> >> >
>> >> > Stephen,
>> >> >
>> >> > Thanks for responding.
>> >> >
>> >> > Here it is
>> >> > ...
>> >>
>> >> That's odd. I just tried both v1.3.0 and master dtc, and could compile
>> >> your example just fine. I also compiled
>> >> arch/arm/boot/dts/tegra-cardhu.dts from the kernel (next-20120411). Both
>> >> worked fine.
>> >>
>> >> Note that I get the error you're seeing if I run Ubuntu's packaged dtc,
>> >> which is 1.1.0.dfsg-1build1 on my system. Are you sure you're running
>> >> the dtc binary you think you are?
>> 
>> You are right. I never realized that I had a host version of dtc. The problem doesn't
>> happen when I used the git version and I could boot up Linux using the DTB. Now I see
>> the same error when run the command on an ARM
>> Target machine. I have cross compiled the dtc (using oe (actually Arago)). Not sure if
>> anyone tried this on an ARM target.
>> 
>> root@tci6614-evm:/# ./dtc -I dts -O dtb -o tci6614-evm.dtb tci6614-evm.dts -q
>> DTC: dts->dtb  on file "tci6614-evm.dts"
>> tci6614-evm.dts:4 syntax error
>> FATAL ERROR: Unable to parse input tree
>> root@tci6614-evm:/# ./dtc -v
>> Version: DTC 1.2.0
>> 
>> root@tci6614-evm:/# cat tci6614-evm.dts
>> /dts-v1/;
>> /include/ "skeleton.dtsi"
>> 
>> / {
>>         model = "Texas Instruments TCI6614 EVM";
>>         compatible = "ti,tci6614-evm";
>>         #address-cells = <1>;
>>         #size-cells = <1>;
>> 
>>         chosen {
>>                 bootargs = "console=ttyS0,115200n8 mem=512M rootwait=1 rw ubi.mt
>> d=2,2048 rootfstype=ubifs root=ubi0:rootfs";
>>         };
>> 
>> root@tci6614-evm:/# cat skeleton.dtsi
>> /*
>>  * Skeleton device tree; the bare minimum needed to boot; just include and
>>  * add a compatible value.  The bootloader will typically populate the memory
>>  * node.
>>  */
>> 
>> / {
>>         #address-cells = <1>;
>>         #size-cells = <1>;
>>         chosen { };
>>         aliases { };
>>         memory { device_type = "memory"; reg = <0 0>; };
>> };
>> 

The problem is with the oe build. I had done cross compiling outside oe and it seems to work fine. Anyways thanks for your help.

>> Murali
>> 
>> 
>> _______________________________________________
>> devicetree-discuss mailing list
>> devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> https://lists.ozlabs.org/listinfo/devicetree-discuss

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

end of thread, other threads:[~2012-04-13 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 17:59 standalone dtc compiler build from git://git.jdl.com/software/dtc.git gives error Karicheri, Muralidharan
     [not found] ` <3E54258959B69E4282D79E01AB1F32B7300643-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-04-11 18:20   ` Stephen Warren
     [not found]     ` <4F85CB76.1010904-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-11 22:26       ` Karicheri, Muralidharan
     [not found]         ` <3E54258959B69E4282D79E01AB1F32B7300A78-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-04-11 23:13           ` Stephen Warren
     [not found]             ` <4F861023.7080307-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-13 15:26               ` Karicheri, Muralidharan
     [not found]                 ` <3E54258959B69E4282D79E01AB1F32B7302875-n31QHH/4pUCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-04-13 15:31                   ` Karicheri, Muralidharan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.