<?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>i.MX ProcessorsのトピックRe: Boot with initramfs</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735502#M114473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what bsp used in the case, please try to follow steps provided&lt;/P&gt;&lt;P&gt;by boundary devices and use its bsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 08:27:19 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-01-22T08:27:19Z</dc:date>
    <item>
      <title>Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735499#M114470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to boot initramfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I first validate that my rootfs starts correctly when booting from sd&lt;/P&gt;&lt;P&gt;I use the following booargs, and it boots without issues from sd.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;setenv boot "ext2load mmc 1:1 &amp;amp;&amp;amp; ext2load mmc 1:1 $fdtaddr $fdtfile &amp;amp;&amp;amp; setenv bootargs $mtdparts $params&amp;nbsp; root=mmcblk0p1 ro &amp;amp;&amp;amp; bootm $loadaddr - $fdtaddr"&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;run boot&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I then created initramfs and loaded the file with tftp to memory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&amp;nbsp;sh -c 'cd rootfs/ &amp;amp;&amp;amp; find . | cpio -H newc -o' | gzip -9 &amp;gt; new_initramfs.cpio.gz&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&amp;nbsp;mkimage -A arm -O linux -T ramdisk -C none -a 0x40800000 -n "Root Filesystem" -d ./new_initramfs.cpio.gz ./initramfs.cpio.gz.uboot&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&amp;nbsp;tftp 42000000 initramfs.cpio.gz.uboot;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. then I boot from u-boot with simple modification in bootargs which takes care to find rootfs in memory instead of searching rootfs in sd files.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;setenv boot "ext2load mmc 1:1 &amp;amp;&amp;amp; ext2load mmc 1:1 $fdtaddr $fdtfile &amp;amp;&amp;amp; setenv bootargs $mtdparts $params &lt;STRONG&gt;root=/dev/ram0 rw initrd=0x42000000,20M ramdisk_size=100000&lt;/STRONG&gt; &amp;amp;&amp;amp; bootm $loadaddr - $fdtaddr"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, I get failures on boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VGEN2: disabling&lt;BR /&gt;VGEN5: disabling&lt;BR /&gt;ALSA device list:&lt;BR /&gt;#0: imx-spdif&lt;BR /&gt;#1: imx-hdmi-soc&lt;BR /&gt;List of all partitions:&lt;BR /&gt;0100 100000 ram0 (driver?)&lt;BR /&gt;0101 100000 ram1 (driver?)&lt;BR /&gt;0102 100000 ram2 (driver?)&lt;BR /&gt;0103 100000 ram3 (driver?)&lt;BR /&gt;0104 100000 ram4 (driver?)&lt;BR /&gt;0105 100000 ram5 (driver?)&lt;BR /&gt;0106 100000 ram6 (driver?)&lt;BR /&gt;0107 100000 ram7 (driver?)&lt;BR /&gt;0108 100000 ram8 (driver?)&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;No filesystem could mount root, tried: ext3 ext2 ext4 cramfs vfat&lt;BR /&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)&lt;BR /&gt;CPU2: stopping&lt;BR /&gt;CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.1.31-imx6+ #1&lt;BR /&gt;Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also noticed the following in kernel boot:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rootfs image is not initramfs (junk in compressed archive); looks like an initrd&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Freeing initrd memory: 20480K (b2000000 - b3400000)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also checked kernel .config and it seems to be OK:&lt;/P&gt;&lt;P&gt;CONFIG_BLK_DEV_INITRD=y&lt;BR /&gt;CONFIG_RD_GZIP=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I then tried to change bootargs as following (removed root parameter, and bootm with 3 parameters)&lt;/P&gt;&lt;P&gt;sesetenv boot "ext2load mmc 1:1 &amp;amp;&amp;amp; ext2load mmc 1:1 $fdtaddr $fdtfile &amp;amp;&amp;amp; setenv bootargs $mtdparts $params&amp;nbsp; &amp;amp;&amp;amp; bootm $loadaddr 0x42000000 $fdtaddr"&lt;/P&gt;&lt;P&gt;Now I get "&lt;SPAN&gt;Waiting for root device ..." , but nothing happens...... :smileysad:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;smarc_usb0: disabling&lt;BR /&gt;VGEN2: disabling&lt;BR /&gt;VGEN5: disabling&lt;BR /&gt;ALSA device list:&lt;BR /&gt; #0: imx-spdif&lt;BR /&gt; #1: imx-hdmi-soc&lt;BR /&gt;Waiting for root device ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many combinations, and variables, but nothing helped.&lt;/P&gt;&lt;P&gt;Can anyone please help with it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 15:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735499#M114470</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2018-01-18T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735500#M114471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems this may depend on used kernel and and boot with initramfs is well described on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/301459"&gt;IMX6 - booting to a roofts on ramdisk (Boundary Sabre-lite)?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 01:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735500#M114471</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-01-22T01:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735501#M114472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for commenting.&lt;/P&gt;&lt;P&gt;I have these in my config, but I it still keep waiting for rootfs. That's so strange...&lt;/P&gt;&lt;P&gt;I tried everything: initrd (ext2), initramfs (cpio), tried build&amp;nbsp;fs in kernel or as seperate file, but nothing helps.&lt;/P&gt;&lt;P&gt;I don't understand why initramfs/initrd does not work, I&amp;nbsp;thought it is not so complex...&amp;nbsp;:smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735501#M114472</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2018-01-22T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735502#M114473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what bsp used in the case, please try to follow steps provided&lt;/P&gt;&lt;P&gt;by boundary devices and use its bsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735502#M114473</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-01-22T08:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735503#M114474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It is adlink board (lec-imx6), and has its own build, no ltib.&lt;/P&gt;&lt;P&gt;I will check the instructions in boundary and see if I missed anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway,&lt;/P&gt;&lt;P&gt;Ran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735503#M114474</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2018-01-22T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Boot with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735504#M114475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look on this post to see if you can use any information: &lt;A class="link-titled" href="https://imxdev.gitlab.io/tutorial/How_to_boot_imx_using_ramdisk/" title="https://imxdev.gitlab.io/tutorial/How_to_boot_imx_using_ramdisk/"&gt;How to boot imx using ramdisk - i.MXDev Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 13:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Boot-with-initramfs/m-p/735504#M114475</guid>
      <dc:creator>diego_dorta</dc:creator>
      <dc:date>2018-02-05T13:59:23Z</dc:date>
    </item>
  </channel>
</rss>

