Bug 10941 - runqemu -h or runqemu --help throw error
Summary: runqemu -h or runqemu --help throw error
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Robert Yang
QA Contact: Juan Ramos
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-01-18 17:51 UTC by Jan-Simon Moeller
Modified: 2017-05-05 22:52 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Simon Moeller 2017-01-18 17:51:04 UTC
> runqemu -h
runqemu - INFO - Assuming MACHINE = -h
runqemu - INFO - Running MACHINE=-h bitbake -e...
runqemu - ERROR - /home/dl9pf/poky/build/tmp/deploy/images/-h not a directory valid DEPLOY_DIR_IMAGE
runqemu - INFO - Can't find qemuboot conf file, DEPLOY_DIR_IMAGE is NULL!
runqemu - INFO - Overriding conf file setting of STAGING_DIR_NATIVE to /home/dl9pf/poky/build/tmp/sysroots/x86_64-linux from Bitbake environment
runqemu - INFO - Overriding conf file setting of STAGING_BINDIR_NATIVE to /home/dl9pf/poky/build/tmp/sysroots/x86_64-linux/usr/bin from Bitbake environment
Traceback (most recent call last):
  File "/home/dl9pf/poky/scripts/runqemu", line 1019, in <module>
    ret = main()
  File "/home/dl9pf/poky/scripts/runqemu", line 1007, in main
    config.check_and_set()
  File "/home/dl9pf/poky/scripts/runqemu", line 559, in check_and_set
    self.check_fstype()
  File "/home/dl9pf/poky/scripts/runqemu", line 451, in check_fstype
    raise Exception("FSTYPE is NULL!")
Exception: FSTYPE is NULL!
Comment 1 Ross Burton 2017-03-20 17:33:54 UTC
Merged in oe-core 6b9dd7a589537b12da648be50298cf7d36461797.
Comment 2 Juan Ramos 2017-05-05 22:52:03 UTC
verifyed, tested in commit:381897c64069ea43d595380a3ae913bcc79cf7e1


$ runqemu -h

Usage: you can run this script with any valid combination
of the following environment variables (in any order):
  KERNEL - the kernel image file to use
  ROOTFS - the rootfs image file or nfsroot directory to use
  MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)
  Simplified QEMU command-line options can be passed with:
    nographic - disable video console
    serial - enable a serial console on /dev/ttyS0
    slirp - enable user networking, no root privileges is required
    kvm - enable KVM when running x86/x86_64 (VT-capable CPU required)
    kvm-vhost - enable KVM with vhost when running x86/x86_64 (VT-capable CPU required)
    publicvnc - enable a VNC server open to all hosts
    audio - enable audio
    [*/]ovmf* - OVMF firmware file or base name for booting with UEFI
  tcpserial=<port> - specify tcp serial port number
  biosdir=<dir> - specify custom bios dir
  biosfilename=<filename> - specify bios filename
  qemuparams=<xyz> - specify custom parameters to QEMU
  bootparams=<xyz> - specify custom kernel parameters during boot
  help, -h, --help: print this text

Examples:
  runqemu
  runqemu qemuarm
  runqemu tmp/deploy/images/qemuarm
  runqemu tmp/deploy/images/qemux86/<qemuboot.conf>
  runqemu qemux86-64 core-image-sato ext4
  runqemu qemux86-64 wic-image-minimal wic
  runqemu path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial
  runqemu qemux86 iso/hddimg/vmdk/qcow2/vdi/ramfs/cpio.gz...
  runqemu qemux86 qemuparams="-m 256"
  runqemu qemux86 bootparams="psplash=false"
  runqemu path/to/<image>-<machine>.vmdk
  runqemu path/to/<image>-<machine>.wic