All of lore.kernel.org
 help / color / mirror / Atom feed
* FATAL ERROR: Unable to parse input tree
@ 2022-01-14  4:30 ` kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2022-01-14  4:30 UTC (permalink / raw)
  To: Maxim Kiselev; +Cc: kbuild-all, linux-kernel, 0day robot, Maxim Kochetkov

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20220112-013848/Maxim-Kiselev/powerpc-dts-t1040rdb-fix-ports-names-for-Seville-Ethernet-switch/20211230-184411
head:   50f019b2ff409796f96cd749ecd816ff18575d8b
commit: 50f019b2ff409796f96cd749ecd816ff18575d8b powerpc: dts: t1040rdb: fix ports names for Seville Ethernet switch
date:   2 days ago
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201141251.QpH7HSS3-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/50f019b2ff409796f96cd749ecd816ff18575d8b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20220112-013848/Maxim-Kiselev/powerpc-dts-t1040rdb-fix-ports-names-for-Seville-Ethernet-switch/20211230-184411
        git checkout 50f019b2ff409796f96cd749ecd816ff18575d8b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   Error: arch/powerpc/boot/dts/fsl/t1040rdb.dts:112.1-9 syntax error
>> FATAL ERROR: Unable to parse input tree

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

* FATAL ERROR: Unable to parse input tree
@ 2022-01-14  4:30 ` kernel test robot
  0 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2022-01-14  4:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20220112-013848/Maxim-Kiselev/powerpc-dts-t1040rdb-fix-ports-names-for-Seville-Ethernet-switch/20211230-184411
head:   50f019b2ff409796f96cd749ecd816ff18575d8b
commit: 50f019b2ff409796f96cd749ecd816ff18575d8b powerpc: dts: t1040rdb: fix ports names for Seville Ethernet switch
date:   2 days ago
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201141251.QpH7HSS3-lkp(a)intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/50f019b2ff409796f96cd749ecd816ff18575d8b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20220112-013848/Maxim-Kiselev/powerpc-dts-t1040rdb-fix-ports-names-for-Seville-Ethernet-switch/20211230-184411
        git checkout 50f019b2ff409796f96cd749ecd816ff18575d8b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   Error: arch/powerpc/boot/dts/fsl/t1040rdb.dts:112.1-9 syntax error
>> FATAL ERROR: Unable to parse input tree

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

* Re: FATAL ERROR: Unable to parse input tree
  2014-06-03 14:51               ` Mark Rutland
@ 2014-06-03 15:04                 ` Pacman du34
  0 siblings, 0 replies; 9+ messages in thread
From: Pacman du34 @ 2014-06-03 15:04 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA

Ok I understand.

I am new in the Linux's world, so it's a little bit complicated for
me, for now !

Thank you very much for your attention.

I'll keep searching and looking through what other architectures do,
like you said. And I come back if I need some more help.

Thanks again, your help has been very useful.

Best regards.

