<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Bill,<div><br></div><div>On 8 Nov 2013, at 23:13, Bill Martin wrote:</div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Please refer to my question in Volume 8 issue 35. I am very desperate in wanting to use the initramfs in m yoctobuild for an embedded x86 target architecture. I am using Yocto Dylan 9.0.2 for crown bay.<div>
<br></div><div>The root directory for my boot is in /dev/sda1</div><div><br></div><div>After normal boot, the root directory is presumably at /dev/sda. Hence my grub has "root (hd0,0)"<br><div><br></div><div>My grub 0.97 initrd command looks good<br>
<div><br></div><div>My dmesg spits out information and stops at the line</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">XT3-fs: mounted filesystem with ordered data</span><br></div><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">And that's where it ends up. No panic. </font></div>
</div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I noticed in meta/recipes-core/images the <a href="http://core-image-minimal-initramfs.bb/">core-image-minimal-initramfs.bb</a> has its IMAGE_ROOT size set to 8192. Is that too small?</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I found absolutely no help in the Yocto documentation on this initramfs stuff. </font></div></div></div></blockquote><div><br></div><div>There's plenty of information else where on this as it's one of the 'standard' ways of booting. The Yocto documentation focuses more on the Yocto-specific issues, though there are also some really good 'getting started' guides which go into much more detail.</div><div><br></div><div><a href="http://en.wikipedia.org/wiki/Initramfs">http://en.wikipedia.org/wiki/Initramfs</a> may be a good starting point.</div><br><blockquote type="cite"><div dir="ltr"><div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; ">I found a CONFIG_INITRAMFS_SOURCE and read that this tells the kernel where the initramfs is. I am not sure if I need to set it. Again, no Yocto documentation on how to use one of its builds!!!!!</span></div></div></div></blockquote><div><br></div><div>No, there should be no need for you to set this.</div><br><blockquote type="cite"><div dir="ltr"><div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; ">I presume my grub stage 1 and stage 2 completed and by the time my dmesg command dumps out messages, init is running. In fact I did see a familiar message that is in the init file.</span></div></div></div></blockquote><div><br></div><div>Do you mean you invoked the dmesg command or were you seeing kernel boot messages? These will be shown before init runs.</div><br><blockquote type="cite"><div dir="ltr"><div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; ">I googled all day on what this problem could be. Unfortunately a variety of different causes. I don't know where to begin.</span></div>
</div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I did see a question in May 2012 from a guy wanting to see if Yocto supports INITRAMFS. The responder was referring to Grub 2.0 and said in the kernel command initrd=config-image-minimal<target>.cpio.gz /dev/ram0</font></div></div></blockquote><div><br></div><div>I think that should be root=/dev/ram0 at the end.</div><br><blockquote type="cite"><div dir="ltr">
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; ">Is there someone out there, especially from Yocto, who at least tested the capability of Core-image-minimal-initramfs? And not on the simulator but in a real boot?</span></div></div></blockquote><div><br></div><div>From my experience, these things are all very well tested, especially at release time.</div><br></div><div>How did you install the image onto your target? Did you use the .hddimg file or something else?</div><div><br></div><div>Can you connect to the console on the system (e.g. serial)? You may need to enable it on the kernel command line with something like <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">console=tty0 console=ttyS0,115200n8</span></div><div><br></div><div apple-content-edited="true">
<div>Chris Tapp</div><div><br></div><div><a href="mailto:opensource@keylevel.com">opensource@keylevel.com</a></div><div><a href="http://www.keylevel.com">www.keylevel.com</a></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>