kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: <ckim@etri.re.kr>
To: <kernelnewbies@kernelnewbies.org>
Subject: How to make .dtb from .dts file (how to set include path for #include .. ?)
Date: Tue, 23 Feb 2021 17:37:41 +0900	[thread overview]
Message-ID: <032501d709bf$2691eca0$73b5c5e0$@etri.re.kr> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1142 bytes --]

Hello all,

 

In linux kernel source, there are many .dts files (device tree source)

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

To tried to make juno.dtb from juno.dts but I don't know how to do it.

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

 

Just in case I want to make my own .dts and .dtb, I tried compling juno.dts
file. (I had installed dtc on my ubuntu 16.04 machine before)

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

Error: arch/arm64/boot/dts/arm/juno.dts:11.1-9 syntax error

FATAL ERROR: Unable to parse input tree

The dtc program cannot process the line below in the .dts file.(line 11)

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

 

I don't know how I should let the preprocessing kick in.

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

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

But it doesn't work.

 

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

Or if I have to use Makefile, what is the command?

 

Thanks, 

 

Chan Kim


[-- Attachment #1.2: Type: text/html, Size: 4501 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2021-02-23  8:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  8:37 ckim [this message]
2021-02-23  9:28 ` How to make .dtb from .dts file (how to set include path for #include .. ?) Ahmad Fatoum
2021-02-24  4:54   ` ckim
2021-02-23  9:34 ` Aw: " Martin Herdeis
2021-02-24 17:56   ` linux lover

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='032501d709bf$2691eca0$73b5c5e0$@etri.re.kr' \
    --to=ckim@etri.re.kr \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).