Aw: How to make .dtb from .dts file (how to set include path for #include .. ?)

linux lover caprianking2002 at gmail.com
Wed Feb 24 12:56:16 EST 2021



Sent from my iPhone

> On Feb 23, 2021, at 5:34 PM, Martin Herdeis <martinherdeis at gmx.de> wrote:
> 
>  
> Hello Chan,
>  
> haven't tried to build dtb myselfe yet but maybe this helps:
>  
> https://bootlin.com/pub/conferences/2013/elce/petazzoni-device-tree-dummies/petazzoni-device-tree-dummies.pdf
> https://www.youtube.com/watch?v=m_NyYEBxfn8
> https://bootlin.com/blog/device-tree-101-webinar-slides-and-videos/
>  
> Martin
> Gesendet: Dienstag, 23. Februar 2021 um 09:37 Uhr
> Von: ckim at etri.re.kr
> An: kernelnewbies at kernelnewbies.org
> Betreff: How to make .dtb from .dts file (how to set include path for #include .. ?)
> 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
> 
> _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210225/5a1910e3/attachment.html>


More information about the Kernelnewbies mailing list