<?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: How to boot linux with multi image boot with an initrd packed with it in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328930#M44274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some mistakes apparently, someone mentioned i don't really need more than the console arguments.&lt;/P&gt;&lt;P&gt;console=ttymxc1,115200 consoleblank=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i do use them rootfstype=ramfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I didn't have the ram disk block driver enabled in the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.203461] Trying to unpack rootfs image as initramfs...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.209196] rootfs image is not initramfs (junk in compressed archive); looks like an initrd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.229656] Freeing initrd memory: 3080K&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;66] RAMDISK: Couldn't find valid RAM disk image starting at 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also removed most of the user space libraries out, its more reasonable at 6.9 mb. Just enough to use busy box, and custom modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 21:41:46 GMT</pubDate>
    <dc:creator>kevin_chaves</dc:creator>
    <dc:date>2014-08-14T21:41:46Z</dc:date>
    <item>
      <title>How to boot linux with multi image boot with an initrd packed with it</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328929#M44273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a hard time getting an initrd to work nicely with a multi image boot. I'm using an imx6 quad with 1 gb or ram. Our starting address with it is 0x80000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have an issue with using the normal cpio image built into the kernel as an initramfs. My problem is that we have proprietary modules so it becomes a circular dependency in the tool we got from timesys. To be able to build the cpio in the kernel image I need to build the modules first, which require the kernel to be built, which needs the mudels... So I've opted for a single file with multiple images built into it. But I'm having a hard time finding any decent documentation with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that the kernel load address is the same as the ramdisk which I'm not sure if this is a problem. I do have both images separate, but I'm not entirely sure where to load cpio image separate. It seems like that could be easier since then I could just use bootm {kerneladdress} {cpioaddress} ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## Booting kernel from Legacy Image at 80800000 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Name:&amp;nbsp;&amp;nbsp; Linux-3.0.35&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image Type:&amp;nbsp;&amp;nbsp; ARM Linux Multi-File Image (uncompressed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 61927702 Bytes = 59.1 MiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load Address: 80008000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Entry Point:&amp;nbsp; 80008000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Contents:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Image 0: 3581868 Bytes = 3.4 MiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Image 1: 58345822 Bytes = 55.6 MiB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Verifying Checksum ... OK&lt;/P&gt;&lt;P&gt;## Loading init Ramdisk from multi component Legacy Image at 80800000 ...&lt;/P&gt;&lt;P&gt;## Flattened Device Tree from multi component Image at 80800000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Loading Multi-File Image ... OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kernel arguments I used I pulled from the only example of the multi image I could find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;] Kernel command line: console=ttymxc1,115200 consoleblank=0 root=/dev/ram0 rw initrd=80800000 rootfstype=cpio&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.152419] Unpacking initramfs...&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.155854] Initramfs unpacking failed: junk in compressed archive&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.173722] Freeing initrd memory: 56980K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if i needed this but I added some config options to my kernel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_BLK_DEV_INITRD=y&lt;/P&gt;&lt;P&gt;CONFIG_INITRAMFS_SOURCE=""&lt;/P&gt;&lt;P&gt;CONFIG_RD_GZIP=y&lt;/P&gt;&lt;P&gt;# CONFIG_RD_BZIP2 is not set&lt;/P&gt;&lt;P&gt;# CONFIG_RD_LZMA is not set&lt;/P&gt;&lt;P&gt;# CONFIG_RD_XZ is not set&lt;/P&gt;&lt;P&gt;# CONFIG_RD_LZO is not set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 18:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328929#M44273</guid>
      <dc:creator>kevin_chaves</dc:creator>
      <dc:date>2014-07-31T18:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot linux with multi image boot with an initrd packed with it</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328930#M44274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some mistakes apparently, someone mentioned i don't really need more than the console arguments.&lt;/P&gt;&lt;P&gt;console=ttymxc1,115200 consoleblank=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i do use them rootfstype=ramfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I didn't have the ram disk block driver enabled in the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.203461] Trying to unpack rootfs image as initramfs...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.209196] rootfs image is not initramfs (junk in compressed archive); looks like an initrd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.229656] Freeing initrd memory: 3080K&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;66] RAMDISK: Couldn't find valid RAM disk image starting at 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also removed most of the user space libraries out, its more reasonable at 6.9 mb. Just enough to use busy box, and custom modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 21:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328930#M44274</guid>
      <dc:creator>kevin_chaves</dc:creator>
      <dc:date>2014-08-14T21:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot linux with multi image boot with an initrd packed with it</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328931#M44275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;Are you fine with the issue or do you need further help?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 01:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328931#M44275</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-08-21T01:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot linux with multi image boot with an initrd packed with it</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328932#M44276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe so, there wasn't any real reason why most of my options didn't work. I ended up basically with an uncompressed cpio image since none of the compression was working, the multipart image I couldn't get working at all so I just loaded the cpio image separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the build system, the initramfs which had the least issues I couldn't use because of dependancies on some kernel modules and another oddity in which the order of the build seemed wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328932#M44276</guid>
      <dc:creator>kevin_chaves</dc:creator>
      <dc:date>2014-08-21T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to boot linux with multi image boot with an initrd packed with it</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328933#M44277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;If I am correct, you are fine now and the issue can be closed.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 05:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-boot-linux-with-multi-image-boot-with-an-initrd-packed/m-p/328933#M44277</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-08-22T05:47:09Z</dc:date>
    </item>
  </channel>
</rss>

