如何添加自己的DTS文件

cancel
Showing results for 
Search instead for 
Did you mean: 

如何添加自己的DTS文件

1,495 Views
senli
Contributor II

大家好!

       我用的imx6q LINUX版本是3.14.52

       现在想增加一个自己的DTS文件,我在arch/arm/boot/dts/目录下添加了自己的DTS文件imx6q-sabresd-ldo10.dts

       在arch/arm/boot/dts/Makefile中增加

        dtb-$(CONFIG_ARCH_MXC) += \

         .......

         imx6q-sabresd-ldo.dtb \
         imx6q-sabresd-ldo10.dtb \

         然后用

         bitbake -c compile -f -v linux-imx
bitbake linux-imx -c compile_kernelmodules -f -v
bitbake -c deploy -f -v linux-imx

编译内核,但是执行完后根本没有编译imx6q-sabresd-ldo10.dts、没有产生imx6q-sabresd-ldo10.dtb文件

请高手看看是不是还有什么地方没有添加?

Labels (1)
0 Kudos
2 Replies

263 Views
b45499
NXP TechSupport
NXP TechSupport

Hello,

Here you can try and refer to the following command.

This following shell script will set up related environment and build the kernel image.

 

#!/bin/bash

export ARCH=arm

export CROSS_COMPILE=$your_build_dir/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-

make distclean

make my_imx6ul_defconfig

make zImage

make dtbs

Then you can see your kernel images on your arch/arm/boot/dts/ folder.


Have a great day,
Rita

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

0 Kudos

263 Views
senli
Contributor II

3.14.52已经采用yocto了,好像不能直接make编译

0 Kudos