2014-06-13 11:54:53

by Varka Bhadram

[permalink] [raw]
Subject: device tree: compilation of device tree sources

Hi,

I cloned the device tree git from:
https://kernel.googlesource.com/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing

When i try to compile the Makefile is throwing errors like this:

DTC src/arc/abilis_tb100_dvk.dtb

dtc: invalid option -- 'i'

Usage:

dtc [options] <input file>

Options:

-h

This help text

-q

Quiet: -q suppress warnings, -qq errors, -qqq all

-I <input format>

Input formats are:

dts - device tree source text

dtb - device tree blob

fs - /proc/device-tree style directory

-o <output file>

-O <output format>

Output formats are:

dts - device tree source text

dtb - device tree blob

asm - assembler source

-V <output version>

Blob version to produce, defaults to 17 (relevant for dtb

and asm output only)

-d <output dependency file>

-R <number>

Make space for <number> reserve map entries (relevant for

dtb and asm output only)

-S <bytes>

Make the blob at least <bytes> long (extra space)

-p <bytes>

Add padding to the blob of <bytes> long (extra space)

-b <number>

Set the physical boot cpu

-f

Force - try to produce output even if the input tree has errors

-s

Sort nodes and properties before outputting (only useful for

comparing trees)

-v

Print DTC version and exit

-H <phandle format>

phandle formats are:

legacy - "linux,phandle" properties only

epapr - "phandle" properties only

both - Both "linux,phandle" and "phandle" properties

make[1]: *** [src/arc/abilis_tb100_dvk.dtb] Error 3

make: *** [all_arc] Error 2


The way of using the dtc command is wrong.


Thanks,
Varka Bhadram

-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------


2014-06-14 19:02:33

by Sascha Hauer

[permalink] [raw]
Subject: Re: device tree: compilation of device tree sources

On Fri, Jun 13, 2014 at 05:07:10PM +0530, Varka Bhadram wrote:
> Hi,
>
> I cloned the device tree git from: https://kernel.googlesource.com/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing
>
> When i try to compile the Makefile is throwing errors like this:
>
> DTC src/arc/abilis_tb100_dvk.dtb
>
> dtc: invalid option -- 'i'

Your dtc version is too old. Please upgrade.

Sascha

--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |