简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM