From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MIME_QP_LONG_LINE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5E0FC433DB for ; Wed, 24 Feb 2021 17:56:46 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3408A64DCF for ; Wed, 24 Feb 2021 17:56:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3408A64DCF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lEyOe-0001EJ-Bl; Wed, 24 Feb 2021 12:56:24 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lEyOd-0001ED-0M for kernelnewbies@kernelnewbies.org; Wed, 24 Feb 2021 12:56:23 -0500 Received: by mail-pj1-x102c.google.com with SMTP id o22so3657414pjs.1 for ; Wed, 24 Feb 2021 09:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lbm3QOkylMWgcNZD17cUZQ95BnQK9u6bxgaVHPGHc8s=; b=e75ptF8Ir42/JIsKPYX6/ieglYElNlywvvxMO4SmrLNHQunETzDqQz8mllt512b7To lX2lBONpPDQXMAeyEAZw7hNBL8lMYOTS+jZ9Sj+WXiruaV/jHWv+2uUU3LuRyeHG/Ai9 uZXMkNhLPZe7Q146YqjRhhIMocKU+f56O0abAudr3ABBjzy3q4Z68t08Z6Fne6IvcPTu xn7UdK5aZJye7OkmNKH/taWbkj4VIF32vwtoHwfG81ALiOYd0j2WI1bbRlwWRAH89oh2 VQP0RycPupsdxXjHyGop2lZV75i0d+ke7RLZT3zMiACjEY9T5EGqhXRwMMOGk10Ik/ij ENYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lbm3QOkylMWgcNZD17cUZQ95BnQK9u6bxgaVHPGHc8s=; b=HdQfbpa7pv8+uA6DMZRelAEcjjT4L9q9hSAmoTxaEpzgymAtDpF3iPf9T/q/fzvese 8vPxUYdrlITfP1ME6vuzbUtKHoWtoRq+6nshSmTyWCNxQ4PpR31KluN0oF4KyQauYF6x /xrOQEiZTjNhnASuZJL+C+Re3Mho+hsv+poK91LdlOVffVlt7Mes8KrNyXljO/DNk6b9 Srr6W1VzCKVcXvsppAhSy97c0nDL6XFEcso1dJQB461uH7eX0mOg1CzNvQydkTPLAEck qwbZaM5ljeT5vSzpta/OzWE4VQphzxFZTiGv1UJQjRwkW7+3JeOO0l/Hig/z4LYCvwUd 2Pmw== X-Gm-Message-State: AOAM5310g8XESCPYHHcfah5/n70e5zwXf9KCnx0zeX8GsO7tfndT1XEQ 0BOB7nbehasRVnUu7L36EBN9U8QBI6JDIg== X-Google-Smtp-Source: ABdhPJy5xbiGO2k/L8QowKnLlQy6UdYfAvEN1gFJn5NOc5EdFnJO3IgO9Q9XSTYoUInSvlxNerV3pw== X-Received: by 2002:a17:903:1c3:b029:de:6b19:e72e with SMTP id e3-20020a17090301c3b02900de6b19e72emr33548382plh.63.1614189381252; Wed, 24 Feb 2021 09:56:21 -0800 (PST) Received: from [192.168.1.7] ([14.228.65.42]) by smtp.gmail.com with ESMTPSA id z2sm3410506pfa.121.2021.02.24.09.56.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2021 09:56:20 -0800 (PST) Mime-Version: 1.0 (1.0) Subject: Re: Aw: How to make .dtb from .dts file (how to set include path for #include .. ?) From: linux lover X-Mailer: iPhone Mail (15G77) In-Reply-To: Date: Thu, 25 Feb 2021 01:56:16 +0800 Message-Id: References: <032501d709bf$2691eca0$73b5c5e0$@etri.re.kr> To: Martin Herdeis Cc: ckim@etri.re.kr, kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3108639886763967165==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3108639886763967165== Content-Type: multipart/alternative; boundary=Apple-Mail-32A485FA-B3D4-4D2E-B0C1-946DBE35415D Content-Transfer-Encoding: 7bit --Apple-Mail-32A485FA-B3D4-4D2E-B0C1-946DBE35415D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sent from my iPhone > On Feb 23, 2021, at 5:34 PM, Martin Herdeis wrote: >=20 > =20 > Hello Chan, > =20 > haven't tried to build dtb myselfe yet but maybe this helps: > =20 > https://bootlin.com/pub/conferences/2013/elce/petazzoni-device-tree-dummie= s/petazzoni-device-tree-dummies.pdf > https://www.youtube.com/watch?v=3Dm_NyYEBxfn8 > https://bootlin.com/blog/device-tree-101-webinar-slides-and-videos/ > =20 > Martin > Gesendet: Dienstag, 23. Februar 2021 um 09:37 Uhr > Von: ckim@etri.re.kr > An: kernelnewbies@kernelnewbies.org > Betreff: How to make .dtb from .dts file (how to set include path for #inc= lude .. ?) > Hello all, >=20 > =20 >=20 > In linux kernel source, there are many .dts files (device tree source) >=20 > For example there is a file ./arch/arm64/boot/dts/arm/juno.dts. >=20 > To tried to make juno.dtb from juno.dts but I don=E2=80=99t know how to do= it. >=20 > (by the way, once I did make for the kernel build, junno.dtb file seems to= be generated in the same directory) >=20 > =20 >=20 > Just in case I want to make my own .dts and .dtb, I tried compling juno.dt= s file. (I had installed dtc on my ubuntu 16.04 machine before) >=20 > $ dtc -I dts -O dtb -o juno.dtb arch/arm64/boot/dts/arm/juno.dts >=20 > Error: arch/arm64/boot/dts/arm/juno.dts:11.1-9 syntax error >=20 > FATAL ERROR: Unable to parse input tree >=20 > The dtc program cannot process the line below in the .dts file.(line 11) >=20 > #include >=20 > =20 >=20 > I don=E2=80=99t know how I should let the preprocessing kick in. >=20 > I tried (because there is include/dt-bindings/interrupt-controller/arm-gic= .h) >=20 > $ dtc -i include -I dts -O dtb -o juno.dtb arch/arm64/boot/dts/arm/juno.= dts >=20 > But it doesn=E2=80=99t work. >=20 > =20 >=20 > How can I use dtc program to make juno.dtb? >=20 > Or if I have to use Makefile, what is the command? >=20 > =20 >=20 > Thanks, >=20 > =20 >=20 > Chan Kim >=20 > _______________________________________________ Kernelnewbies mailing list= Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/lis= tinfo/kernelnewbies > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --Apple-Mail-32A485FA-B3D4-4D2E-B0C1-946DBE35415D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Sent= from my iPhone

On Feb 23, 2021, at 5:34 PM, Martin Herdeis &l= t;martinherdeis@gmx.de> wrote= :

 
Hello Chan,
 
haven't tried to build dtb myselfe yet but maybe this helps:
 
 
Martin
Gesendet: Dienstag, 23. Februa= r 2021 um 09:37 Uhr
Von: ckim@etri.re.kr
An: kernelnew= bies@kernelnewbies.org
Betreff: How to make .dtb from .dts file (how to set include pat= h for #include .. ?)

Hello all,

 

In linux kernel source, there are many .dts fil= es (device tree source)

For example there is a file ./arch/arm64/boot/d= ts/arm/juno.dts.

To tried to make juno.dtb from juno.dts but I d= on=E2=80=99t know how to do it.

(by the way, once I did make for the kernel bui= ld, junno.dtb file seems to be generated in the same directory)

 

Just in case I want to make my own .dts and .dt= b, I tried compling juno.dts file. (I had installed dtc on my ubuntu 16.04 m= achine before)

$ dtc -I dts -O d= tb -o juno.dtb arch/arm64/boot/dts/arm/juno.dts

Error: arch/arm6= 4/boot/dts/arm/juno.dts:11.1-9 syntax error

FATAL ERROR: Una= ble to parse input tree

The dtc program cannot process the line below i= n the .dts file.(line 11)

#include <dt-= bindings/interrupt-controller/arm-gic.h>

 

I don=E2=80=99t know how I should let the prepr= ocessing kick in.

I tried (because there is include/dt-bindings/i= nterrupt-controller/arm-gic.h)

  $ dtc -i include -I dts -O dtb -o j= uno.dtb arch/arm64/boot/dts/arm/juno.dts

But it doesn=E2=80=99t work.

 

How can I use dtc program to make juno.dtb?

Or if I have to use Makefile, what is the comma= nd?

 

Thanks,

 

Chan Kim

_______________________________________________ Kernelnewbies mailing list <= a href=3D"mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbie= s.org https://lists.kernelnewbies.org/mailman/listinfo/= kernelnewbies
____________________= ___________________________
Kernelnewbies mailing list
Kernelnewbies@= kernelnewbies.org
https://lists.kernelnewbies.org/mailman= /listinfo/kernelnewbies
= --Apple-Mail-32A485FA-B3D4-4D2E-B0C1-946DBE35415D-- --===============3108639886763967165== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3108639886763967165==--