<?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: modify initramfs in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194826#M10226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m not sure if I know which image you´re trying to change, and I´m not sure if the change is needed. But, here is the commands I use in order to unpack initramfs images I need to change. Maybe you don´t need one or two steps, so, please, take this as a guidance only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# dd if=uramdisk.img of=ramdisk.img.gz skip=64 bs=1&lt;/P&gt;
&lt;P&gt;# gunzip ramdisk.img.gz&lt;/P&gt;
&lt;P&gt;# mkdir ramdisk; cd ramdisk&lt;/P&gt;
&lt;P&gt;# cpio -i &amp;lt; ../ramdisk.img&lt;/P&gt;
&lt;P&gt;&amp;lt;make any changes needed&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to repack it again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# find . | cpio --create --format='newc' | gzip &amp;gt; ../ramdisk.img&lt;/P&gt;
&lt;P&gt;# mkimage -A arm -O linux -T ramdisk -C none -a LOADADDRESS -n "Label you want" -d ./ramdisk.img ./uramdisk.img&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:49:41 GMT</pubDate>
    <dc:creator>daiane_angolini</dc:creator>
    <dc:date>2020-10-29T09:49:41Z</dc:date>
    <item>
      <title>modify initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194825#M10225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;We are make board with iMX53, unfortunally initramfs.cpio.gz.uboot from MfgTool is not work on our board and I have to modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ file initramfs.cpio.gz.uboot &lt;/P&gt;&lt;P&gt;initramfs.cpio.gz.uboot: u-boot legacy uImage, uboot initramfs rootfs, Linux/ARM, RAMDisk Image (gzip), 4144518 bytes, Wed Mar 16 06:24:19 2011, Load Address: 0x00000000, Entry Point: 0x00000000, Header CRC: 0x6548D031, Data CRC: 0xA090FD19&lt;/P&gt;&lt;P&gt;But I can't unpack it...&lt;/P&gt;&lt;P&gt;$ cp initramfs.cpio.gz.uboot initramfs.cpio.gz&lt;/P&gt;&lt;P&gt;`initramfs.cpio.gz.uboot' -&amp;gt; `initramfs.cpio.gz'&lt;/P&gt;&lt;P&gt;$ gunzip initramfs.cpio.gz &amp;gt; initramfs.cpio&lt;/P&gt;&lt;P&gt;gzip: initramfs.cpio.gz: not in gzip format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I unpack and modify it?&lt;/P&gt;&lt;P&gt;Thank you and excuse me my bad english.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 07:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194825#M10225</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2012-09-18T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: modify initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194826#M10226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m not sure if I know which image you´re trying to change, and I´m not sure if the change is needed. But, here is the commands I use in order to unpack initramfs images I need to change. Maybe you don´t need one or two steps, so, please, take this as a guidance only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# dd if=uramdisk.img of=ramdisk.img.gz skip=64 bs=1&lt;/P&gt;
&lt;P&gt;# gunzip ramdisk.img.gz&lt;/P&gt;
&lt;P&gt;# mkdir ramdisk; cd ramdisk&lt;/P&gt;
&lt;P&gt;# cpio -i &amp;lt; ../ramdisk.img&lt;/P&gt;
&lt;P&gt;&amp;lt;make any changes needed&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to repack it again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;# find . | cpio --create --format='newc' | gzip &amp;gt; ../ramdisk.img&lt;/P&gt;
&lt;P&gt;# mkimage -A arm -O linux -T ramdisk -C none -a LOADADDRESS -n "Label you want" -d ./ramdisk.img ./uramdisk.img&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194826#M10226</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2020-10-29T09:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: modify initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194827#M10227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may also want to have a look at how LTIB builds "Manufacturing Firmware" profile as well. You can use this approach to build your own updater binary with own initramfs customized for your hardware and operations you want to run on it during manufacturing/programming/testing stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 07:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/modify-initramfs/m-p/194827#M10227</guid>
      <dc:creator>VladanJovanovic</dc:creator>
      <dc:date>2012-09-21T07:06:08Z</dc:date>
    </item>
  </channel>
</rss>

