<?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: build imx-boot image in Yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679794#M208454</link>
    <description>&lt;P&gt;Got it, to do that process as you mentioned in your post, it is necessary to follow the next steps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;###### Host package setup ######
$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl

###### Execute script for SDK installation ######
$ chmod a+x fsl-imx-internal-xwayland-glibc-x86_64-test-internal-qt6-armv8a-imx8mpevk-toolchain-5.15-kirkstone.sh

##### To obtain the SDK (.sh file) you have to do it in Yocto with: #####

$ bitbake imx-image-core -c populate_sdk

###### Set environment for build ######
$ . /opt/fsl-imx-internal-xwayland/5.15-kirkstone/environment-setup-armv8a-poky-linux 
$ export ARCH=arm64

###### Build Uboot  ######
$ mkdir uboot_build
$ cd uboot_build
$ git clone https://github.com/nxp-imx/uboot-imx -b lf_v2022.04

$ cd uboot-imx
$ make clean
$ make imx8mm_evk_defconfig
$ make

###### Build ARM Trusted Firmware (ATF) ######
$ cd ..
$ git clone https://github.com/nxp-imx/imx-atf -b lf_v2.6
$ cd imx-atf/
$ make PLAT=imx8mm bl31

###### Download the DDR training bin ######
$ cd ..
$ mkdir firmware-imx
$ cd firmware-imx
$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.16.bin 
$ chmod a+x firmware-imx-8.16.bin
$ ./firmware-imx-8.16.bin

###### Download imx-mkimage and build the boot image ######
$ cd ~
$ git clone https://github.com/nxp-imx/imx-mkimage -b lf-5.15.32_2.0.0
$ cd imx-mkimage

###### Now you may copy all the files need for build boot image (flash.bin) ######
$ cp ../uboot-imx/spl/u-boot-spl.bin iMX8M/
$ cp ../uboot-imx/u-boot-nodtb.bin iMX8M/
$ cp ../uboot-imx/arch/arm/dts/imx8mm-evk.dtb iMX8M/
$ cp ../imx-atf/build/imx8mm/release/bl31.bin iMX8M/
$ cp ../firmware-imx/firmware-imx-8.16/firmware/ddr/synopsys/lpddr4_pmu_train_* iMX8M/
$ cp ../uboot-imx/tools/mkimage iMX8M/mkimage_uboot
$ make SOC=iMX8MM flash_evk

&lt;/LI-CODE&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 19:11:05 GMT</pubDate>
    <dc:creator>JorgeCas</dc:creator>
    <dc:date>2023-06-30T19:11:05Z</dc:date>
    <item>
      <title>build imx-boot image in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1678773#M208359</link>
      <description>&lt;P&gt;Hello! I'm trying to create an imx-boot image but something goes wrong.&lt;BR /&gt;Could you add instructions for Yocto?&lt;BR /&gt;I see instructions for the standalone version&lt;BR /&gt;4.5.13 How to build imx-boot image by using imx-mkimage&lt;BR /&gt;But I didn't see any like u-boot/tools/mkimage/ or imx-mkimage/&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Which command I should use? bitbake imx-mkimage ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 13:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1678773#M208359</guid>
      <dc:creator>AlekseyM</dc:creator>
      <dc:date>2023-06-29T13:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: build imx-boot image in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679005#M208381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;To create imx-boot image in Yocto you need to follow the next steps:&lt;/P&gt;
