<?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 Building uboot 22.04 / flash.bin failed in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1579358#M199777</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before adding my own board to uboot I try to compile flash.bin for the imx8mp EVK board.&lt;/P&gt;&lt;P&gt;I cloned &lt;A href="https://github.com/nxp-imx/uboot-imx.git" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"git clone &lt;A href="https://github.com/nxp-imx/uboot-imx.git" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx.git&lt;/A&gt; -b lf_v2022.04"&lt;/P&gt;&lt;P&gt;and followed the instruction in imx8mp_evk.rst. (createdt a bl31.bin, downloaded firmware...).&lt;/P&gt;&lt;P&gt;"make O=build" doesn't build a flash.bin.&lt;/P&gt;&lt;P&gt;Doing a "make O=build flash.bin" fails with&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;OBJCOPY u-boot-nodtb.bin&lt;BR /&gt;RELOC u-boot-nodtb.bin&lt;BR /&gt;../"" \&lt;BR /&gt;arch/arm/dts/imx8mp-evk.dtb &amp;gt; u-boot.its&lt;BR /&gt;/bin/sh: 1: ../: Permission denied&lt;BR /&gt;make[1]: *** [/home/user/y/src/nxp/uboot-imx/Makefile:1371: u-boot.its] Error 126&lt;BR /&gt;make[1]: *** Deleting file 'u-boot.its'&lt;BR /&gt;make[1]: Leaving directory '/home/user/y/src/nxp/uboot-imx/build'&lt;/P&gt;&lt;P&gt;How to fix it?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 18:18:24 GMT</pubDate>
    <dc:creator>arno_0</dc:creator>
    <dc:date>2023-01-09T18:18:24Z</dc:date>
    <item>
      <title>Building uboot 22.04 / flash.bin failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1579358#M199777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before adding my own board to uboot I try to compile flash.bin for the imx8mp EVK board.&lt;/P&gt;&lt;P&gt;I cloned &lt;A href="https://github.com/nxp-imx/uboot-imx.git" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"git clone &lt;A href="https://github.com/nxp-imx/uboot-imx.git" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/uboot-imx.git&lt;/A&gt; -b lf_v2022.04"&lt;/P&gt;&lt;P&gt;and followed the instruction in imx8mp_evk.rst. (createdt a bl31.bin, downloaded firmware...).&lt;/P&gt;&lt;P&gt;"make O=build" doesn't build a flash.bin.&lt;/P&gt;&lt;P&gt;Doing a "make O=build flash.bin" fails with&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;OBJCOPY u-boot-nodtb.bin&lt;BR /&gt;RELOC u-boot-nodtb.bin&lt;BR /&gt;../"" \&lt;BR /&gt;arch/arm/dts/imx8mp-evk.dtb &amp;gt; u-boot.its&lt;BR /&gt;/bin/sh: 1: ../: Permission denied&lt;BR /&gt;make[1]: *** [/home/user/y/src/nxp/uboot-imx/Makefile:1371: u-boot.its] Error 126&lt;BR /&gt;make[1]: *** Deleting file 'u-boot.its'&lt;BR /&gt;make[1]: Leaving directory '/home/user/y/src/nxp/uboot-imx/build'&lt;/P&gt;&lt;P&gt;How to fix it?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 18:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1579358#M199777</guid>
      <dc:creator>arno_0</dc:creator>
      <dc:date>2023-01-09T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Building uboot 22.04 / flash.bin failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1581552#M199983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157630"&gt;@arno_0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This build is for upstream, I'd suggest you use imx-mkimage (4.5.13 How to build imx-boot image by using imx-mkimage) of Linux user guide.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1581552#M199983</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-01-12T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Building uboot 22.04 / flash.bin failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1585877#M200435</link>
      <description>&lt;P&gt;Sorry for delay.&lt;/P&gt;&lt;P&gt;What do you mean with "upstream"?&amp;nbsp; I found at least 3 ways to build:&lt;/P&gt;&lt;P&gt;* mainline (from uboot repos)&lt;/P&gt;&lt;P&gt;* repos from nxp (done as described in that docu inside)&lt;/P&gt;&lt;P&gt;* repos from nxp as described in your mentioned porting guide).&lt;/P&gt;&lt;P&gt;I am not really clear why there are so different ways. Is it just to add the HDMI blob?&lt;/P&gt;&lt;P&gt;What I found is missed in this is to add BINMAN to the target. Other imx8mp targets have that inside, EVK not. With that included it compiles a flash.bin. But will try that way from porting guide too. Can I just skip the HDMI step if I don't use it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 06:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1585877#M200435</guid>
      <dc:creator>arno_0</dc:creator>
      <dc:date>2023-01-20T06:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Building uboot 22.04 / flash.bin failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1585928#M200438</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After consulting the R&amp;amp;D team, binman is turned off by default, in theory, there will be problems with binman doing FIT. So&amp;nbsp;suggested using the imx-mkimage tool, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 08:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/1585928#M200438</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2023-01-20T08:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Building uboot 22.04 / flash.bin failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/2091000#M236907</link>
      <description>&lt;P&gt;You need to make sure CONFIG_BINMAN is enabled for your board, which is nothing more than adding "&lt;SPAN class=""&gt;select BINMAN&lt;/SPAN&gt;" to your TARGET kconfig.&lt;/P&gt;&lt;P&gt;Then you need to make sure you use you generate spl.bin through a file (fed to your imx8mm-u-boot.dtsi) and have that file configured in CONFIG_IMX_CONFIG.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;FIT&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ROM_VERSION&lt;/SPAN&gt;    v2&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BOOT_FROM&lt;/SPAN&gt;      sd&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;LOADER&lt;/SPAN&gt;         u-boot-spl-ddr.bin      0x920000&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;In your defconfig sure you have CONFIG_SPL_LOAD_FIT_ADDRESS set to an appropriate address. Thereafter you need to implement this[1] commit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's practically it, but best is move mainline instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://github.com/u-boot/u-boot/commit/6039e0edc8540bd2abee780549b260bdaf089168" target="_blank" rel="noopener"&gt;https://github.com/u-boot/u-boot/commit/6039e0edc8540bd2abee780549b260bdaf089168&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 16:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-uboot-22-04-flash-bin-failed/m-p/2091000#M236907</guid>
      <dc:creator>Bayou</dc:creator>
      <dc:date>2025-05-02T16:37:22Z</dc:date>
    </item>
  </channel>
</rss>

