errors when building .dtb

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

sys_suweixiao
Posts: 4
Joined: Thu Apr 10, 2014 10:23 am

errors when building .dtb

Mon May 26, 2014 11:35 am

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?
bseljak
Posts: 28
Joined: Thu Apr 03, 2014 1:28 am

Re: errors when building .dtb

Mon May 26, 2014 10:55 pm

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 
sys_suweixiao
Posts: 4
Joined: Thu Apr 10, 2014 10:23 am

Re: errors when building .dtb

Tue May 27, 2014 8:50 am

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.
velikS
Posts: 3
Joined: Fri Mar 13, 2015 10:39 am

Re: errors when building .dtb

Fri Mar 13, 2015 10:41 am

Hi,


Did u find a solution for that problem?

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 3 guests