2014-06-03 16:51 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> On Tue, Jun 03, 2014 at 03:35:39PM +0100, Pacman du34 wrote:
>> 2014-06-03 15:35 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
>> > On Tue, Jun 03, 2014 at 02:25:25PM +0100, Pacman du34 wrote:
>> >> 2014-06-03 15:02 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
>> >> > On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
>> >> >> Hello all,
>> >> >>
>> >> >> I am working on a new Linux port to a new architecture and I would like
>> >> >> to add a dts file to describe my system.
>> >> >>
>> >> >> So first of all I wrote the following dts test file :
>> >> >>
>> >> >> / {
>> >> >>     compatible = "manufacturer,cpu";
>> >> >> };
>> >> >>
>> >> >> I've read that this is the minimum structure required for a device tree
>> >> >> on the wiki.
>> >> >>
>> >> >> But when I try compiling it with dtc (the first line is the command
>> >> >> line) I get this error message :
>> >> >>
>> >> >> dtc -I dts -O dtb -o my_file.dtb myfile.dts
>> >> >>
>> >> >> Error: myfile.dts:1.1-2 syntax error
>> >> >> FATAL ERROR: Unable to parse input tree
>> >> >
>> >> > You're missing the DTS version. Try:
>> >> >
>> >> > /dts-v1/;
>> >> > / {
>> >> >         comaptible = "manufacturer,device";
>> >> > };
>> >> >
>> >> > Cheers,
>> >> > Mark.
>> >> >
>> >> >>
>> >> >> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
>> >> >> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
>> >> >>
>> >> >> I searched on Google but I have not found relevant information for my issue.
>> >> >>
>> >> >> I really do not understand what the problem here and I am totally stuck.
>> >> >> Any help will be appreciated.
>> >> >>
>> >> >> Thanks a lot in advance.
>> >> >>
>> >> >> Best regards.
>> >>
>> >> That works, thank you very much,
>> >>
>> >> I take this opportunity to ask another question... As I have to
>> >> specify the DTS version, are there other versions, and if yes, what
>> >> are their differences ? I mean, if there are other versions, why to
>> >> choose the vesion 2 instead of 3 or 1 ?
>> >
>> > There was a v0 a while back according to ePAPR, but it's obsolete,
>> > incompatible and no-one uses it anymore (dtc doesn't support it as far
>> > as I can tell). The flag is to tell v1 apart from v0.
>> >
>> > There is not currently a v2 or later. Perhaps there might be in future,
>> > so it's worth keeping the flag around, but at present there's
>> > effectively only v1.
>> >
>> > Cheers,
>> > Mark.
>>
>> Ok thank you very much again for your quick answer.
>>
>> So I'll keep using v1 flag.
>>
>> At the beginning of the porting, I was using a kernel version which
>> does not support Device Tree, I only had a C file to initialize the
>> drivers for my board. And I'm trying to understand how to add the
>> support of Device Tree to the kernel. Because now I have a dtb file,
>> but no message appears during the boot, showing that the kernel knows
>> it must read this file and use the matching device drivers.
>>
>> I have seen that some manufacturers use "config USE_OF", in the
>> Kconfig file, to give the option to add device tree support when
>> compiling the kernel. So I added the same option, but I don't know how
>> to confirm that the kernel is now using device tree.
>>
>> Will it appear some messages, during boot, that indicate the kernel is
>> really using it ?
>
> That would all be up to your architecture code. I'm afraid I can't
> really help with debugging architectural bringup.
>
> I can only recommend that you look through what other architectures do
> as part of their boot sequence, and do something along those lines.
>
> Cheers,
> Mark.
--
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

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

* Re: FATAL ERROR: Unable to parse input tree
       [not found]             ` <CAPH+8+giheV1kcuOAHvUWuDGRL4e2wRO95KJRxA9-o=TRVZ5FQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-03 14:51               ` Mark Rutland
  2014-06-03 15:04                 ` Pacman du34
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2014-06-03 14:51 UTC (permalink / raw)
  To: Pacman du34; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA

On Tue, Jun 03, 2014 at 03:35:39PM +0100, Pacman du34 wrote:
> 2014-06-03 15:35 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> > On Tue, Jun 03, 2014 at 02:25:25PM +0100, Pacman du34 wrote:
> >> 2014-06-03 15:02 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> >> > On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
> >> >> Hello all,
> >> >>
> >> >> I am working on a new Linux port to a new architecture and I would like
> >> >> to add a dts file to describe my system.
> >> >>
> >> >> So first of all I wrote the following dts test file :
> >> >>
> >> >> / {
> >> >>     compatible = "manufacturer,cpu";
> >> >> };
> >> >>
> >> >> I've read that this is the minimum structure required for a device tree
> >> >> on the wiki.
> >> >>
> >> >> But when I try compiling it with dtc (the first line is the command
> >> >> line) I get this error message :
> >> >>
> >> >> dtc -I dts -O dtb -o my_file.dtb myfile.dts
> >> >>
> >> >> Error: myfile.dts:1.1-2 syntax error
> >> >> FATAL ERROR: Unable to parse input tree
> >> >
> >> > You're missing the DTS version. Try:
> >> >
> >> > /dts-v1/;
> >> > / {
> >> >         comaptible = "manufacturer,device";
> >> > };
> >> >
> >> > Cheers,
> >> > Mark.
> >> >
> >> >>
> >> >> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
> >> >> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
> >> >>
> >> >> I searched on Google but I have not found relevant information for my issue.
> >> >>
> >> >> I really do not understand what the problem here and I am totally stuck.
> >> >> Any help will be appreciated.
> >> >>
> >> >> Thanks a lot in advance.
> >> >>
> >> >> Best regards.
> >>
> >> That works, thank you very much,
> >>
> >> I take this opportunity to ask another question... As I have to
> >> specify the DTS version, are there other versions, and if yes, what
> >> are their differences ? I mean, if there are other versions, why to
> >> choose the vesion 2 instead of 3 or 1 ?
> >
> > There was a v0 a while back according to ePAPR, but it's obsolete,
> > incompatible and no-one uses it anymore (dtc doesn't support it as far
> > as I can tell). The flag is to tell v1 apart from v0.
> >
> > There is not currently a v2 or later. Perhaps there might be in future,
> > so it's worth keeping the flag around, but at present there's
> > effectively only v1.
> >
> > Cheers,
> > Mark.
> 
> Ok thank you very much again for your quick answer.
> 
> So I'll keep using v1 flag.
> 
> At the beginning of the porting, I was using a kernel version which
> does not support Device Tree, I only had a C file to initialize the
> drivers for my board. And I'm trying to understand how to add the
> support of Device Tree to the kernel. Because now I have a dtb file,
> but no message appears during the boot, showing that the kernel knows
> it must read this file and use the matching device drivers.
> 
> I have seen that some manufacturers use "config USE_OF", in the
> Kconfig file, to give the option to add device tree support when
> compiling the kernel. So I added the same option, but I don't know how
> to confirm that the kernel is now using device tree.
> 
> Will it appear some messages, during boot, that indicate the kernel is
> really using it ?

That would all be up to your architecture code. I'm afraid I can't
really help with debugging architectural bringup.

I can only recommend that you look through what other architectures do
as part of their boot sequence, and do something along those lines.

Cheers,
Mark.
--
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

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

* Re: FATAL ERROR: Unable to parse input tree
  2014-06-03 13:35         ` Mark Rutland
