Unable to compile Linux dtb

Prajosh Premdas picture Prajosh Premdas · Jul 9, 2014 · Viewed 8.3k times · Source

I am trying to compile the dts file for beaglebone black. I have cloned the git repository from this location git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git and I get the following errors:

  1. for beaglebone black:

    $ dtc -I dts -O dtb -o am335x-boneblack.dtb am335x-boneblack.dts
    

    Error: am335x-boneblack.dts:10.1-9 syntax error
    FATAL ERROR: Unable to parse input tree

  2. I tried for atmel sam9g20 ek- I get the same error:

    $ dtc -I dts -O dtb -o at91sam9g20ek_2mmc.dtb at91sam9g20ek_2mmc.dts
    

    Error: at91sam9g20ek_2mmc.dts:9.1-9 syntax error
    FATAL ERROR: Unable to parse input tree

But when I use the mainline kernel they compile.

I tried make ARCH=arm dtbs also is an error

Could anybody please point me the mistake I am making?

Answer

Prajosh Premdas picture Prajosh Premdas · Jan 30, 2017

Using the command make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs this problem has been fixed

CROSS_COMPILE can have the compiler of your choice.