<?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: issue: fdt_file gets changed after reboot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322314#M178292</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188574"&gt;@Raxesh-Oriya&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, reviewing the log you share this is because the device tree is not correctly specified, take a look at the next post that could help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-change-Linux-Kernel-configuration-file-in-Yocto-Project/tac-p/1112101" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-change-Linux-Kernel-configuration-file-in-Yocto-Project/tac-p/1112101&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Israel.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 03:35:05 GMT</pubDate>
    <dc:creator>nxf63675</dc:creator>
    <dc:date>2021-08-12T03:35:05Z</dc:date>
    <item>
      <title>issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321189#M178160</link>
      <description>&lt;P&gt;I have &lt;STRONG&gt;imx7ulpevk&lt;/STRONG&gt; board with me and I have connected LCD display through MIPI interface. Default .dtb selected by u-boot is&amp;nbsp;&lt;STRONG&gt;imx7ulp-evk.dtb&amp;nbsp;&lt;/STRONG&gt;but I want to use&lt;STRONG&gt;&amp;nbsp;imx7ulp-evk-mipi.dtb&amp;nbsp;&lt;/STRONG&gt;as a default .dtb file. I made below change in board config file,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;diff --git a/include/configs/mx7ulp_evk.h b/include/configs/mx7ulp_evk.h
index cdc1a48..7ee1bf0 100644
--- a/include/configs/mx7ulp_evk.h
+++ b/include/configs/mx7ulp_evk.h
@@ -73,7 +73,7 @@
        "console=ttyLP0\0" \
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
-       "fdt_file=imx7ulp-evk.dtb\0" \
+       "fdt_file=imx7ulp-evk-mipi.dtb\0" \
        "fdt_addr=0x63000000\0" \
        "boot_fdt=try\0" \
        "earlycon=lpuart32,0x402D0010\0" \&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this change I generated an image, flashed on the SD card and booted up the board. Very first boot &lt;STRONG&gt;fdt_file&lt;/STRONG&gt; variable gets updated with&amp;nbsp;&lt;STRONG&gt;imx7ulp-evk-mipi.dtb&amp;nbsp;&lt;/STRONG&gt;but from next boot onwards&amp;nbsp;&lt;STRONG&gt;fdt_file&amp;nbsp;&lt;/STRONG&gt;value gets back to&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;imx7ulp-evk.dtb&lt;/STRONG&gt;. I am unable understand what is happening, looks like variable gets overridden somehow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;U-boot version I am using is &lt;STRONG&gt;2020.01+fslc+g76594fb&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Any lead on this?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 02:54:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321189#M178160</guid>
      <dc:creator>Raxesh-Oriya</dc:creator>
      <dc:date>2021-08-11T02:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321526#M178201</link>
      <description>&lt;P&gt;Hi Raxesh-Oriya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For safe the changes that you made in u-boot you need to save the variables, by putting the command: saveenv on the console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Israel.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 04:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321526#M178201</guid>
      <dc:creator>nxf63675</dc:creator>
      <dc:date>2021-08-11T04:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321553#M178204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/128270" target="_self"&gt;&lt;SPAN class=""&gt;nxf63675,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. Please elaborate on what do you exactly mean "putting command saveenv on console". I think that is required if I stop at u-boot console and modify fdt_file manually but that is not what I am doing instead I am making change in u-boot source code i.e. board configuration file. I do not want to do it manually.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1321553#M178204</guid>
      <dc:creator>Raxesh-Oriya</dc:creator>
      <dc:date>2021-08-11T05:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322221#M178277</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188574"&gt;@Raxesh-Oriya&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's correct, I was meaning to stop in u-boot and write that command, but as you mention this is doing it manually, if you want to integrate this in u-boot you need to modify the "defconfig" of your device, please see on the link below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In line 26 Modify and change the dtb that you are using,&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-evk-qspi"&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Israel.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 00:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322221#M178277</guid>
      <dc:creator>nxf63675</dc:creator>
      <dc:date>2021-08-12T00:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322302#M178291</link>
      <description>&lt;P&gt;Made following change,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;diff --git a/configs/mx7ulp_evk_defconfig b/configs/mx7ulp_evk_defconfig