@ 2014-06-03 14:35           ` Pacman du34
       [not found]             ` <CAPH+8+giheV1kcuOAHvUWuDGRL4e2wRO95KJRxA9-o=TRVZ5FQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Pacman du34 @ 2014-06-03 14:35 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA

2014-06-03 15:35 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> On Tue, Jun 03, 2014 at 02:25:25PM +0100, Pacman du34 wrote:
>> 2014-06-03 15:02 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
>> > On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
>> >> Hello all,
>> >>
>> >> I am working on a new Linux port to a new architecture and I would like
>> >> to add a dts file to describe my system.
>> >>
>> >> So first of all I wrote the following dts test file :
>> >>
>> >> / {
>> >>     compatible = "manufacturer,cpu";
>> >> };
>> >>
>> >> I've read that this is the minimum structure required for a device tree
>> >> on the wiki.
>> >>
>> >> But when I try compiling it with dtc (the first line is the command
>> >> line) I get this error message :
>> >>
>> >> dtc -I dts -O dtb -o my_file.dtb myfile.dts
>> >>
>> >> Error: myfile.dts:1.1-2 syntax error
>> >> FATAL ERROR: Unable to parse input tree
>> >
>> > You're missing the DTS version. Try:
>> >
>> > /dts-v1/;
>> > / {
>> >         comaptible = "manufacturer,device";
>> > };
>> >
>> > Cheers,
>> > Mark.
>> >
>> >>
>> >> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
>> >> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
>> >>
>> >> I searched on Google but I have not found relevant information for my issue.
>> >>
>> >> I really do not understand what the problem here and I am totally stuck.
>> >> Any help will be appreciated.
>> >>
>> >> Thanks a lot in advance.
>> >>
>> >> Best regards.
>>
>> That works, thank you very much,
>>
>> I take this opportunity to ask another question... As I have to
>> specify the DTS version, are there other versions, and if yes, what
>> are their differences ? I mean, if there are other versions, why to
>> choose the vesion 2 instead of 3 or 1 ?
>
> There was a v0 a while back according to ePAPR, but it's obsolete,
> incompatible and no-one uses it anymore (dtc doesn't support it as far
> as I can tell). The flag is to tell v1 apart from v0.
>
> There is not currently a v2 or later. Perhaps there might be in future,
> so it's worth keeping the flag around, but at present there's
> effectively only v1.
>
> Cheers,
> Mark.

