如何添加自己的DTS文件

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

如何添加自己的DTS文件

3,255 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
Reply
3 Replies

1,676 Views
octmejun123
Contributor I

it doesn't work in both 2 ways from my side.

0 Kudos
Reply

2,023 Views
Rita_Wang
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
Reply

2,023 Views
senli
Contributor II

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

0 Kudos
Reply