&lt;P&gt;1. Follow the steps of chapters 3 and 4 called "Host Setup" and "Yocto Project Setup" on i.MX Yocto Project User's Guide.&lt;/P&gt;
&lt;P&gt;2. After the command "repo sync" you have to put the next command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DISTRO=fsl-imx-xwayland MACHINE=&amp;lt;machine&amp;gt; source imx-setup-release.sh -b &amp;lt;build directory&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where:&lt;/P&gt;
&lt;P&gt;&amp;lt;machine&amp;gt; is the board that you are using.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge7u7_0-1688076602604.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230119iE9502522CD443CA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorge7u7_0-1688076602604.png" alt="Jorge7u7_0-1688076602604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge7u7_0-1688076704663.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230122i3181C80235218439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorge7u7_0-1688076704663.png" alt="Jorge7u7_0-1688076704663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;build directory&amp;gt; the name of the directory where you want to deploy all the generated files.&lt;/P&gt;
&lt;P&gt;3. Compile your boot image with the next command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;bitbake -c deploy imx-boot&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. You will have the outputs in the next folder:&lt;/P&gt;
&lt;P&gt;/imx-yocto-bsp/&amp;lt;build directory&amp;gt;/tmp/deploy/images/&amp;lt;machine&amp;gt;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 22:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679005#M208381</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-06-29T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: build imx-boot image in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679576#M208429</link>
      <description>&lt;P&gt;Thanks! I was not precise in the question, I wanted to make small changes to the spl and dtb files.&lt;BR /&gt;I should change those files in u-boot-imx directory, right?&amp;nbsp;&lt;BR /&gt;I mean I should do next step&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;bitbake -c compile u-boot-imx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here I changed spl and dts, with patches or manually&lt;/P&gt;&lt;P&gt;bitbake u-boot-imx&lt;/P&gt;&lt;P&gt;Here I should make cp like in&amp;nbsp;&lt;SPAN&gt;4.5.13 How to build imx-boot image by using imx-mkimage, but I can't find&amp;nbsp;u-boot/tools/mkimage,&amp;nbsp; u-boot/spl/u-boot-spl.bin,&amp;nbsp;u-boot-nodtb.bin&lt;BR /&gt;I find these bin files in u-boot-imx dir with another path, but&amp;nbsp;u-boot/tools/mkimage I can't find anywhere&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;bitbake -c deploy imx-boot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Am I right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679576#M208429</guid>
      <dc:creator>AlekseyM</dc:creator>
      <dc:date>2023-06-30T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: build imx-boot image in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679794#M208454</link>
      <description>&lt;P&gt;Got it, to do that process as you mentioned in your post, it is necessary to follow the next steps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;###### Host package setup ######
$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl

###### Execute script for SDK installation ######
$ chmod a+x fsl-imx-internal-xwayland-glibc-x86_64-test-internal-qt6-armv8a-imx8mpevk-toolchain-5.15-kirkstone.sh

##### To obtain the SDK (.sh file) you have to do it in Yocto with: #####

$ bitbake imx-image-core -c populate_sdk

###### Set environment for build ######
$ . /opt/fsl-imx-internal-xwayland/5.15-kirkstone/environment-setup-armv8a-poky-linux 
$ export ARCH=arm64

###### Build Uboot  ######
$ mkdir uboot_build
$ cd uboot_build
$ git clone https://github.com/nxp-imx/uboot-imx -b lf_v2022.04

$ cd uboot-imx
$ make clean
$ make imx8mm_evk_defconfig
$ make

###### Build ARM Trusted Firmware (ATF) ######
$ cd ..
$ git clone https://github.com/nxp-imx/imx-atf -b lf_v2.6
$ cd imx-atf/
$ make PLAT=imx8mm bl31

###### Download the DDR training bin ######
$ cd ..
$ mkdir firmware-imx
$ cd firmware-imx
$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.16.bin 
$ chmod a+x firmware-imx-8.16.bin
$ ./firmware-imx-8.16.bin

###### Download imx-mkimage and build the boot image ######
$ cd ~
$ git clone https://github.com/nxp-imx/imx-mkimage -b lf-5.15.32_2.0.0
$ cd imx-mkimage

###### Now you may copy all the files need for build boot image (flash.bin) ######
$ cp ../uboot-imx/spl/u-boot-spl.bin iMX8M/
$ cp ../uboot-imx/u-boot-nodtb.bin iMX8M/
$ cp ../uboot-imx/arch/arm/dts/imx8mm-evk.dtb iMX8M/
$ cp ../imx-atf/build/imx8mm/release/bl31.bin iMX8M/
$ cp ../firmware-imx/firmware-imx-8.16/firmware/ddr/synopsys/lpddr4_pmu_train_* iMX8M/
$ cp ../uboot-imx/tools/mkimage iMX8M/mkimage_uboot
$ make SOC=iMX8MM flash_evk

&lt;/LI-CODE&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/1679794#M208454</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-06-30T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: build imx-boot image in Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/2081098#M236356</link>
      <description>&lt;P&gt;I am trying to do the same thing for the iMX91 evk board. I can build the u-boot binary, but the imx-mkimage utility cannot build the flash.bin for the target flash_singleboot target for 91, since it is missing the firmware files. Can I get the wget address for the iMX91 firware files?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 20:38:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/build-imx-boot-image-in-Yocto/m-p/2081098#M236356</guid>
      <dc:creator>Edward_desplaines</dc:creator>
      <dc:date>2025-04-15T20:38:10Z</dc:date>
    </item>
  </channel>
</rss>

