mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i'
@ 2013-07-17 14:19 Matthias Klein
  2013-07-17 14:37 ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klein @ 2013-07-17 14:19 UTC (permalink / raw)
  To: ptxdist

Hello,

while migrating our ptxdist project from version 2013.05.0 to 2013.06.0 
DTC fails to build the device tree blob.

We are using the kernel version 3.4. Are there any known problems?


Best regards,

Matthias


Our platformconfig:

PTXCONF_KERNEL_DTC=y
PTXCONF_DTC=y
# PTXCONF_DTC_INSTALL_OFTREE is not set
PTXCONF_DTC_OFTREE_DTS="${KERNEL_DIR}/arch/arm/boot/dts/tx53.dts"
PTXCONF_DTC_KERNEL=y
PTXCONF_DTC_EXTRA_ARGS=""

Logfile:

---------------
target: dtc.get
---------------

finished target dtc.get

-------------------
target: dtc.extract
-------------------

patchin: no patches found
finished target dtc.extract

------------------------
target: dtc.extract.post
------------------------

finished target dtc.extract.post

-------------------
target: dtc.prepare
-------------------

finished target dtc.prepare

-------------------
target: dtc.compile
-------------------

finished target dtc.compile

-------------------
target: dtc.install
-------------------

finished target dtc.install

----------------
target: tx53.dtb
----------------

CPP 
bsp/platform-tx53/build-target/linux-3.4/arch/arm/boot/dts/tx53.dts.tmp
DTC bsp/platform-tx53/images/tx53.dtb
/home/user/bsp/platform-tx53/sysroot-host/bin/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: *** [/home/user/bsp/platform-tx53/images/tx53.dtb] Error 3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i'
  2013-07-17 14:19 [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i' Matthias Klein
@ 2013-07-17 14:37 ` Uwe Kleine-König
  2013-07-18  7:48   ` Matthias Klein
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2013-07-17 14:37 UTC (permalink / raw)
  To: ptxdist, Matthias Klein

Hello,
On Wed, Jul 17, 2013 at 02:19:04PM +0000, Matthias Klein wrote:
> while migrating our ptxdist project from version 2013.05.0 to
> 2013.06.0 DTC fails to build the device tree blob.
> 
> We are using the kernel version 3.4. Are there any known problems?
I guess you need commit cd29672 (dtc: import latest upstream dtc) which
was included in v3.7-rc1. This commit teaches -i to dtc.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i'
  2013-07-17 14:37 ` Uwe Kleine-König
@ 2013-07-18  7:48   ` Matthias Klein
  2013-07-18  9:20     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klein @ 2013-07-18  7:48 UTC (permalink / raw)
  To: Uwe Kleine-König

Thanks for the pointer !

Patching the kernel with the dtc source of a newer kernel works.

But is it intended that ptxdist requires so new kernels ?


Best regards,

Matthias


------ Originalnachricht ------
Von: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
An: ptxdist@pengutronix.de; "Matthias Klein" 
<matthias.klein@optimeas.de>
Gesendet: 17.07.2013 16:37:50
Betreff: Re: [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i'
>Hello,
>On Wed, Jul 17, 2013 at 02:19:04PM +0000, Matthias Klein wrote:
>>  while migrating our ptxdist project from version 2013.05.0 to
>>  2013.06.0 DTC fails to build the device tree blob.
>>
>>  We are using the kernel version 3.4. Are there any known problems?
>I guess you need commit cd29672 (dtc: import latest upstream dtc) which
>was included in v3.7-rc1. This commit teaches -i to dtc.
>
>Best regards
>Uwe
>
>--
>Pengutronix e.K. | Uwe Kleine-König |
>Industrial Linux Solutions | http://www.pengutronix.de/ |
>



-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i'
  2013-07-18  7:48   ` Matthias Klein
@ 2013-07-18  9:20     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2013-07-18  9:20 UTC (permalink / raw)
  To: ptxdist

Hi,

On Thu, Jul 18, 2013 at 07:48:15AM +0000, Matthias Klein wrote:
> Patching the kernel with the dtc source of a newer kernel works.
> 
> But is it intended that ptxdist requires so new kernels ?

No, but I wasn't aware that this option is new when I made the change. It
is usefull for new kernels so it should be added for those.
We should make this optional, probably depending on the output of
"dtc --help".
I won't be able to fix this any time soon. My summer vacation is about to
start. So patches are welcome :-).

Michael

-- 
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 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2013-07-18  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-17 14:19 [ptxdist] ptxdist 2013.06.0: dtc: invalid option -- 'i' Matthias Klein
2013-07-17 14:37 ` Uwe Kleine-König
2013-07-18  7:48   ` Matthias Klein
2013-07-18  9:20     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox