<?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 How to include gcc in initramfs (core-image-minimal-initramfs) for i.MX8MP QSPI-only boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2303402#M243725</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am working on an &lt;STRONG&gt;i.MX8M Plus DDR4 custom board&lt;/STRONG&gt; and I am able to successfully boot the system &lt;STRONG&gt;entirely from QSPI flash (32MB)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;My current boot components are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;flash.bin (U-Boot)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Image.gz (Linux kernel)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;imx8mp-ddr4-evk.dtb&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;core-image-minimal-initramfs.cpio.gz&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since my board &lt;STRONG&gt;does not have SD card or eMMC&lt;/STRONG&gt;, I am using &lt;STRONG&gt;initramfs as the root filesystem&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now I want to &lt;STRONG&gt;include gcc inside core-image-minimal-initramfs.cpio.gz&lt;/STRONG&gt;, so that I can compile applications directly on the target without relying on any external storage.&lt;/P&gt;&lt;P&gt;Changed the conf/local.conf and then build using command&lt;/P&gt;&lt;P&gt;bitbake core-image-minimal-initramfs&lt;/P&gt;&lt;P&gt;Also attached the local.conf file for your reference.&lt;/P&gt;&lt;P&gt;It generated&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;core-image-minimal-initramfs.cpio.gz&amp;nbsp;but gcc is not present in that /bin folder and getting like below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;~&lt;STRONG&gt; # gcc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/bin/sh: gcc: not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;~ # ls&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;bin dev home init.d media proc run sys usr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;boot etc init lib mnt root sbin tmp var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please advise:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;What is the &lt;STRONG&gt;correct Yocto method&lt;/STRONG&gt; to include gcc in an initramfs image?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there any &lt;STRONG&gt;recommended configurations or limitations&lt;/STRONG&gt; when using gcc inside initramfs (RAM usage, image size, etc.)?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or reference to NXP-supported Yocto practices would be very helpful.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jan 2026 06:06:45 GMT</pubDate>
    <dc:creator>Bhardwaj</dc:creator>
    <dc:date>2026-01-30T06:06:45Z</dc:date>
    <item>
      <title>How to include gcc in initramfs (core-image-minimal-initramfs) for i.MX8MP QSPI-only boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2303402#M243725</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am working on an &lt;STRONG&gt;i.MX8M Plus DDR4 custom board&lt;/STRONG&gt; and I am able to successfully boot the system &lt;STRONG&gt;entirely from QSPI flash (32MB)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;My current boot components are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;flash.bin (U-Boot)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Image.gz (Linux kernel)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;imx8mp-ddr4-evk.dtb&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;core-image-minimal-initramfs.cpio.gz&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since my board &lt;STRONG&gt;does not have SD card or eMMC&lt;/STRONG&gt;, I am using &lt;STRONG&gt;initramfs as the root filesystem&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now I want to &lt;STRONG&gt;include gcc inside core-image-minimal-initramfs.cpio.gz&lt;/STRONG&gt;, so that I can compile applications directly on the target without relying on any external storage.&lt;/P&gt;&lt;P&gt;Changed the conf/local.conf and then build using command&lt;/P&gt;&lt;P&gt;bitbake core-image-minimal-initramfs&lt;/P&gt;&lt;P&gt;Also attached the local.conf file for your reference.&lt;/P&gt;&lt;P&gt;It generated&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;core-image-minimal-initramfs.cpio.gz&amp;nbsp;but gcc is not present in that /bin folder and getting like below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;~&lt;STRONG&gt; # gcc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/bin/sh: gcc: not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;~ # ls&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;bin dev home init.d media proc run sys usr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;boot etc init lib mnt root sbin tmp var&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please advise:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;What is the &lt;STRONG&gt;correct Yocto method&lt;/STRONG&gt; to include gcc in an initramfs image?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there any &lt;STRONG&gt;recommended configurations or limitations&lt;/STRONG&gt; when using gcc inside initramfs (RAM usage, image size, etc.)?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or reference to NXP-supported Yocto practices would be very helpful.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 06:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2303402#M243725</guid>
      <dc:creator>Bhardwaj</dc:creator>
      <dc:date>2026-01-30T06:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to include gcc in initramfs (core-image-minimal-initramfs) for i.MX8MP QSPI-only boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2304500#M243752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254971"&gt;@Bhardwaj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to reply late, you can add the below code in local.conf file&lt;/P&gt;
&lt;PRE&gt;IMAGE_INSTALL:append = " gcc binutils glibc-utils libgcc-dev make"&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;B.R&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 08:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2304500#M243752</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2026-02-02T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to include gcc in initramfs (core-image-minimal-initramfs) for i.MX8MP QSPI-only boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2304641#M243759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202673"&gt;@pengyong_zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I added the following line to conf/local.conf:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IMAGE_INSTALL:append = " gcc binutils glibc-utils libgcc-dev make"&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, after rebuilding&lt;STRONG&gt; $bitbake core-image-minimal-initramfs,&lt;/STRONG&gt; gcc is still not included in core-image-minimal-initramfs.cpio.gz&lt;/P&gt;&lt;P&gt;When i check cpio.gz , gcc is not found (please see the attached screenshot).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bhardwaj_0-1770035606785.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/375164i468DF4BC1772B1DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bhardwaj_0-1770035606785.png" alt="Bhardwaj_0-1770035606785.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know if I’m missing something or if additional configuration is required to include gcc in the initramfs image?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 12:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2304641#M243759</guid>
      <dc:creator>Bhardwaj</dc:creator>
      <dc:date>2026-02-02T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to include gcc in initramfs (core-image-minimal-initramfs) for i.MX8MP QSPI-only boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2305639#M243812</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254971"&gt;@Bhardwaj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to put all of the Image to your QSPI flash(32MB)? If yes, then it's too small to contain gcc.&lt;/P&gt;
&lt;P&gt;B.R&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 02:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-include-gcc-in-initramfs-core-image-minimal-initramfs-for/m-p/2305639#M243812</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2026-02-04T02:09:08Z</dc:date>
    </item>
  </channel>
</rss>