index 3cf9015..00ddd18 100644
--- a/configs/mx7ulp_evk_defconfig
+++ b/configs/mx7ulp_evk_defconfig
@@ -17,7 +17,7 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
-CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-evk"
+CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-evk-mipi"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_DM=y&lt;/LI-CODE&gt;&lt;P&gt;And this change leads to compilation error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
...
...
| test -e arch/arm/dts/imx7ulp-evk-mipi.dtb || (						\
| echo &amp;gt;&amp;amp;2;							\
| echo &amp;gt;&amp;amp;2 "Device Tree Source is not correctly specified.";	\
| echo &amp;gt;&amp;amp;2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'";		\
| echo &amp;gt;&amp;amp;2 "or build with 'DEVICE_TREE=&amp;lt;device_tree&amp;gt;' argument";	\
| echo &amp;gt;&amp;amp;2;							\
| /bin/false)
| 
| Device Tree Source is not correctly specified.
| Please define 'CONFIG_DEFAULT_DEVICE_TREE'
| or build with 'DEVICE_TREE=&amp;lt;device_tree&amp;gt;' argument
| 
| /home/raxesh/res/build-imx7ulpevk-test/workspace/sources/u-boot-fslc/dts/Makefile:28: recipe for target 'arch/arm/dts/imx7ulp-evk-mipi.dtb' failed
| make[2]: *** [arch/arm/dts/imx7ulp-evk-mipi.dtb] Error 1
| /home/raxesh/res/build-imx7ulpevk-test/workspace/sources/u-boot-fslc/Makefile:1087: recipe for target 'dts/dt.dtb' failed
| make[1]: *** [dts/dt.dtb] Error 2
| make[1]: Leaving directory '/home/raxesh/res/build-imx7ulpevk-test/tmp/work/imx7ulpevk-poky-linux-gnueabi/u-boot-fslc/v2020.01+git999-r0/u-boot-fslc-v2020.01+git999/mx7ulp_evk_config'
| Makefile:167: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '/home/raxesh/res/build-imx7ulpevk-test/workspace/sources/u-boot-fslc'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| WARNING: /home/raxesh/res/src/poky/bitbake/lib/bb/build.py:570: ResourceWarning: unclosed file &amp;lt;_io.TextIOWrapper name='/home/raxesh/res/build-imx7ulpevk-test/workspace/sources/u-boot-fslc/singletask.lock' mode='a+' encoding='UTF-8'&amp;gt;
|   exec_func(task, localdata)
| 
| ERROR: Function failed: do_compile (log file is located at /home/raxesh/res/build-imx7ulpevk-test/tmp/work/imx7ulpevk-poky-linux-gnueabi/u-boot-fslc/v2020.01+git999-r0/temp/log.do_compile.3761)
ERROR: Task (/home/raxesh/res/src/meta-res/recipes-bsp/u-boot/u-boot-fslc_2020.01.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 647 tasks of which 639 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/raxesh/res/src/meta-res/recipes-bsp/u-boot/u-boot-fslc_2020.01.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
...
...
...&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Aug 2021 03:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322302#M178291</guid>
      <dc:creator>Raxesh-Oriya</dc:creator>
      <dc:date>2021-08-12T03:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue: fdt_file gets changed after reboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322314#M178292</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188574"&gt;@Raxesh-Oriya&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, reviewing the log you share this is because the device tree is not correctly specified, take a look at the next post that could help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-change-Linux-Kernel-configuration-file-in-Yocto-Project/tac-p/1112101" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-change-Linux-Kernel-configuration-file-in-Yocto-Project/tac-p/1112101&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Israel.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 03:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/issue-fdt-file-gets-changed-after-reboot/m-p/1322314#M178292</guid>
      <dc:creator>nxf63675</dc:creator>
      <dc:date>2021-08-12T03:35:05Z</dc:date>
    </item>
  </channel>
</rss>

