Page 1 of 1

errors when building .dtb

Posted: Mon May 26, 2014 11:35 am
by sys_suweixiao
i am using atsama5d34 cpu,when build the Linux kernel ,i got zImage and uImage file successfully.
but when i build .dtb file following instructions as linux4sam/bin/view/Linux4SAM/LinuxKernel,i got the following errors:
linux-at91-master$ make ARCH=arm  CROSS_COMPILE=arm-linux-gnueabihf- dtbs
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  DTC     arch/arm/boot/dts/at91rm9200ek.dtb
In file included from arch/arm/boot/dts/at91rm9200ek.dts:9:0:
arch/arm/boot/dts/at91rm9200.dtsi:14:46: fatal error: include/dt-bindings/pinctrl/at91.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/boot/dts/at91rm9200ek.dtb] Error 1
make: *** [dtbs] Error 2
linux-at91-master$ 

how can i fix this error?

Re: errors when building .dtb

Posted: Mon May 26, 2014 10:55 pm
by bseljak
You could try to compile just dts file for your board.... 

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  sama5d34ek.dtb
...or other .dts -> .dtb file that you need.

Borut 

Re: errors when building .dtb

Posted: Tue May 27, 2014 8:50 am
by sys_suweixiao
bseljak wrote:You could try to compile just dts file for your board.... 

Code: Select all

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  sama5d34ek.dtb
...or other .dts -> .dtb file that you need.

Borut 
thanks for your answer. but the error remains:
linux-at91-master$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sama5d34ek.dtb
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  DTC     arch/arm/boot/dts/sama5d34ek.dtb
In file included from arch/arm/boot/dts/sama5d3xcm.dtsi:9:0,
                 from arch/arm/boot/dts/sama5d3xmb.dtsi:9,
                 from arch/arm/boot/dts/sama5d34ek.dts:10:
arch/arm/boot/dts/sama5d3.dtsi:12:34: fatal error: dt-bindings/dma/at91.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/boot/dts/sama5d34ek.dtb] Error 1
make: *** [sama5d34ek.dtb] Error 2
linux-at91-master$ 




i think some a path  should be specified, i am fresh to linux and dont know how to resolve this problem.

Re: errors when building .dtb

Posted: Fri Mar 13, 2015 10:41 am
by velikS
Hi,


Did u find a solution for that problem?