Device Tree building

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Device Tree building

819件の閲覧回数
anilkandikonda
Contributor II

Hi team,

 

I am pretty new to this yocto and linux kernel.

I want to integrate ov5647 camera module into my system. I need help in building device tree, so that i can use that camera. 
any steps and starting point where and how to start. how to modify the dtsi file, 
what changes do i have to make to make it work.

 

any help on this is really appreciated.

 

Thanks,

Anil 

タグ(2)
0 件の賞賛
返信
1 返信

767件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @anilkandikonda 

 

I hope you are doing very well.

 

Please take a look to the imx8mp-navq-ov5647-ov5640.dts.

 

Once, when you have modified your device tree, you can compile it in the kernel source.

For example, download the linux-imx kernel in your linux host machine:

git clone https://github.com/nxp-imx/linux-imx.git

 

Then, add your device tree to /linux-imx/arch/arm64/boot/dts/freescale/Makefile as example:

Alejandro_Salas_0-1733185808607.png

And copy your dts file under /linux-imx/arch/arm64/boot/dts/freescale/.

 

Generate the Yocto toolchain as described in Linux users guide (chapter 4.5.12 How to build U-Boot and Kernel in standalone environment).

Set the environment with the generated toolchain:

$source /opt/fsl-imx-xwayland/6.6-nanbield/environment-setup-aarch64-poky-linux

finally, go to the linux-imx folder and set the commands:

$make distclean
$make clean
$make menuconfig

 

In menuconfig, I recommend to select just the i.MX processor to just compile the desired device trees.

 

Finally:

$make dtbs

 

And the dtb will be generated under /linux-imx/arch/arm64/boot/dts/freescale/.

 

I hope this information can helps to you.

 

Best regards,

Salas.

0 件の賞賛
返信