<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 5:36 AM, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bruce and Darren,<br>
<br>
We need enable target kernel's CONFIG_SCSI_VIRTIO=y to make native qemu<br>
can boot hdddirect, vmdk, qcow2 and vdi, otherwise, the scsi drive can't<br>
work in qemu since our vm image's root default to /dev/sda2, or we can<br>
change it default to /dev/hda2, then we don't have to make any changes<br>
on kernel, but I prefer scsi since ide is going to be out of date.<br></blockquote><div><br></div><div>The IDE fragment was on for compatibility reasons, but we dropped that</div><div>compatibility about a year ago. I was under the impression that we had</div><div>fully dropped all the IDE fragments.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I've tried to enable it by menuconfig, it works well, would you please<br>
enable it by default ?<br></blockquote><div><br></div><div><br></div><div>Send a patch to the linux-yocto mailing list to change the virtio configuration</div><div>fragment.</div><div><br></div><div>You are already set up to test it out, so it is much easier.</div><div><br></div><div>I don't see why this shouldn't follow the normal patch flow for configuration</div><div>frag changes.</div><div><br></div><div>Cheers,</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
$ diff .config.old .config -Nur<br>
--- .config.old 2016-02-25 01:04:25.816381913 -0800<br>
+++ .config 2016-02-25 01:16:31.332232759 -0800<br>
@@ -1479,7 +1479,7 @@<br>
# CONFIG_SCSI_DEBUG is not set<br>
# CONFIG_SCSI_PMCRAID is not set<br>
# CONFIG_SCSI_PM8001 is not set<br>
-# CONFIG_SCSI_VIRTIO is not set<br>
+CONFIG_SCSI_VIRTIO=y<br>
# CONFIG_SCSI_DH is not set<br>
# CONFIG_SCSI_OSD_INITIATOR is not set<br>
CONFIG_ATA=y<br>
<br>
$ du bzImage bzImage_new<br>
6752 bzImage<br>
6756 bzImage_new<br>
<br>
It nearly has no impact on the size.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Thanks<br>
<br>
Robert<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"</div>
</div></div>