<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Device Tree building in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Device-Tree-building/m-p/2005521#M26640</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240445"&gt;@anilkandikonda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look to the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-navq-ov5647-ov5640.dts#L11" target="_self"&gt;imx8mp-navq-ov5647-ov5640.dts&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once, when you have modified your device tree, you can compile it in the kernel source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example, download the linux-imx kernel in your linux host machine:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;git clone https://github.com/nxp-imx/linux-imx.git&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, add your device tree to&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/Makefile as example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_0-1733185808607.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313605iF9EDC48E27AE9D93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_0-1733185808607.png" alt="Alejandro_Salas_0-1733185808607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And copy your dts file under&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generate the Yocto toolchain as described in &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_self"&gt;Linux users guide&lt;/A&gt; (chapter 4.5.12 How to build U-Boot and Kernel in standalone environment).&lt;/P&gt;
&lt;P&gt;Set the environment with the generated toolchain:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$source /opt/fsl-imx-xwayland/6.6-nanbield/environment-setup-aarch64-poky-linux&lt;/LI-CODE&gt;
&lt;P&gt;finally, go to the linux-imx folder and set the commands:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$make distclean
$make clean
$make menuconfig&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In menuconfig, I recommend to select just the i.MX processor to just compile the desired device trees.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$make dtbs&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the dtb will be generated under&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information can helps to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 00:36:30 GMT</pubDate>
    <dc:creator>Manuel_Salas</dc:creator>
    <dc:date>2024-12-03T00:36:30Z</dc:date>
    <item>
      <title>Device Tree building</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Device-Tree-building/m-p/2003063#M26582</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new to this yocto and linux kernel.&lt;/P&gt;&lt;P&gt;I want to integrate ov5647 camera module into my system. I need help in building device tree, so that i can use that camera.&amp;nbsp;&lt;BR /&gt;any steps and starting point where and how to start. how to modify the dtsi file,&amp;nbsp;&lt;BR /&gt;what changes do i have to make to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help on this is really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 17:16:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Device-Tree-building/m-p/2003063#M26582</guid>
      <dc:creator>anilkandikonda</dc:creator>
      <dc:date>2024-11-27T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Device Tree building</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Device-Tree-building/m-p/2005521#M26640</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240445"&gt;@anilkandikonda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look to the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-navq-ov5647-ov5640.dts#L11" target="_self"&gt;imx8mp-navq-ov5647-ov5640.dts&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once, when you have modified your device tree, you can compile it in the kernel source.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example, download the linux-imx kernel in your linux host machine:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;git clone https://github.com/nxp-imx/linux-imx.git&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, add your device tree to&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/Makefile as example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_0-1733185808607.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313605iF9EDC48E27AE9D93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_0-1733185808607.png" alt="Alejandro_Salas_0-1733185808607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And copy your dts file under&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generate the Yocto toolchain as described in &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_self"&gt;Linux users guide&lt;/A&gt; (chapter 4.5.12 How to build U-Boot and Kernel in standalone environment).&lt;/P&gt;
&lt;P&gt;Set the environment with the generated toolchain:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$source /opt/fsl-imx-xwayland/6.6-nanbield/environment-setup-aarch64-poky-linux&lt;/LI-CODE&gt;
&lt;P&gt;finally, go to the linux-imx folder and set the commands:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$make distclean
$make clean
$make menuconfig&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In menuconfig, I recommend to select just the i.MX processor to just compile the desired device trees.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$make dtbs&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the dtb will be generated under&amp;nbsp;/linux-imx/arch/arm64/boot/dts/freescale/.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information can helps to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 00:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Device-Tree-building/m-p/2005521#M26640</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-12-03T00:36:30Z</dc:date>
    </item>
  </channel>
</rss>

