<?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: Failed to boot kernel with initramfs in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-kernel-with-initramfs/m-p/294921#M36417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another two interesting findings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.With the same initramfs file, the system can boot successfully &lt;/P&gt;&lt;P&gt;if the initramfs.cpio.gz is included in the kernel image. &lt;/P&gt;&lt;P&gt;2. If I create a standard ext2 ramdisk with the same contents extracted from initramfs.cpio.gz,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and download uImage and the new ramdisk in u-boot by tftp, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the the command "bootm ${kernel_loadaddr} ${ramdisk_loadaddr}"&lt;/P&gt;&lt;P&gt;can also boot the system successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that the file "initramfs.cpio.gz.uboot" is not a valid ramdisk image.&lt;/P&gt;&lt;P&gt;Or am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2014 14:13:18 GMT</pubDate>
    <dc:creator>RobbieJiang</dc:creator>
    <dc:date>2014-05-11T14:13:18Z</dc:date>
    <item>
      <title>Failed to boot kernel with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-kernel-with-initramfs/m-p/294920#M36416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working with imx6q sabrelite with linux-3.0.35, u-boot-2009.08.&lt;/P&gt;&lt;P&gt;I can boot kernel with NFS-mounted rootfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; with the initramfs ( initramfs.cpio.gz.uboot from Freescale MFG&amp;nbsp; tool),&lt;/P&gt;&lt;P&gt;the kernel failed to mount the root filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my u-boot commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setenv bootargs console=ttymxc0,115200 root=/dev/ram0 rw initrd=0x10C00000,4545390 ip=${ipaddr}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;tftpboot ${ramfs_loadaddr} ${ramfs}&lt;/P&gt;&lt;P&gt;tftpboot ${loadaddr} ${kernel}&lt;/P&gt;&lt;P&gt;bootm 0x10800000 0x10C00000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I firstly download kernel uImage to 0x10800000,&lt;/P&gt;&lt;P&gt;and then download initramfs.cpio.gz.uboot to 0x10C00000,&lt;/P&gt;&lt;P&gt;then run 'bootm' with the specified bootargs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The booting process failed when trying to mount root filesystem with the following outputs:&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;regulator_init_complete: VDDIO: incomplete constraints, leaving on&lt;/P&gt;&lt;P&gt;regulator_init_complete: VDDA: incomplete constraints, leaving on&lt;/P&gt;&lt;P&gt;snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:41:58 UTC (2518)&lt;/P&gt;&lt;P&gt;eth0: Freescale FEC PHY driver [Micrel KSZ9021 Gigabit PHY] (mii_bus:phy_addr=1:04, irq=-1)&lt;/P&gt;&lt;P&gt;PHY: 1:04 - Link is Up - 100/Full&lt;/P&gt;&lt;P&gt;IP-Config: Guessing netmask 255.255.255.0&lt;/P&gt;&lt;P&gt;IP-Config: Complete:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device=eth0, addr=192.168.0.64, mask=255.255.255.0, gw=255.255.255.255,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host=192.168.0.64, domain=, nis-domain=(none),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VFS: Cannot open root device "ram0" or unknown-block(0,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please append a correct "root=" boot option; here are the available partitions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1f00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1024 mtdblock0&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1024 mtdblock1&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;[&amp;lt;80047e34&amp;gt;] (unwind_backtrace+0x0/0xf8) from [&amp;lt;8052f310&amp;gt;] (panic+0x74/0x18c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8052f310&amp;gt;] (panic+0x74/0x18c) from [&amp;lt;80008d3c&amp;gt;] (mount_block_root+0x170/0x224)&lt;/P&gt;&lt;P&gt;[&amp;lt;80008d3c&amp;gt;] (mount_block_root+0x170/0x224) from [&amp;lt;80008ed8&amp;gt;] (mount_root+0xe8/0x108)&lt;/P&gt;&lt;P&gt;[&amp;lt;80008ed8&amp;gt;] (mount_root+0xe8/0x108) from [&amp;lt;80009024&amp;gt;] (prepare_namespace+0x12c/0x184)&lt;/P&gt;&lt;P&gt;[&amp;lt;80009024&amp;gt;] (prepare_namespace+0x12c/0x184) from [&amp;lt;80008a04&amp;gt;] (kernel_init+0x108/0x13c)&lt;/P&gt;&lt;P&gt;[&amp;lt;80008a04&amp;gt;] (kernel_init+0x108/0x13c) from [&amp;lt;80041aa4&amp;gt;] (kernel_thread_exit+0x0/0x8)&lt;/P&gt;&lt;P&gt;CPU1: stopping&lt;/P&gt;&lt;P&gt;[&amp;lt;80047e34&amp;gt;] (unwind_backtrace+0x0/0xf8) from [&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c) from [&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8)&lt;/P&gt;&lt;P&gt;Exception stack(0xe9fadf90 to 0xe9fadfd8)&lt;/P&gt;&lt;P&gt;df80:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80b2a8a0 80000093 00000001 00000000&lt;/P&gt;&lt;P&gt;dfa0: e9fac000 80b23424 80adda6c 80537b98 80ae0f0c 412fc09a 00000000 00000000&lt;/P&gt;&lt;P&gt;dfc0: 00000000 e9fadfd8 8004ff0c 80041b04 40000013 ffffffff&lt;/P&gt;&lt;P&gt;[&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8) from [&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28) from [&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124) from [&amp;lt;1052bc34&amp;gt;] (0x1052bc34)&lt;/P&gt;&lt;P&gt;CPU2: stopping&lt;/P&gt;&lt;P&gt;[&amp;lt;80047e34&amp;gt;] (unwind_backtrace+0x0/0xf8) from [&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c) from [&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8)&lt;/P&gt;&lt;P&gt;Exception stack(0xe9fb5f90 to 0xe9fb5fd8)&lt;/P&gt;&lt;P&gt;5f80:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80b2a8a0 60000093 00000001 00000000&lt;/P&gt;&lt;P&gt;5fa0: e9fb4000 80b23424 80adda6c 80537b98 80ae0f0c 412fc09a 00000000 00000000&lt;/P&gt;&lt;P&gt;5fc0: 00000000 e9fb5fd8 8004ff0c 80041b04 40000013 ffffffff&lt;/P&gt;&lt;P&gt;[&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8) from [&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28) from [&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124) from [&amp;lt;1052bc34&amp;gt;] (0x1052bc34)&lt;/P&gt;&lt;P&gt;CPU3: stopping&lt;/P&gt;&lt;P&gt;[&amp;lt;80047e34&amp;gt;] (unwind_backtrace+0x0/0xf8) from [&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c)&lt;/P&gt;&lt;P&gt;[&amp;lt;8003b324&amp;gt;] (do_IPI+0x150/0x17c) from [&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8)&lt;/P&gt;&lt;P&gt;Exception stack(0xe9f01f90 to 0xe9f01fd8)&lt;/P&gt;&lt;P&gt;1f80:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80b2a8a0 60000093 00000001 00000000&lt;/P&gt;&lt;P&gt;1fa0: e9f00000 80b23424 80adda6c 80537b98 80ae0f0c 412fc09a 00000000 00000000&lt;/P&gt;&lt;P&gt;1fc0: 00000000 e9f01fd8 8004ff0c 80041b04 40000013 ffffffff&lt;/P&gt;&lt;P&gt;[&amp;lt;80040a0c&amp;gt;] (__irq_svc+0x4c/0xe8) from [&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041b04&amp;gt;] (default_idle+0x24/0x28) from [&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124)&lt;/P&gt;&lt;P&gt;[&amp;lt;80041d20&amp;gt;] (cpu_idle+0xe0/0x124) from [&amp;lt;1052bc34&amp;gt;] (0x1052bc34)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my kernel command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or should I set the kernel command line in a way similar to the one in&lt;/P&gt;&lt;P&gt;"include/configs/mx6q_sabrelite_mfg.h"??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include/configs/mx6q_sabrelite_mfg.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;16 #define CONFIG_BOOTARGS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "console=ttymxc1,115200 rdinit=/linuxrc"&lt;/P&gt;&lt;P&gt;117 #define CONFIG_BOOTCOMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "bootm 0x10800000 0x10c00000"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 12:38:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-kernel-with-initramfs/m-p/294920#M36416</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2014-05-10T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to boot kernel with initramfs</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-kernel-with-initramfs/m-p/294921#M36417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another two interesting findings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.With the same initramfs file, the system can boot successfully &lt;/P&gt;&lt;P&gt;if the initramfs.cpio.gz is included in the kernel image. &lt;/P&gt;&lt;P&gt;2. If I create a standard ext2 ramdisk with the same contents extracted from initramfs.cpio.gz,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and download uImage and the new ramdisk in u-boot by tftp, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the the command "bootm ${kernel_loadaddr} ${ramdisk_loadaddr}"&lt;/P&gt;&lt;P&gt;can also boot the system successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that the file "initramfs.cpio.gz.uboot" is not a valid ramdisk image.&lt;/P&gt;&lt;P&gt;Or am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 14:13:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Failed-to-boot-kernel-with-initramfs/m-p/294921#M36417</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2014-05-11T14:13:18Z</dc:date>
    </item>
  </channel>
</rss>

