Bug 11542

Summary: runqemu does not display the error text from qemu-system-XXX when qemu-system-XXX fails to run
Product: [Build System, Metadata & Runtime] OE-Core Reporter: brian avery <brian.avery>
Component: Scripts and ToolsAssignee: Ed Bartosh <eduard.bartosh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ross.burton
Version: 2.4   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description brian avery 2017-05-18 18:10:27 UTC
For example if I run 
$ runqemu ../vmlinux.bin-qemumips64.bin ../core-image-sato-sdk-qemumips64.ext4

I get :
Traceback (most recent call last):
  File "/big/src/myBugs/poky/scripts/runqemu", line 1238, in <module>
    ret = main()
  File "/big/src/myBugs/poky/scripts/runqemu", line 1231, in main
    config.start_qemu()
  File "/big/src/myBugs/poky/scripts/runqemu", line 1142, in start_qemu
    raise Exception('Failed to run %s' % cmd)

But, if you actually run the /qemu-system-mips64 command, you see:
qemu: could not load kernel '/big/src/myBugs/CH_HUAT/vmlinux.bin-qemumips64.bin'


which is quite a bit more helpful.


runqemu should capture and print out stdout/stderr from qemu-system-XXX when it fails and print it out.
Comment 1 Ed Bartosh 2017-05-26 11:40:37 UTC
Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2017-May/137169.html

please, review
Comment 2 Ed Bartosh 2017-06-06 09:47:16 UTC
the fix has been merged to poky master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e680f23c8b644051486c21d77442190ec80494de