compiling a dts file

30 views
Skip to first unread message

evilwulfie

unread,
Feb 14, 2018, 9:15:44 AM2/14/18
to beagl...@googlegroups.com
So i need to create a dtb file for some custom hardware.
I made one 2 years ago that compiled correctly
on the latest IOT image it does not compile.
So i figure, hey maybe something has changed
so i pull the /opt/source/bb.org-overlays/src/arm/BB-I2C1-00A0.dts file
to a temp directory and try to compile it
Funny i get the same error and i get no compile.

Error: BB-I2C1-00A0.dts:13.1-9 syntax error
FATAL ERROR: Unable to parse input tree


just wondering whats changed.

apt says i am at the latest dts compiler

anybody try to compile anything recently ?

Robert Nelson

unread,
Feb 14, 2018, 9:37:16 AM2/14/18
to Beagle Board, evilwulfie
make src/arm/BB-I2C1-00A0.dtb

Regards,

--
Robert Nelson
https://rcn-ee.com/

evilwulfie

unread,
Feb 14, 2018, 9:45:36 AM2/14/18
to Beagle Board
I do hardware. Software was something i did in the 80s z80 asm code and
c coding on a univac ( yeah i know )

If i run your command as root in my current directory

root@beaglebone:/home/debian# make src/arm/BB-I2C1-00A0.dtb
make: *** No rule to make target 'src/arm/BB-I2C1-00A0.dtb'.  Stop.


Been using linux since the 90s

2 years ago i could just invoke the dts compiler

dtc -O dtb -o BB-I2C1-00A0.dtb -b 0 BB-I2C1-00A0.dts

in whatever directory i was in normally someplace safe where i can play
without fear of destroying something important

now things have changed and its tough to see whats changed
all examples everywhere also say i can invoke the compiler in a temp
directory.

thanks Robert for your assistance.

Robert Nelson

unread,
Feb 14, 2018, 9:54:39 AM2/14/18
to Beagle Board, evilwulfie
On Wed, Feb 14, 2018 at 8:45 AM, evilwulfie <evilw...@gmail.com> wrote:
> I do hardware. Software was something i did in the 80s z80 asm code and
> c coding on a univac ( yeah i know )
>
> If i run your command as root in my current directory
>
> root@beaglebone:/home/debian# make src/arm/BB-I2C1-00A0.dtb
> make: *** No rule to make target 'src/arm/BB-I2C1-00A0.dtb'. Stop.

git clone https://github.com/beagleboard/bb.org-overlays
cd ./bb.org-overlays/
make src/arm/BB-I2C1-00A0.dtb

> Been using linux since the 90s
>
> 2 years ago i could just invoke the dts compiler
>
> dtc -O dtb -o BB-I2C1-00A0.dtb -b 0 BB-I2C1-00A0.dts
>
> in whatever directory i was in normally someplace safe where i can play
> without fear of destroying something important
>
> now things have changed and its tough to see whats changed
> all examples everywhere also say i can invoke the compiler in a temp
> directory.

There's "include" files in the *.dts now... dtc doesn't handle includes's..

Robert Nelson

unread,
Feb 14, 2018, 10:05:13 AM2/14/18
to Beagle Board, evilwulfie
On Wed, Feb 14, 2018 at 9:00 AM, evilwulfie <evilw...@gmail.com> wrote:
> root@beaglebone:/home/debian# git clone
> https://github.com/beagleboard/bb.org-overlays
> Cloning into 'bb.org-overlays'...
> remote: Counting objects: 2442, done.
> remote: Compressing objects: 100% (14/14), done.
> remote: Total 2442 (delta 12), reused 22 (delta 8), pack-reused 2415
> Receiving objects: 100% (2442/2442), 732.86 KiB | 328.00 KiB/s, done.
> Resolving deltas: 100% (1549/1549), done.
> root@beaglebone:/home/debian# cd bb.org-overlays
> root@beaglebone:/home/debian/bb.org-overlays# make src/arm/BB-I2C1-00A0.dtb
> make: *** No rule to make target 'src/arm/BB-I2C1-00A0.dtb'. Stop.

ah forgot the "o" at the end:

make src/arm/BB-I2C1-00A0.dtbo
DTC src/arm/BB-I2C1-00A0.dtbo
Reply all
Reply to author
Forward
0 new messages