Ok thank you very much again for your quick answer.

So I'll keep using v1 flag.

At the beginning of the porting, I was using a kernel version which
does not support Device Tree, I only had a C file to initialize the
drivers for my board. And I'm trying to understand how to add the
support of Device Tree to the kernel. Because now I have a dtb file,
but no message appears during the boot, showing that the kernel knows
it must read this file and use the matching device drivers.

I have seen that some manufacturers use "config USE_OF", in the
Kconfig file, to give the option to add device tree support when
compiling the kernel. So I added the same option, but I don't know how
to confirm that the kernel is now using device tree.

Will it appear some messages, during boot, that indicate the kernel is
really using it ?

Thanks again for your attention,

Best regards.
--
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

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

* Re: FATAL ERROR: Unable to parse input tree
       [not found]       ` <CAPH+8+iDZ3+bx5zU6aoGDH_tiKCPAf07QGymSRp0oB1W+_1=1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-03 13:35         ` Mark Rutland
  2014-06-03 14:35           ` Pacman du34
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2014-06-03 13:35 UTC (permalink / raw)
  To: Pacman du34; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA

On Tue, Jun 03, 2014 at 02:25:25PM +0100, Pacman du34 wrote:
> 2014-06-03 15:02 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> > On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
> >> Hello all,
> >>
> >> I am working on a new Linux port to a new architecture and I would like
> >> to add a dts file to describe my system.
> >>
> >> So first of all I wrote the following dts test file :
> >>
> >> / {
> >>     compatible = "manufacturer,cpu";
> >> };
> >>
> >> I've read that this is the minimum structure required for a device tree
> >> on the wiki.
> >>
> >> But when I try compiling it with dtc (the first line is the command
> >> line) I get this error message :
> >>
> >> dtc -I dts -O dtb -o my_file.dtb myfile.dts
> >>
> >> Error: myfile.dts:1.1-2 syntax error
> >> FATAL ERROR: Unable to parse input tree
> >
> > You're missing the DTS version. Try:
> >
> > /dts-v1/;
> > / {
> >         comaptible = "manufacturer,device";
> > };
> >
> > Cheers,
> > Mark.
> >
> >>
> >> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
> >> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
> >>
> >> I searched on Google but I have not found relevant information for my issue.
> >>
> >> I really do not understand what the problem here and I am totally stuck.
> >> Any help will be appreciated.
> >>
> >> Thanks a lot in advance.
> >>
> >> Best regards.
> 
> That works, thank you very much,
> 
> I take this opportunity to ask another question... As I have to
> specify the DTS version, are there other versions, and if yes, what
> are their differences ? I mean, if there are other versions, why to
> choose the vesion 2 instead of 3 or 1 ?

There was a v0 a while back according to ePAPR, but it's obsolete,
incompatible and no-one uses it anymore (dtc doesn't support it as far
as I can tell). The flag is to tell v1 apart from v0.

There is not currently a v2 or later. Perhaps there might be in future,
so it's worth keeping the flag around, but at present there's
effectively only v1.

Cheers,
Mark.
--
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

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

* Re: FATAL ERROR: Unable to parse input tree
  2014-06-03 13:02   ` Mark Rutland
@ 2014-06-03 13:25     ` Pacman du34
       [not found]       ` <CAPH+8+iDZ3+bx5zU6aoGDH_tiKCPAf07QGymSRp0oB1W+_1=1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Pacman du34 @ 2014-06-03 13:25 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA

2014-06-03 15:02 GMT+02:00 Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>:
> On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
>> Hello all,
>>
>> I am working on a new Linux port to a new architecture and I would like
>> to add a dts file to describe my system.
>>
>> So first of all I wrote the following dts test file :
>>
>> / {
>>     compatible = "manufacturer,cpu";
>> };
>>
>> I've read that this is the minimum structure required for a device tree
>> on the wiki.
>>
>> But when I try compiling it with dtc (the first line is the command
>> line) I get this error message :
>>
>> dtc -I dts -O dtb -o my_file.dtb myfile.dts
>>
>> Error: myfile.dts:1.1-2 syntax error
>> FATAL ERROR: Unable to parse input tree
>
> You're missing the DTS version. Try:
>
> /dts-v1/;
> / {
>         comaptible = "manufacturer,device";
> };
>
> Cheers,
> Mark.
>
>>
>> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
>> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
>>
>> I searched on Google but I have not found relevant information for my issue.
>>
>> I really do not understand what the problem here and I am totally stuck.
>> Any help will be appreciated.
>>
>> Thanks a lot in advance.
>>
>> Best regards.

