DTS File not build in I.MX6ULL Evk Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DTS File not build in I.MX6ULL Evk Board

1,004 Views
sachindhoundiya
Contributor II

Hello all ,

I want to SDIO Pin as GPIO. I have done change in imx6ul-14x14-evk.dts file but how to compile it to form a new imx6ul-14x14-evk.dtc and load it in board.

i have following How to compile the Device Tree Source Code 

but in  <build dir>/tmp/workshared/imx6ulevk/kernel-source/script/


$ ./scripts/dtc/dtc -I dts -O dtb -o ./file_name.dtb <path>/file-name.dts

as my dtc folder does not contain any output file for compile dts file .

 I am this getting error

$ ./scripts/dtc/dtc -I dts -O dtb -o ./file_name.dtb <path>/file-name.dts

$ BASH :  dtc/dtc folder not found

$ ./scripts/dtc/dtc.c -I dts -O dtb -o ./file_name.dtb <path>/file-name.dts

$ BASH :  dtc/dtc.c  file permission error

$ build-imx/tmp/work-shared/imx6ulevk/kernel-source/scripts/dtc$ ls -l
total 324
-rwxrwxrwx 1 root root 20584 Dec  7 13:08 checks.c
-rwxrwxrwx 1 root root  5265 Dec  7 13:08 data.c
-rwxrwxrwx 1 root root  7316 Dec  7 13:08 dtc.c
-rwxrwxrwx 1 root root  7553 Dec  7 13:08 dtc.h
-rwxrwxrwx 1 root root  5575 Dec  7 13:08 dtc-lexer.l
-rwxrwxrwx 1 root root 58907 Dec  7 13:08 dtc-lexer.lex.c_shipped
-rwxrwxrwx 1 root root 69383 Dec  7 13:08 dtc-parser.tab.c_shipped
-rwxrwxrwx 1 root root  2857 Dec  7 13:08 dtc-parser.tab.h_shipped
-rwxrwxrwx 1 root root 10326 Dec  7 13:08 dtc-parser.y
-rwxrwxrwx 1 root root  3720 Dec  7 13:08 fdtdump.c
-rwxrwxrwx 1 root root  8781 Dec  7 13:08 fdtget.c
-rwxrwxrwx 1 root root  8546 Dec  7 13:08 fdtput.c
-rwxrwxrwx 1 root root 22370 Dec  7 13:08 flattree.c
-rwxrwxrwx 1 root root  2270 Dec  7 13:08 fstree.c
drwxrwxrwx 2 root root  4096 Dec  7 13:08 libfdt
-rwxrwxrwx 1 root root 13912 Dec  7 13:08 livetree.c
-rwxrwxrwx 1 root root  1035 Dec  7 13:08 Makefile
-rwxrwxrwx 1 root root   372 Dec  7 13:08 Makefile.dtc
-rwxrwxrwx 1 root root  7642 Dec  7 13:08 srcpos.c
-rwxrwxrwx 1 root root  3741 Dec  7 13:08 srcpos.h
-rwxrwxrwx 1 root root  6105 Dec  7 13:08 treesource.c
-rwxrwxrwx 1 root root  6392 Dec  7 13:08 util.c
-rwxrwxrwx 1 root root  4543 Dec  7 13:08 util.h
-rwxrwxrwx 1 root root    42 Dec  7 13:08 version_gen.h

Please help me to resolve this issue.

Labels (1)
0 Kudos
Reply
1 Reply

759 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Sachin,

You can also use make. Here is an example:

$ cd ~/fsl_release_bsp_3.14.52/build-qt5-imx6qsabresd/tmp/workshared/imx6qsabresd/kernel-source/
$ export ARCH=arm
$ export CROSS_COMPILE=arm-linux-gnueabihf-
$ make imx_v7_defconfig
$ make imx6q-udoo-hdmi.dtb

And the file will be generated inside ~/fsl_release_bsp_3.14.52/build-qt5-imx6qsabresd/tmp/workshared/imx6qsabresd/kernel-source/arch/arm/boot/dts


Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply