<?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>11661</bug_id>
          
          <creation_ts>2017-06-14 06:58:48 +0000</creation_ts>
          <short_desc>runqemu: Could not initialize SDL(No available video device) for core-image-sato on ubuntu-16.04</short_desc>
          <delta_ts>2017-06-16 02:08:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>2.3</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>critical</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brownson">brownson4u</reporter>
          <assigned_to name="Brownson">brownson4u</assigned_to>
          <cc>jku</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74133</commentid>
    <comment_count>0</comment_count>
    <who name="Brownson">brownson4u</who>
    <bug_when>2017-06-14 06:58:48 +0000</bug_when>
    <thetext>Steps:
1. git clone git://git.yoctoproject.org/poky
1. Build a sata image for qemux86-64
3. Run &quot;runqemu qemux86-64&quot; to boot up the qemu image

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;ubuntu-16.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;


The image can not boot up and the following error occurs:

runqemu - INFO - Assuming MACHINE = qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - INFO - MACHINE: qemux86
runqemu - INFO - DEPLOY_DIR_IMAGE: /home/brownson/poky/build/tmp/deploy/images/qemux86
runqemu - INFO - Running ls -t /home/brownson/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf...
runqemu - INFO - CONFFILE: /home/brownson/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20170614032017.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:

KERNEL: [tmp/deploy/images/qemux86/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-20170614032017.bin]
MACHINE: [qemux86]
FSTYPE: [ext4]
ROOTFS: [tmp/deploy/images/qemux86/core-image-sato-qemux86-20170614032017.rootfs.ext4]
CONFFILE: [/home/brownson/poky/build/tmp/deploy/images/qemux86/core-image-sato-qemux86-20170614032017.qemuboot.conf]

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Setting up tap interface under sudo
[sudo] password for brownson:
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Created tap: tap0
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running ldd tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-i386...
runqemu - INFO - Running tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-i386 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=tmp/deploy/images/qemux86/core-image-sato-qemux86-20170614032017.rootfs.ext4,if=virtio,format=raw -vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci   -cpu qemu32 -m 256 -serial mon:vc -serial null -kernel tmp/deploy/images/qemux86/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-20170614032017.bin -append &apos;root=/dev/vda rw highres=off  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 &apos;
Could not initialize SDL(No available video device) - exiting
runqemu - INFO - Running sudo /home/brownson/poky/scripts/runqemu-ifdown tap0 tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/
Set &apos;tap0&apos; nonpersistent
runqemu - INFO - Releasing lockfile for tap device &apos;tap0&apos;
Traceback (most recent call last):
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1238, in &lt;module&gt;
    ret = main()
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1231, in main
    config.start_qemu()
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1142, in start_qemu
    raise Exception(&apos;Failed to run %s&apos; % cmd)
Exception: Failed to run tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-i386 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=tmp/deploy/images/qemux86/core-image-sato-qemux86-20170614032017.rootfs.ext4,if=virtio,format=raw -vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci   -cpu qemu32 -m 256 -serial mon:vc -serial null -kernel tmp/deploy/images/qemux86/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-20170614032017.bin -append &apos;root=/dev/vda rw highres=off  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 &apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74159</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-06-14 17:44:16 +0000</bug_when>
    <thetext>Can you please describe your steps building the image for qemux86-64?
Based on your error report it seems you built machine for qemux86.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74181</commentid>
    <comment_count>2</comment_count>
    <who name="Brownson">brownson4u</who>
    <bug_when>2017-06-15 04:10:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Can you please describe your steps building the image for qemux86-64?
&gt; Based on your error report it seems you built machine for qemux86.

Yes, in my local conf file, i set machine to qemux86 and built for that only.
I simply followed the Yocto quick start tutorial/manual. 
I didn&apos;t build for qemux86-64. I could try to build for x86-64 and see if the error persists or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74184</commentid>
    <comment_count>3</comment_count>
    <who name="Brownson">brownson4u</who>
    <bug_when>2017-06-15 06:33:11 +0000</bug_when>
    <thetext>I have just built and then try to runqemu for qemux86-64. The error message is the same. please see below

brownson@linux1-HP-Z620-workstation:~/poky/build$ bitbake core-image-sato
Parsing recipes: 100% |#################################################################################| Time: 0:00:25
Parsing of 830 .bb files complete (0 cached, 830 parsed). 1299 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-poky
meta-yocto-bsp    = &quot;pyro:c63903443bab75cda3bfccb8f872985bd7e943c0&quot;

Initialising tasks: 100% |##############################################################################| Time: 0:00:14
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 6060 tasks of which 1639 didn&apos;t need to be rerun and all succeeded.
brownson@linux1-HP-Z620-workstation:~/poky/build$ runqemu qemux86-64
runqemu - INFO - Assuming MACHINE = qemux86-64
runqemu - INFO - Running MACHINE=qemux86-64 bitbake -e...
runqemu - INFO - MACHINE: qemux86-64
runqemu - INFO - DEPLOY_DIR_IMAGE: /home/brownson/poky/build/tmp/deploy/images/qemux86-64
runqemu - INFO - Running ls -t /home/brownson/poky/build/tmp/deploy/images/qemux86-64/*.qemuboot.conf...
runqemu - INFO - CONFFILE: /home/brownson/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64-20170615041728.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:

KERNEL: [tmp/deploy/images/qemux86-64/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-64-20170615041728.bin]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS: [tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64-20170615041728.rootfs.ext4]
CONFFILE: [/home/brownson/poky/build/tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64-20170615041728.qemuboot.conf]

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Setting up tap interface under sudo
[sudo] password for brownson:
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Created tap: tap0
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Running ldd tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-x86_64...
runqemu - INFO - Running tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64-20170615041728.rootfs.ext4,if=virtio,format=raw -vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci   -cpu core2duo -m 256 -serial mon:vc -serial null -kernel tmp/deploy/images/qemux86-64/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-64-20170615041728.bin -append &apos;root=/dev/vda rw highres=off  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 &apos;
Could not initialize SDL(No available video device) - exiting
runqemu - INFO - Running sudo /home/brownson/poky/scripts/runqemu-ifdown tap0 tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/
Set &apos;tap0&apos; nonpersistent
runqemu - INFO - Releasing lockfile for tap device &apos;tap0&apos;
Traceback (most recent call last):
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1238, in &lt;module&gt;
    ret = main()
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1231, in main
    config.start_qemu()
  File &quot;/home/brownson/poky/scripts/runqemu&quot;, line 1142, in start_qemu
    raise Exception(&apos;Failed to run %s&apos; % cmd)
Exception: Failed to run tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin//qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive file=tmp/deploy/images/qemux86-64/core-image-sato-qemux86-64-20170615041728.rootfs.ext4,if=virtio,format=raw -vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci   -cpu core2duo -m 256 -serial mon:vc -serial null -kernel tmp/deploy/images/qemux86-64/bzImage--4.10.9+git0+ad2e885015_fe0fb8da3d-r0-qemux86-64-20170615041728.bin -append &apos;root=/dev/vda rw highres=off  mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1 &apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74189</commentid>
    <comment_count>4</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-06-15 08:16:58 +0000</bug_when>
    <thetext>&gt; Could not initialize SDL(No available video device)

Just to cover the basics:
* Does the host have X running?
* Are you connected in a way that you can run X apps (e.g. if over ssh, then X11  forwarding is enabled)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74242</commentid>
    <comment_count>5</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-06-15 16:30:41 +0000</bug_when>
    <thetext>As pointed out by Jussi, providing your host system runs in X environment (for example NOT in a command line only container), please make sure you have all required host tools installed, please see:

http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html
3.2. The Build Host Packages</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74263</commentid>
    <comment_count>6</comment_count>
    <who name="Brownson">brownson4u</who>
    <bug_when>2017-06-16 02:08:58 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; Could not initialize SDL(No available video device)
&gt; 
&gt; Just to cover the basics:
&gt; * Does the host have X running?
&gt; * Are you connected in a way that you can run X apps (e.g. if over ssh, then
&gt; X11  forwarding is enabled)?

Yes X11 forwarding is enabled over ssh (using Putty).
when i echo $DISPLAY, the output is localhost:10.0

Found out by googling that i needed to install an xserver (Xming) on my windows PC. Did that and it&apos;s all working great now. Thanks for your helping to point me in the right direction</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>