Bug 11542 - runqemu does not display the error text from qemu-system-XXX when qemu-system-XXX fails to run
Summary: runqemu does not display the error text from qemu-system-XXX when qemu-system...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4
Assignee: Ed Bartosh
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-18 18:10 UTC by brian avery
Modified: 2017-06-06 09:47 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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