That works, thank you very much,

I take this opportunity to ask another question... As I have to
specify the DTS version, are there other versions, and if yes, what
are their differences ? I mean, if there are other versions, why to
choose the vesion 2 instead of 3 or 1 ?

Thanks again for your very quick answer.

Best regards.
--
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

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

* Re: FATAL ERROR: Unable to parse input tree
       [not found] ` <CAPH+8+gzCmV=tZOhq3DhYfWo6Pngcj+9XW3gNgCTV+qq5HnJ_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-03 13:02   ` Mark Rutland
  2014-06-03 13:25     ` Pacman du34
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2014-06-03 13:02 UTC (permalink / raw)
  To: Pacman du34; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA

On Tue, Jun 03, 2014 at 01:53:24PM +0100, Pacman du34 wrote:
> Hello all,
> 
> I am working on a new Linux port to a new architecture and I would like
> to add a dts file to describe my system.
> 
> So first of all I wrote the following dts test file :
> 
> / {
>     compatible = "manufacturer,cpu";
> };
> 
> I've read that this is the minimum structure required for a device tree
> on the wiki.
> 
> But when I try compiling it with dtc (the first line is the command
> line) I get this error message :
> 
> dtc -I dts -O dtb -o my_file.dtb myfile.dts
> 
> Error: myfile.dts:1.1-2 syntax error
> FATAL ERROR: Unable to parse input tree

You're missing the DTS version. Try:

/dts-v1/;
/ {
	comaptible = "manufacturer,device";
};

Cheers,
Mark.

> 
> I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
> dtc version installed with "apt-get install device-tree-compiler" (1.3.0).
> 
> I searched on Google but I have not found relevant information for my issue.
> 
> I really do not understand what the problem here and I am totally stuck.
> Any help will be appreciated.
> 
> Thanks a lot in advance.
> 
> Best regards.
> --
> 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
> 
--
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

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

* FATAL ERROR: Unable to parse input tree
@ 2014-06-03 12:53 Pacman du34
       [not found] ` <CAPH+8+gzCmV=tZOhq3DhYfWo6Pngcj+9XW3gNgCTV+qq5HnJ_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Pacman du34 @ 2014-06-03 12:53 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA

Hello all,

I am working on a new Linux port to a new architecture and I would like
to add a dts file to describe my system.

So first of all I wrote the following dts test file :

/ {
    compatible = "manufacturer,cpu";
};

I've read that this is the minimum structure required for a device tree
on the wiki.

But when I try compiling it with dtc (the first line is the command
line) I get this error message :

dtc -I dts -O dtb -o my_file.dtb myfile.dts

Error: myfile.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree

I tried both the dtc version of Linux source code (1.2.0-g37c0b6a0) and
dtc version installed with "apt-get install device-tree-compiler" (1.3.0).

I searched on Google but I have not found relevant information for my issue.

I really do not understand what the problem here and I am totally stuck.
Any help will be appreciated.

Thanks a lot in advance.

Best regards.
--
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

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

end of thread, other threads:[~2022-01-14  4:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14  4:30 FATAL ERROR: Unable to parse input tree kernel test robot
2022-01-14  4:30 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2014-06-03 12:53 Pacman du34
     [not found] ` <CAPH+8+gzCmV=tZOhq3DhYfWo6Pngcj+9XW3gNgCTV+qq5HnJ_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-03 13:02   ` Mark Rutland
2014-06-03 13:25     ` Pacman du34
     [not found]       ` <CAPH+8+iDZ3+bx5zU6aoGDH_tiKCPAf07QGymSRp0oB1W+_1=1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-03 13:35         ` Mark Rutland
2014-06-03 14:35           ` Pacman du34
     [not found]             ` <CAPH+8+giheV1kcuOAHvUWuDGRL4e2wRO95KJRxA9-o=TRVZ5FQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-03 14:51               ` Mark Rutland
2014-06-03 15:04                 ` Pacman du34

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.