<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11286</bug_id>
          
          <creation_ts>2017-04-02 22:33:52 +0000</creation_ts>
          <short_desc>runqemu should validate the rootfs type it is trying to use and print clear message if unsupported.</short_desc>
          <delta_ts>2017-07-28 07:17:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72000</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-04-02 22:33:52 +0000</bug_when>
    <thetext>runqemu is happy to use an ext[234] file system as well as a rootfs dir. File types like .wic,.tar.bz2, .cpio are not supported.  Since the error messages in these cases can be quite obscure 
for example wic gives:
[   10.009298] Kernel Offset: disabled
[   10.009298] ---[ end Kernel panic - not syncing: Invalid configuration from end user prevents continuing
---
it would be helpful to validate the rootfs inputs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72097</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-04-05 09:03:43 +0000</bug_when>
    <thetext>The runqemu does check whether the fstype is supported or not:

    def check_arg_fstype(self, fst):
        &quot;&quot;&quot;Check and set FSTYPE&quot;&quot;&quot;
        if fst not in self.fstypes + self.vmtypes:
            logger.warn(&quot;Maybe unsupported FSTYPE: %s&quot; % fst)
        if not self.fstype or self.fstype == fst:
            if fst == &apos;ramfs&apos;:
                fst = &apos;cpio.gz&apos;
            self.fstype = fst
        else:
            raise Exception(&quot;Conflicting: FSTYPE %s and %s&quot; % (self.fstype, fst))

what did you mean about &quot;validate the rootfs inputs.&quot;, please ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72164</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-04-06 20:59:08 +0000</bug_when>
    <thetext>Hmm, so maybe my understanding of what should and should not work is wrong.  I built core-image-minimal for qemux86 off of master commitish 633ad6c9f436f5d2.
The following works fine:
runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.ext4 

The following all fail in diverse ways:
uvesa timeout, no login prompt:
runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz 
runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio

No valid filesystem found, kernel panic:
runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.tar.bz2
runqemu tmp/deploy/images/qemux86/bzImage-qemux86.bin tmp/deploy/images/qemux86/core-image-minimal-qemux86.wic

Undefined video mode 318 (stays stuck for ~ 1 minute then actually booted after I came back from getting tea. I thought his was failing but apparently not...)
$ runqemu qemux86 core-image-minimal wic 
----
Does this help clarify?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75373</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-07-28 07:15:04 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5c7d025ced2120e4f277b8fb22813a8602e3f8c7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>