Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to compile Linux dtb

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?

like image 637
Prajosh Premdas Avatar asked Nov 11 '22 05:11

Prajosh Premdas


1 Answers

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.

like image 114
Prajosh Premdas Avatar answered Nov 15 '22 05:11

Prajosh Premdas