<?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: i.MX28: Enable initramfs step by step</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223049#M15202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have an &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;additional "-e" in the cmdline, it will be added with your patch but I lost it :smileywink:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You also have the kernel option &lt;/SPAN&gt;&lt;/SPAN&gt;BLK_DEV_INITRD enabled that I didn't had.&lt;/P&gt;&lt;P&gt;I also found some other options wich are not enabled, like&lt;/P&gt;&lt;P&gt;BLK_DEV_RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I got this error in the bootlog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITRD: 0x40800000+0x02000000 overlaps in-use memory region - disabling initrd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 11:32:47 GMT</pubDate>
    <dc:creator>chris321</dc:creator>
    <dc:date>2013-04-08T11:32:47Z</dc:date>
    <item>
      <title>i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223044#M15197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;1. Prepare initramfs image&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, please follow the i.MX28 linux BSP user guide to build the LTIB once to make sure the u-boot, kernel, boot streams and rootfs are built successfully.&lt;/P&gt;&lt;P&gt;Then run the following command in LTIB for configuration setup.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -m config&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick "initramfs" in the Target Image Generation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--- Target Image Generation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; Options ---&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- Choose your root filesystem image type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Target image: (initramfs) ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit and save this configuration. Run the following command to build the LTIB again.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -f &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a successful build, the initramfs image "&lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz&lt;/SPAN&gt;" will be created under the "ltib" directory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;2. Integrate initramfs into SB file&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the building steps, when the following command is run&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -p boot_stream.spec -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;power_prep, boot_prep, linux_prep will be built and then these boot streams will be combined with zImage and u-boot to form the SD files. These SD files can be found at directory &lt;SPAN style="font-family: courier new,courier;"&gt;rootfs/boot&lt;/SPAN&gt;. In&lt;SPAN style="font-family: courier new,courier;"&gt; imx28_(ivt_)linux.sb&lt;/SPAN&gt;, the boot sequence is power_prep, boot_prep, linux_prep and then zImage. In &lt;SPAN style="font-family: courier new,courier;"&gt;imx28_(ivt_)uboot.sb&lt;/SPAN&gt;, the boot sequence is power_prep, boot_prep and then u-boot.&lt;/P&gt;&lt;P&gt;The boot and load sequence is actually controlled by the BD files linux(_ivt).bd and uboot(_ivt).bd. To integrate the initramfs into SB, simply apply the mx28_initramfs_imx-bootlets-src-10.12.01.patch to modify linux(_ivt).bd and run the build boot streams command again.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -p boot_stream.spec -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the build, the initramfs image will be integrated into the SB. You can check this from the imx28_(ivt_)linux.sb file size.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In linux_prep, function &lt;SPAN style="font-family: courier new,courier;"&gt;setup_initrd_tag() &lt;/SPAN&gt;setup a &lt;SPAN style="font-family: courier new,courier;"&gt;ATAG_INITRD2&lt;/SPAN&gt; memory tag to inform the kernel where the compressed initramfs iamge is located and its size. It is the the developer's responsibility to ensure that the size of the initrd.size is large enough to hold the initramfs.cpio.gz. If initrd.size is smaller than the &lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz&lt;/SPAN&gt; file size, please increase the &lt;SPAN style="font-family: courier new,courier;"&gt;initrd.size&lt;/SPAN&gt; value. Otherwise, the kernel will find this is a corrupted image and skip mounting the initramfs.&lt;/P&gt;&lt;P&gt;In this example, the patch reserves 32MB for &lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz&lt;/SPAN&gt;. Reserving 32MB may be too luxury but don't worry, this piece of memory will free after decompression complete and the initramfs has mounted.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program the &lt;SPAN style="font-family: courier new,courier;"&gt;imx28_(ivt_)linux.sb&lt;/SPAN&gt; to your booting media and power up the board. You should see the kernel will mount the initramfs as roofs after boot up.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3. Load initramfs from bootloader (Optional)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the previous section, the boot stream linux_prep helps to load the kernel and initramfs image and run the kernel automatically. Optionally, you can also make use of the bootloader to load the kernel and initramfs.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use the u-boot as bootloader, please apply the mx28_initramfs_u-boot-2009.08.patch and build the &lt;SPAN style="font-family: courier new,courier;"&gt;imx28_(ivt_)uboot.sb&lt;/SPAN&gt; by the following commands&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -p u-boot -f&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./ltib -p boot_stream.spec -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a successful build, the initramfs image "&lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz&lt;/SPAN&gt;" is created. Use the following command to insert the u-boot header to this image for u-boot to load.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;mkimage -A arm -O linux -T ramdisk -C none -a 0x40800000 -n "Root Filesystem" -d ./initramfs.cpio.gz ./initramfs.cpio.gz.uboot&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mkimage utility can be found under the u-boot directory "u-boot-2009.08/tools/".&lt;/P&gt;&lt;P&gt;Here the address 0x40800000 is the address where initramfs will be located. For i.MX28, the kernel will be always loaded at 0x40008000. Unless the kernel size is getting very large, usually there is no need to move the initramfs address.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us take the SD card boot as an example to continue. Use fdisk command and create the follow partitions on an SD card.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Command (m for help): p&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Disk /dev/sdc: 255 MB, 255066112 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;64 heads, 32 sectors/track, 243 cylinders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Units = cylinders of 2048 * 512 = 1048576 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Sector size (logical/physical): 512 bytes / 512 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;I/O size (minimum/optimal): 512 bytes / 512 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Disk identifier: 0xb3f32f78&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; Device Boot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks&amp;nbsp;&amp;nbsp; Id&amp;nbsp; System&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/sdc1&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; 16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50176&amp;nbsp;&amp;nbsp; 53&amp;nbsp; OnTrack DM6 Aux3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/sdc2&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; 65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64512&amp;nbsp;&amp;nbsp;&amp;nbsp; b&amp;nbsp; W95 FAT32&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/dev/sdc3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 243&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 118784&amp;nbsp;&amp;nbsp; 83&amp;nbsp; Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Command (m for help):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here the beginning 16MB of the SD card is reserved for storing the master boot record, u-boot environment, &lt;SPAN style="font-family: courier new,courier;"&gt;uImage&lt;/SPAN&gt; and&lt;SPAN style="font-family: courier new,courier;"&gt; initramfs.cpio.gz.uboot&lt;/SPAN&gt;. &lt;BR /&gt;The first partition is used to store the &lt;SPAN style="font-family: courier new,courier;"&gt;imx28_(ivt_)uboot.sb&lt;/SPAN&gt;. Partition 2 &amp;amp; 3 are optional for custom use.&lt;/P&gt;&lt;P&gt;Let's define the uImage to be stored at 128KB physical offset in the SD and the initramfs.cpio.gz.uboot is stored at 4MB offset to the SD.&lt;BR /&gt;Run the following to program the firmware images into the SD card.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;## Clean up u-boot env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dd if=/dev/zero of=/dev/sdx bs=512 seek=2 count=254; sync&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;## Write u-boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./sdimage -f rootfs/boot/imx28_ivt_uboot.sb -d /dev/sdx; sync&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dd if=rootfs/boot/uImage of=/dev/sdx bs=512 seek=256; sync&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dd if=initramfs.cpio.gz.uboot of=/dev/sdx bs=512 seek=8192; sync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Power up your board with the SD and you will see the autoboot countdown at the serial debug console. Hit any key to stop it. Review the boot environment by the "&lt;SPAN style="font-family: courier new,courier;"&gt;printenv&lt;/SPAN&gt;" command.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MX28 U-Boot &amp;gt; printenv&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootargs=console=ttyAM0,115200n8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd=run bootcmd_SD; bootm ${loadaddr} ${rd_loadaddr}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootdelay=3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;baudrate=115200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ipaddr=192.168.1.103&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;serverip=192.168.1.101&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;netmask=255.255.255.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootfile="uImage"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;loadaddr=0x42000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;nfsroot=/home/notroot/nfs/rootfs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp fec_mac=${ethaddr}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd_net=run bootargs_nfs; dhcp; bootm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p3 rw rootwait ip=dhcp fec_mac=${ethaddr}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd_mmc=run bootargs_mmc; mmc read 0 ${loadaddr} 100 3000; bootm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;loadaddr=0x42000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rd_loadaddr=0x42300000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootargs_SD=setenv bootargs ${bootargs} rw gpmi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd_SD=run bootargs_SD; mmc read 0 ${loadaddr} 0x100 0x1800; mmc read 0 ${rd_loadaddr} 0x2000 0x4000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;stdin=serial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;stdout=serial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;stderr=serial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ethact=FEC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ver=U-Boot 2009.08-dirty (Mar 13 2013 - 18:43:19)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Environment size: 886/130044 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MX28 U-Boot &amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;"&lt;/SPAN&gt;bootargs_SD&lt;/SPAN&gt;" simply setup the kernel command line.&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd_SD&lt;/SPAN&gt;" run the "&lt;SPAN style="font-family: courier new,courier;"&gt;bootargs_SD&lt;/SPAN&gt;" and read uImage from SD physical offset 128KB to address "&lt;SPAN style="font-family: courier new,courier;"&gt;loadaddr&lt;/SPAN&gt;" and then read &lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz.uboot&lt;/SPAN&gt; from the SD physical offset 4MB to "&lt;SPAN style="font-family: courier new,courier;"&gt;rd_loadaddr&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: courier new,courier;"&gt;loadaddr&lt;/SPAN&gt;" is 0x42000000 and "&lt;SPAN style="font-family: courier new,courier;"&gt;rd_loadaddr&lt;/SPAN&gt;" is 0x42300000. These memory areas are generally not used by i.MX28 u-boot and are used here to hold the &lt;SPAN style="font-family: courier new,courier;"&gt;uImage&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier;"&gt;initramfs.cpio.gz.uboot&lt;/SPAN&gt;. "&lt;SPAN style="font-family: courier new,courier;"&gt;loadaddr&lt;/SPAN&gt;" and "&lt;SPAN style="font-family: courier new,courier;"&gt;rd_loadaddr&lt;/SPAN&gt;" must be far apart enough so that the loaded images will not overlap.&lt;/P&gt;&lt;P&gt;The "&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd&lt;/SPAN&gt;" run "&lt;SPAN style="font-family: courier new,courier;"&gt;bootcmd_SD&lt;/SPAN&gt;", and use "&lt;SPAN style="font-family: courier new,courier;"&gt;bootm&lt;/SPAN&gt;" commnad to boot the kernel. The first argument is the address where the kernel uImage is stored. The second argument is the initramfs u-image. This second argument can be omitted if initramfs is not used and in this case, kernel will expect a correct "root=" option in the kernel command line.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can manually edit the boot environment or hardcode it in the &lt;SPAN style="font-family: courier new,courier;"&gt;include/configs/mx28_evk.h&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Reset your board and let it autoboot. You should see the initramfs will be mounted as rootfs as in section 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336901"&gt;mx28_initramfs_imx-bootlets-src-10.12.01.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336901"&gt;mx28_initramfs_u-boot-2009.08.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 11:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223044#M15197</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-03-13T11:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223045#M15198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for this tutorial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bootlet patch you have used absolute paths. This issn't right or?&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; zImage = "./zImage";&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; zImage="/home/pchan/SDK_source/mx28_1012_nand/ltib/rootfs/boot/zImage";&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; initramfs="/home/pchan/SDK_source/mx28_1012_nand/ltib/initramfs.cpio.gz";&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;Edit:&lt;/SPAN&gt;&lt;/STRONG&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;Hello again Peter&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;I have tried your step by step tutorial and I got a bootstream with integrated initramfs, thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;But I dont get it to boot from it. Please can you tell me your boot param cmdline ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Mine are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;console=ttyAMA0,115200 root=/dev/ram0 rootfstype=ramfs initrd=0x40800000 ip=none gpmi init=sbin/init&lt;/P&gt;&lt;P&gt;But I got errors like this&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;8.076007] VFS: Mounted root (ramfs filesystem) readonly on device 0:11.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.083648] devtmpfs: error mounting -2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.088680] Freeing init memory: 168K&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.092951] Failed to execute sbin/init.&amp;nbsp; Attempting defaults...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.100317] Kernel panic - not syncing: No init found.&amp;nbsp; Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.112861] [&amp;lt;c0014eac&amp;gt;] (unwind_backtrace+0x0/0xf4) from [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.121094] [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204) from [&amp;lt;c047bfa0&amp;gt;] (kernel_init+0xc0/0xe4)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;8.128975] [&amp;lt;c047bfa0&amp;gt;] (kernel_init+0xc0/0xe4) from [&amp;lt;c000f2c8&amp;gt;] (ret_from_fork+0x14/0x2c)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the "initrd=0x40800000" is wrong. I got the address from the patched linux_prep/core/setup.c : params-&amp;gt;u.initrd.start = 0x40800000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initramfs.cpio.gz is 6.6 MB (14,1 MB gunzipped) large. According to the patched setup.c the initramfs have 33 MB place. Here you can see my partitions, I think there is enough space for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Gerät&amp;nbsp; boot. &lt;/TD&gt;&lt;TD&gt;Anfang&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Ende &lt;/TD&gt;&lt;TD&gt;Blöcke&amp;nbsp;&amp;nbsp; Id&amp;nbsp; System&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/dev/sdb1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;16&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;59487+&amp;nbsp;&amp;nbsp; b&amp;nbsp; W95 FAT32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/dev/sdb2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;31&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;56730&amp;nbsp;&amp;nbsp; 53&amp;nbsp; OnTrack DM6 Aux3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/dev/sdb3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;1022 &lt;/TD&gt;&lt;TD&gt;3747962+&amp;nbsp; 83&amp;nbsp; Linux&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch Chris 321&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 11:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223045#M15198</guid>
      <dc:creator>chris321</dc:creator>
      <dc:date>2013-04-03T11:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223046#M15199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good catch! I shouldn't use absolute path in the patch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't modify boot parameter cmdline and just leave it as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not set "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;root=/dev/ram0 rootfstype=ramfs initrd=0x40800000". I think they are only required for initrd. For initramfs, the initramfs address is specified when running the mkimage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Please read this link&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A href="http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Introducing-initramfs-a-new-model-for-initial-RAM-disks/" title="http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Introducing-initramfs-a-new-model-for-initial-RAM-disks/"&gt;Introducing initramfs, a new model for initial RAM disks - Linux For Devices Articles - Linux for Devices&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;for the difference between initramfs and initrd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Please also omit "init=sbin/init" in cmdline if you don't need to remount the rootfs to other media.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 05:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223046#M15199</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-04-05T05:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223047#M15200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the standart cmdline&amp;nbsp; (except the console :smileywink: )&lt;/P&gt;&lt;P&gt;noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootwait ip=none gpmi&lt;/P&gt;&lt;P&gt;and no rfs on mmcblk0p3, ofcourse the kernel can't find the root @ /dev/mmcblk0p3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.078378] List of all partitions:&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.082170] b300&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3866624 mmcblk0&amp;nbsp; driver: mmcblk&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.087564]&amp;nbsp;&amp;nbsp; b301&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 59487 mmcblk0p1 f129ae9b-01&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.093085]&amp;nbsp;&amp;nbsp; b302&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56730 mmcblk0p2 f129ae9b-02&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.098445]&amp;nbsp;&amp;nbsp; b303&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3747962 mmcblk0p3 f129ae9b-03&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.103945] No filesystem could mount root, tried:&amp;nbsp; ext3 ext2 ext4&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.110501] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.119033] [&amp;lt;c0014eac&amp;gt;] (unwind_backtrace+0x0/0xf4) from [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.127267] [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204) from [&amp;lt;c0631d18&amp;gt;] (mount_block_root+0x218/0x25c)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.135752] [&amp;lt;c0631d18&amp;gt;] (mount_block_root+0x218/0x25c) from [&amp;lt;c0631e30&amp;gt;] (mount_root+0xd4/0xf8)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.144576] [&amp;lt;c0631e30&amp;gt;] (mount_root+0xd4/0xf8) from [&amp;lt;c0631f7c&amp;gt;] (prepare_namespace+0x128/0x18c)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.153490] [&amp;lt;c0631f7c&amp;gt;] (prepare_namespace+0x128/0x18c) from [&amp;lt;c063131c&amp;gt;] (kernel_init_freeable+0x16c/0x1b0)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.163444] [&amp;lt;c063131c&amp;gt;] (kernel_init_freeable+0x16c/0x1b0) from [&amp;lt;c047bee8&amp;gt;] (kernel_init+0x8/0xe4)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.172630] [&amp;lt;c047bee8&amp;gt;] (kernel_init+0x8/0xe4) from [&amp;lt;c000f2c8&amp;gt;] (ret_from_fork+0x14/0x2c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the same cmdline and a rootfs on /dev/mmcblk0p3 the kernel loads the rootfs from there&lt;/P&gt;&lt;P&gt;and with the cmdline without root=XXX&lt;/P&gt;&lt;P&gt;noinitrd console=ttyAMA0,115200 rw rootwait ip=none gpmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the kernel stops at&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.060459] Waiting for root device ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I had removed the "rootwait" param&lt;/P&gt;&lt;P&gt;so this is the cmdline&lt;/P&gt;&lt;P&gt;noinitrd console=ttyAMA0,115200 rw ip=none gpmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now he can't actually find some root&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.899387] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.906915] Please append a correct "root=" boot option; here are the available partitions:&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.915490] b300&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3866624 mmcblk0&amp;nbsp; driver: mmcblk&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.921007]&amp;nbsp;&amp;nbsp; b301&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 59487 mmcblk0p1 16d99b46-01&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.926374]&amp;nbsp;&amp;nbsp; b302&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56730 mmcblk0p2 16d99b46-02&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.931887]&amp;nbsp;&amp;nbsp; b303&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3747962 mmcblk0p3 16d99b46-03&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.937534] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.945894] [&amp;lt;c0014eac&amp;gt;] (unwind_backtrace+0x0/0xf4) from [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.954127] [&amp;lt;c047ccc0&amp;gt;] (panic+0x98/0x204) from [&amp;lt;c0631ca4&amp;gt;] (mount_block_root+0x1a4/0x25c)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.962608] [&amp;lt;c0631ca4&amp;gt;] (mount_block_root+0x1a4/0x25c) from [&amp;lt;c0631e30&amp;gt;] (mount_root+0xd4/0xf8)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.971434] [&amp;lt;c0631e30&amp;gt;] (mount_root+0xd4/0xf8) from [&amp;lt;c0631f7c&amp;gt;] (prepare_namespace+0x128/0x18c)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.980350] [&amp;lt;c0631f7c&amp;gt;] (prepare_namespace+0x128/0x18c) from [&amp;lt;c063131c&amp;gt;] (kernel_init_freeable+0x16c/0x1b0)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.990305] [&amp;lt;c063131c&amp;gt;] (kernel_init_freeable+0x16c/0x1b0) from [&amp;lt;c047bee8&amp;gt;] (kernel_init+0x8/0xe4)&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.999488] [&amp;lt;c047bee8&amp;gt;] (kernel_init+0x8/0xe4) from [&amp;lt;c000f2c8&amp;gt;] (ret_from_fork+0x14/0x2c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats why I had tried the other way in my first post with&lt;/P&gt;&lt;P&gt;console=ttyAMA0,115200 root=/dev/ram0 rootfstype=ramfs initrd=0x40800000 ip=none gpmi init=sbin/init&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;Maybe the Kernel needs some extra configuration for initramfs support?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 09:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223047#M15200</guid>
      <dc:creator>chris321</dc:creator>
      <dc:date>2013-04-05T09:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223048#M15201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my .config and the boot log here. In the boot log, you can see that the kernel command line is just the default one. The image is prepared by just applying the mx28_initramfs_imx-bootlets-src-10.12.01.patch and follow the step 1 &amp;amp; 2 in this post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 08:54:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223048#M15201</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-04-08T08:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223049#M15202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have an &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;additional "-e" in the cmdline, it will be added with your patch but I lost it :smileywink:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You also have the kernel option &lt;/SPAN&gt;&lt;/SPAN&gt;BLK_DEV_INITRD enabled that I didn't had.&lt;/P&gt;&lt;P&gt;I also found some other options wich are not enabled, like&lt;/P&gt;&lt;P&gt;BLK_DEV_RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I got this error in the bootlog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITRD: 0x40800000+0x02000000 overlaps in-use memory region - disabling initrd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 11:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223049#M15202</guid>
      <dc:creator>chris321</dc:creator>
      <dc:date>2013-04-08T11:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223050#M15203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "overlaps in use-memory region" error may probably due to kernel size too large. By default, address space starting from 0x40008000 is reserved for kernel and address space starting from 0x40800000 is reserved for initramfs. If the kernel spans into 0x40800000, the error will occur. You can find out the kernel size from System.map. If this is really the case, you can modify the setup_initrd_tag() function in linux_prep and the linux(_ivt).bd to move this address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are also recommended to use a clean BSP to try this patch first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:50:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223050#M15203</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-04-09T08:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223051#M15204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with a new clean BSP with kernel 2.6.35 it works, thank you Peter.&lt;/P&gt;&lt;P&gt;But there are two questions left :smileyhappy:&lt;/P&gt;&lt;P&gt;How can I get the kernel size out of the system.map? The last adress in it points to a address c04d97a8 (3 GB?)&lt;/P&gt;&lt;P&gt;I found something like c0008790 start_kernel but no end/stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the other question, what is the difference for using an initramfs by force of of the bootlet patch&lt;/P&gt;&lt;P&gt;and the kernel option CONFIG_INITRAMFS_SOURCE where I can enter the path to the initramfs.cpio.gz ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gt-baf-back"&gt;&lt;/SPAN&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223051#M15204</guid>
      <dc:creator>chris321</dc:creator>
      <dc:date>2013-04-09T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223052#M15205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The kernel size can be calculated by subtracting lowest address from the highest address in System.map. In your case, it is 0xC04d97a8 - 0xc0004000 which should be 5,068,712 bytes.&lt;/P&gt;&lt;P&gt;They are the same. Here the rootfs under LTIB will be mounted as rootfs by initramfs. You can also specify the initramfs path by the kernel option CONFIG_INITRAMFS_SOURCE. In LTIB, this kernel option CONFIG_INITRAMFS_SOURCE can be edited at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;General setup&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ()&amp;nbsp;&amp;nbsp;&amp;nbsp; Initramfs source file(s)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 02:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223052#M15205</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-04-11T02:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223053#M15206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello chris321&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now using freescale L3.0.35 BSP,and when I use initramfs,I have the same issues that you have met.&lt;/P&gt;&lt;P&gt;1)when I set&amp;nbsp; 'root=/dev/ram0 rootfstype=ramfs initrd=0x40800000 ip=none gpmi init=sbin/init',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; it comes ' Failed to execute sbin/init.&amp;nbsp; Attempting defaults...'&lt;/P&gt;&lt;P&gt;2)when I omit these params,it comes ' VFS: Cannot open root device "(null)" or unknown-block(0,0)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give some advice.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 09:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223053#M15206</guid>
      <dc:creator>宗標廖</dc:creator>
      <dc:date>2014-11-28T09:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX28: Enable initramfs step by step</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223054#M15207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm facing the same problem.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;VFS: Mounted root (ramfs filesystem) on device 0:11.&lt;/P&gt;&lt;P&gt;Freeing init memory: 124K&lt;/P&gt;&lt;P&gt;Failed to execute /init. Attempting defaults...&lt;/P&gt;&lt;P&gt;Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.&lt;/P&gt;&lt;P&gt;Backtrace:&lt;/P&gt;&lt;P&gt;[&amp;lt;8002b990&amp;gt;] (dump_backtrace+0x0/0x110) from [&amp;lt;802d69a8&amp;gt;] (dump_stack+0x18/0x1c)&lt;BR /&gt;r7:00000013 r6:80046b14 r5:800221c8 r4:803dbd58&lt;/P&gt;&lt;P&gt;[&amp;lt;802d6990&amp;gt;] (dump_stack+0x0/0x1c) from [&amp;lt;802d6a24&amp;gt;] (panic+0x78/0xfc)&lt;/P&gt;&lt;P&gt;[&amp;lt;802d69ac&amp;gt;] (panic+0x0/0xfc) from [&amp;lt;800275ec&amp;gt;] (init_post+0xb4/0xdc)&lt;BR /&gt;r3:00000000 r2:83c72d00 r1:83c72e00 r0:80359312&lt;/P&gt;&lt;P&gt;[&amp;lt;80027538&amp;gt;] (init_post+0x0/0xdc) from [&amp;lt;800084fc&amp;gt;] (kernel_init+0x12c/0x170)&lt;BR /&gt;r5:800221c8 r4:803daf40&lt;/P&gt;&lt;P&gt;[&amp;lt;800083d0&amp;gt;] (kernel_init+0x0/0x170) from [&amp;lt;80046b14&amp;gt;] (do_exit+0x0/0x6a4)&lt;BR /&gt;r5:800083d0 r4:00000000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Has anyone found a solution for this?&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX28-Enable-initramfs-step-by-step/m-p/223054#M15207</guid>
      <dc:creator>rootb3r</dc:creator>
      <dc:date>2019-04-13T13:24:09Z</dc:date>
    </item>
  </channel>
</rss>

