<?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>ColdFire/68K Microcontrollers and Processorsのトピックconfiguring INITRD on MCF5445x (linux-2.6.25)?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180208#M7322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to set up initrd on a MCF5445x to load kernel + initrd from a single U-Boot image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;- LTIB configured for M54451EVB giving me a userspace filesystem&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;(stripped down to around 10MB by deleting some apps + libs I do not currently need)&lt;/P&gt;&lt;P&gt;- U-Boot ported for my board (MCF54455@250MHz, 128MB DDR2)&lt;/P&gt;&lt;P&gt;- Kernel 2.6.25 ripped from LTIB and with slightly adapted configuration for my board&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I set in kernel .config:&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_BLK_DEV_INITRD=y&lt;BR /&gt;CONFIG_INITRAMFS_SOURCE="/daten/daten/router/uclinux-application/LTIB-MCF4e/ltib-mcfv4m-20090730/rootfs/"&lt;BR /&gt;CONFIG_INITRAMFS_ROOT_UID=0&lt;BR /&gt;CONFIG_INITRAMFS_ROOT_GID=0&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_CRAMFS=y&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_ROMFS_FS=y&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_BOOTPARAM=y&lt;BR /&gt;CONFIG_BOOTPARAM_STRING="rootfstype=romfs ro"&lt;BR /&gt;&lt;BR /&gt;This bootparam_string comes from an older MCF5373 kernel I have running successfully with initrd, so I would think it can not be too bad. &lt;SPAN aria-label="Wink" class="emoticon-inline emoticon_wink" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt; Considering the size of the resulting image and the messages, the initramfs image is correctly generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when booting the image, I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Linux version 2.6.25 (router@labor2.local) (gcc version 4.3.3 (Sourcery G++ Lite4.3-209) ) #23 Mon Mar 1 14:12:42 CET 2010&lt;BR /&gt;starting up linux startmem 0x406a6000, endmem 0x48000000, size 121MB&lt;BR /&gt;console [ttyS0] enabled&lt;BR /&gt;** availmem=0x406a8000 pa(am)=0x406a8000&lt;BR /&gt;** mstart=0x406a6000 mend=0x47ffe000&lt;BR /&gt;bpfn=0x20000 minpfn=0x20353 maxpfn=0x23fff&lt;BR /&gt;dma: phys base=0x406a8000 phys end=0x40ffffff virt base=0xef000000&lt;BR /&gt;mda=0xefffffff pa(mda)=0x40ffffff&lt;BR /&gt;Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16312&lt;BR /&gt;Kernel command line: root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[this is the kernel command line from the U-Boot environment - I did not yet change it because it seems not to have any effect anyways]&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;**** nfs_data = 0x402d8000&lt;BR /&gt;**** nfs_data = 0x402d8000&lt;BR /&gt;Root-NFS: No NFS server available, giving up.&lt;BR /&gt;VFS: Unable to mount root fs via NFS, trying floppy.&lt;BR /&gt;List of all partitions:&lt;BR /&gt;0100 32767 ram0 (driver?)&lt;BR /&gt;0101 32767 ram1 (driver?)&lt;BR /&gt;0102 32767 ram2 (driver?)&lt;BR /&gt;0103 32767 ram3 (driver?)&lt;BR /&gt;No filesystem could mount root, tried: jffs2&lt;BR /&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)&lt;BR /&gt;&lt;BR /&gt;Can anybody point me to the location where the kernel gets this idea about NFS from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Mar 2010 21:47:36 GMT</pubDate>
    <dc:creator>w_wegner</dc:creator>
    <dc:date>2010-03-01T21:47:36Z</dc:date>
    <item>
      <title>configuring INITRD on MCF5445x (linux-2.6.25)?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180208#M7322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to set up initrd on a MCF5445x to load kernel + initrd from a single U-Boot image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;P&gt;- LTIB configured for M54451EVB giving me a userspace filesystem&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;(stripped down to around 10MB by deleting some apps + libs I do not currently need)&lt;/P&gt;&lt;P&gt;- U-Boot ported for my board (MCF54455@250MHz, 128MB DDR2)&lt;/P&gt;&lt;P&gt;- Kernel 2.6.25 ripped from LTIB and with slightly adapted configuration for my board&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I set in kernel .config:&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_BLK_DEV_INITRD=y&lt;BR /&gt;CONFIG_INITRAMFS_SOURCE="/daten/daten/router/uclinux-application/LTIB-MCF4e/ltib-mcfv4m-20090730/rootfs/"&lt;BR /&gt;CONFIG_INITRAMFS_ROOT_UID=0&lt;BR /&gt;CONFIG_INITRAMFS_ROOT_GID=0&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_CRAMFS=y&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_ROMFS_FS=y&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;CONFIG_BOOTPARAM=y&lt;BR /&gt;CONFIG_BOOTPARAM_STRING="rootfstype=romfs ro"&lt;BR /&gt;&lt;BR /&gt;This bootparam_string comes from an older MCF5373 kernel I have running successfully with initrd, so I would think it can not be too bad. &lt;SPAN aria-label="Wink" class="emoticon-inline emoticon_wink" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt; Considering the size of the resulting image and the messages, the initramfs image is correctly generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when booting the image, I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Linux version 2.6.25 (router@labor2.local) (gcc version 4.3.3 (Sourcery G++ Lite4.3-209) ) #23 Mon Mar 1 14:12:42 CET 2010&lt;BR /&gt;starting up linux startmem 0x406a6000, endmem 0x48000000, size 121MB&lt;BR /&gt;console [ttyS0] enabled&lt;BR /&gt;** availmem=0x406a8000 pa(am)=0x406a8000&lt;BR /&gt;** mstart=0x406a6000 mend=0x47ffe000&lt;BR /&gt;bpfn=0x20000 minpfn=0x20353 maxpfn=0x23fff&lt;BR /&gt;dma: phys base=0x406a8000 phys end=0x40ffffff virt base=0xef000000&lt;BR /&gt;mda=0xefffffff pa(mda)=0x40ffffff&lt;BR /&gt;Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16312&lt;BR /&gt;Kernel command line: root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-flash.0:5M(kernel)ro,-(jffs2)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[this is the kernel command line from the U-Boot environment - I did not yet change it because it seems not to have any effect anyways]&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;**** nfs_data = 0x402d8000&lt;BR /&gt;**** nfs_data = 0x402d8000&lt;BR /&gt;Root-NFS: No NFS server available, giving up.&lt;BR /&gt;VFS: Unable to mount root fs via NFS, trying floppy.&lt;BR /&gt;List of all partitions:&lt;BR /&gt;0100 32767 ram0 (driver?)&lt;BR /&gt;0101 32767 ram1 (driver?)&lt;BR /&gt;0102 32767 ram2 (driver?)&lt;BR /&gt;0103 32767 ram3 (driver?)&lt;BR /&gt;No filesystem could mount root, tried: jffs2&lt;BR /&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)&lt;BR /&gt;&lt;BR /&gt;Can anybody point me to the location where the kernel gets this idea about NFS from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 21:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180208#M7322</guid>
      <dc:creator>w_wegner</dc:creator>
      <dc:date>2010-03-01T21:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: configuring INITRD on MCF5445x (linux-2.6.25)?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180209#M7323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be sure I tried with another command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kernel command line: root=/dev/ram0 ro rootfstype=romfs&lt;BR /&gt;&lt;BR /&gt;[...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;List of all partitions:&lt;BR /&gt;0100 32767 ram0 (driver?)&lt;BR /&gt;0101 32767 ram1 (driver?)&lt;BR /&gt;0102 32767 ram2 (driver?)&lt;BR /&gt;0103 32767 ram3 (driver?)&lt;BR /&gt;No filesystem could mount root, tried: romfs&lt;BR /&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)&lt;BR /&gt;&lt;BR /&gt;At least the NFS stuff is gone, however, still no usable root fs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 22:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180209#M7323</guid>
      <dc:creator>w_wegner</dc:creator>
      <dc:date>2010-03-01T22:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: configuring INITRD on MCF5445x (linux-2.6.25)?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180210#M7324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;again, it was my fault.&lt;/P&gt;&lt;P&gt;I thought I had set ltib to output an initramfs image/filesystem, but did not check this.&lt;/P&gt;&lt;P&gt;So I ended up with /init missing, thus the kernel correctly skipped this initramfs and tried to mount the "real" root, which was not present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the setup of the kernel was perfectly valid, all that was missing was a link to busybox from /init in the initramfs source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 21:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/configuring-INITRD-on-MCF5445x-linux-2-6-25/m-p/180210#M7324</guid>
      <dc:creator>w_wegner</dc:creator>
      <dc:date>2010-03-02T21:40:05Z</dc:date>
    </item>
  </channel>
</rss>

