<?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>10473</bug_id>
          
          <creation_ts>2016-10-21 08:32:31 +0000</creation_ts>
          <short_desc>Fail to launch custom qemu image with runqemu</short_desc>
          <delta_ts>2017-10-31 15:10:33 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>alejandro.hernandez</cc>
    
    <cc>california.l.sullivan</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67441</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-10-21 08:32:31 +0000</bug_when>
    <thetext>Git rev: morty/4b94b498e21aeba945fe7e72a6b7c4bb0314fb83

This issue was found when I tried to verify bug 10026 and bug 10301.

Steps:
1. Build a custom qemu image following the bug 10026 comment 1
2. Run &quot;runqemu myqemuarm&quot; to boot up the image

The qemu can not boot up with following error:
################################
runqemu - INFO - Assuming MACHINE = qemuarm
runqemu - INFO - Running MACHINE=qemuarm bitbake -e...
runqemu - ERROR - /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/deploy/images/qemuarm not a directory valid DEPLOY_DIR_IMAGE
runqemu - INFO - CONFFILE: /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:
runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Setting up tap interface under sudo
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Created tap: tap0
runqemu - INFO - Running sudo /buildarea/jenkins-yocto/poky/scripts/runqemu-ifdown tap0 /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/sysroots/x86_64-linux
Set &apos;tap0&apos; nonpersistent
runqemu - INFO - Releasing lockfile for tap device &apos;tap0&apos;
Traceback (most recent call last):
  File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 1019, in &lt;module&gt;
    ret = main()
  File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 1011, in main
    config.setup_final()
  File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 900, in setup_final
    qemu_system = self.guess_qb_system()
  File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 895, in guess_qb_system
    return &apos;qemu-system-%s&apos; % qbsys
UnboundLocalError: local variable &apos;qbsys&apos; referenced before assignment
KERNEL: [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/deploy/images/myqemuarm/zImage-myqemuarm.bin]
MACHINE: [myqemuarm]
FSTYPE: [ext4]
ROOTFS: [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.ext4]
CONFFILE: [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.qemuboot.conf] 
#####################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67451</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-21 13:44:59 +0000</bug_when>
    <thetext>The fix would consist on fixing the runqemu code (this bug) and using a qemu.conf file produced from the yocto-bsp script, for the later work is tracked on https://bugzilla.yoctoproject.org/show_bug.cgi?id=10477</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75130</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-19 14:49:19 +0000</bug_when>
    <thetext>Unfortunately, no time to tackle this issue at M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75392</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 14:19:22 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Git rev: morty/4b94b498e21aeba945fe7e72a6b7c4bb0314fb83
&gt; 
&gt; This issue was found when I tried to verify bug 10026 and bug 10301.
&gt; 
&gt; Steps:
&gt; 1. Build a custom qemu image following the bug 10026 comment 1
&gt; 2. Run &quot;runqemu myqemuarm&quot; to boot up the image
&gt; 

Yi,

can you provide the options you selected when creating the ARM machine layer?

The references you provided are all x86-64 related, and this particular issue is for ARM.



&gt; The qemu can not boot up with following error:
&gt; ################################
&gt; runqemu - INFO - Assuming MACHINE = qemuarm
&gt; runqemu - INFO - Running MACHINE=qemuarm bitbake -e...
&gt; runqemu - ERROR -
&gt; /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/deploy/images/qemuarm not a directory valid DEPLOY_DIR_IMAGE
&gt; runqemu - INFO - CONFFILE:
&gt; /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.qemuboot.conf
&gt; runqemu - INFO - Continuing with the following parameters:
&gt; runqemu - INFO - Running /sbin/ip link...
&gt; runqemu - INFO - Setting up tap interface under sudo
&gt; runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
&gt; runqemu - INFO - Created tap: tap0
&gt; runqemu - INFO - Running sudo
&gt; /buildarea/jenkins-yocto/poky/scripts/runqemu-ifdown tap0
&gt; /buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/sysroots/x86_64-linux
&gt; Set &apos;tap0&apos; nonpersistent
&gt; runqemu - INFO - Releasing lockfile for tap device &apos;tap0&apos;
&gt; Traceback (most recent call last):
&gt;   File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 1019, in
&gt; &lt;module&gt;
&gt;     ret = main()
&gt;   File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 1011, in main
&gt;     config.setup_final()
&gt;   File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 900, in
&gt; setup_final
&gt;     qemu_system = self.guess_qb_system()
&gt;   File &quot;/buildarea/jenkins-yocto/poky/scripts/runqemu&quot;, line 895, in
&gt; guess_qb_system
&gt;     return &apos;qemu-system-%s&apos; % qbsys
&gt; UnboundLocalError: local variable &apos;qbsys&apos; referenced before assignment
&gt; KERNEL:
&gt; [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/deploy/images/myqemuarm/zImage-myqemuarm.bin]
&gt; MACHINE: [myqemuarm]
&gt; FSTYPE: [ext4]
&gt; ROOTFS:
&gt; [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.ext4]
&gt; CONFFILE:
&gt; [/buildarea/jenkins-yocto/workspace/Yocto2.2-yocto-bsp_create_qemu_bsp/
&gt; build_1/tmp/deploy/images/myqemuarm/core-image-sato-myqemuarm.qemuboot.conf] 
&gt; #####################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75394</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 15:50:16 +0000</bug_when>
    <thetext>Yi, ignore my previous request, I was able to reproduce the issue in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75411</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 19:16:44 +0000</bug_when>
    <thetext>Robert,

I am proposing the following change to solve this issue

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44

However, I ran into another one issue and after poking a bit, I need your help to faster the solution. The problem is happening when booting (hangs at the start of the runqemu script) an image where the latter was constructed including a custom BSP. These are the details to reproduce it: create a custom qemu bsp with the yocto-bsp script, include it to BBLAYERS and construct a core-image-minimal image. Launch it with runqemu (but before, patch your poky with the above patch), and one sees a hang like the snipped below. Let me know if you see something wrong being picked from the .conf file, which is reflected on the qemu-system cmd.


----- snipped ----
&gt; runqemu myqemux86 core-image-minimal nographic -d
runqemu - DEBUG - Assuming MACHINE = myqemux86
runqemu - INFO - Running MACHINE=myqemux86 bitbake -e...
runqemu - DEBUG - MACHINE: myqemux86
runqemu - DEBUG - DEPLOY_DIR_IMAGE: /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/myqemux86
runqemu - DEBUG - CONFFILE: /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/myqemux86/core-image-minimal-m\
yqemux86.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:

KERNEL: [tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.1-myqemux86-20170728181509.bin]
MACHINE: [myqemux86]
FSTYPE: [ext4]
ROOTFS: [tmp/deploy/images/myqemux86/core-image-minimal-myqemux86.ext4]
CONFFILE: [/home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/myqemux86/core-image-minimal-myqemux86.qemuboot\
.conf]

runqemu - DEBUG - Running /bin/ip link...
runqemu - DEBUG - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Using preconfigured tap device tap0
runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - DEBUG - 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 virti\
o-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/myqe\
mux86/core-image-minimal-myqemux86.ext4,if=virtio,format=raw -show-cursor  -nographic   -m 256 -serial mon:stdio -serial null -kernel \
tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.1-myqemux86-20170728181509.bin -append &apos;root=/dev/vda rw hi\
ghres=off  console=ttyS0 mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0  &apos;
----- snipped ----</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75413</commentid>
    <comment_count>6</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2017-07-28 20:11:45 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Robert,
&gt; 
&gt; I am proposing the following change to solve this issue
&gt; 
&gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44
&gt; 


Hey Leo,

I havent tried to run it yet or anything but I skimmed through your code and it seems that if mach = qemumipsel, it wouldmatch when qemumachine = qemumips AND  if qemumachine = qemumipsel wouldnt it?

qemumips in qemumipsel = True
qemumipsel in qemumipsel = True

+        qemumachines = {&apos;qemuarm64&apos;    : &apos;aarch64&apos;,
+                        &apos;qemuarm&apos;      : &apos;arm&apos;,
+                        &apos;qemux86-64&apos;   : &apos;x86_64&apos;,
+                        &apos;qemux86&apos;      : &apos;i386&apos;,
+                        &apos;qemupcc&apos;      : &apos;pcc&apos;,
+                        &apos;qemumips64el&apos; : &apos;mips64el&apos;,
+                        &apos;qemumips64&apos;   : &apos;mips64&apos;,
+                        &apos;qemumips&apos;     : &apos;mips&apos;,
+                        &apos;qemumipsel&apos;   : &apos;mipsel&apos;}
+
+        for qemumachine, qbsys in qemumachines.items():
+            if qemumachine in mach:
+                return &apos;qemu-system-%s&apos; % qbsys

The same would happen for qemux86 and qemux86-64 and other cases as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75415</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 20:56:32 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Robert,
&gt; &gt; 
&gt; &gt; I am proposing the following change to solve this issue
&gt; &gt; 
&gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; &gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44
&gt; &gt; 
&gt; 
&gt; 
&gt; Hey Leo,
&gt; 
&gt; I havent tried to run it yet or anything but I skimmed through your code and
&gt; it seems that if mach = qemumipsel, it wouldmatch when qemumachine =
&gt; qemumips AND  if qemumachine = qemumipsel wouldnt it?
&gt; 
&gt; qemumips in qemumipsel = True
&gt; qemumipsel in qemumipsel = True
&gt; 


You are right. The problem here is that the items() may return a different set of keys/values that those that initialize the dict. A tuple may be better, where order is set at the start. One we have this, matches would be ok, I believe.

&gt; +        qemumachines = {&apos;qemuarm64&apos;    : &apos;aarch64&apos;,
&gt; +                        &apos;qemuarm&apos;      : &apos;arm&apos;,
&gt; +                        &apos;qemux86-64&apos;   : &apos;x86_64&apos;,
&gt; +                        &apos;qemux86&apos;      : &apos;i386&apos;,
&gt; +                        &apos;qemupcc&apos;      : &apos;pcc&apos;,
&gt; +                        &apos;qemumips64el&apos; : &apos;mips64el&apos;,
&gt; +                        &apos;qemumips64&apos;   : &apos;mips64&apos;,
&gt; +                        &apos;qemumips&apos;     : &apos;mips&apos;,
&gt; +                        &apos;qemumipsel&apos;   : &apos;mipsel&apos;}
&gt; +
&gt; +        for qemumachine, qbsys in qemumachines.items():
&gt; +            if qemumachine in mach:
&gt; +                return &apos;qemu-system-%s&apos; % qbsys
&gt; 
&gt; The same would happen for qemux86 and qemux86-64 and other cases as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75423</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 22:45:55 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Robert,
&gt; 
&gt; I am proposing the following change to solve this issue
&gt; 
&gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44

SHA updated

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-launch-custom-qemu&amp;id=7fb56f2d2ebfd65edf19a178ccf4b6eee36dcc52



&gt; 
&gt; However, I ran into another one issue and after poking a bit, I need your
&gt; help to faster the solution. The problem is happening when booting (hangs at
&gt; the start of the runqemu script) an image where the latter was constructed
&gt; including a custom BSP. These are the details to reproduce it: create a
&gt; custom qemu bsp with the yocto-bsp script, include it to BBLAYERS and
&gt; construct a core-image-minimal image. Launch it with runqemu (but before,
&gt; patch your poky with the above patch), and one sees a hang like the snipped
&gt; below. Let me know if you see something wrong being picked from the .conf
&gt; file, which is reflected on the qemu-system cmd.
&gt; 
&gt; 
&gt; ----- snipped ----
&gt; &gt; runqemu myqemux86 core-image-minimal nographic -d
&gt; runqemu - DEBUG - Assuming MACHINE = myqemux86
&gt; runqemu - INFO - Running MACHINE=myqemux86 bitbake -e...
&gt; runqemu - DEBUG - MACHINE: myqemux86
&gt; runqemu - DEBUG - DEPLOY_DIR_IMAGE:
&gt; /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86
&gt; runqemu - DEBUG - CONFFILE:
&gt; /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86/core-image-minimal-m\
&gt; yqemux86.qemuboot.conf
&gt; runqemu - INFO - Continuing with the following parameters:
&gt; 
&gt; KERNEL:
&gt; [tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.
&gt; 1-myqemux86-20170728181509.bin]
&gt; MACHINE: [myqemux86]
&gt; FSTYPE: [ext4]
&gt; ROOTFS: [tmp/deploy/images/myqemux86/core-image-minimal-myqemux86.ext4]
&gt; CONFFILE:
&gt; [/home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86/core-image-minimal-myqemux86.qemuboot\
&gt; .conf]
&gt; 
&gt; runqemu - DEBUG - Running /bin/ip link...
&gt; runqemu - DEBUG - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
&gt; runqemu - INFO - Using preconfigured tap device tap0
&gt; runqemu - INFO - If this is not intended, touch
&gt; /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
&gt; runqemu - INFO - Network configuration:
&gt; 192.168.7.2::192.168.7.1:255.255.255.0
&gt; runqemu - DEBUG - Running ldd
&gt; tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/
&gt; bin//qemu-system-i386...
&gt; runqemu - INFO - Running
&gt; tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/
&gt; bin//qemu-system-i386 -device virti\
&gt; o-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev
&gt; tap,id=net0,ifname=tap0,script=no,downscript=no -drive
&gt; file=tmp/deploy/images/myqe\
&gt; mux86/core-image-minimal-myqemux86.ext4,if=virtio,format=raw -show-cursor 
&gt; -nographic   -m 256 -serial mon:stdio -serial null -kernel \
&gt; tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.1-
&gt; myqemux86-20170728181509.bin -append &apos;root=/dev/vda rw hi\
&gt; ghres=off  console=ttyS0 mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 
&gt; &apos;
&gt; ----- snipped ----</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75424</commentid>
    <comment_count>9</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-28 22:51:45 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #5)
&gt; &gt; Robert,
&gt; &gt; 
&gt; &gt; I am proposing the following change to solve this issue
&gt; &gt; 
&gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; &gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44
&gt; 
&gt; SHA updated
&gt; 
&gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; launch-custom-qemu&amp;id=7fb56f2d2ebfd65edf19a178ccf4b6eee36dcc52

My bad. this is the correct URL:

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lsandov1/poky-launch-custom-qemu

sorry for the spam.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76223</commentid>
    <comment_count>10</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-08-29 02:53:49 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; Robert,
&gt; &gt; &gt; 
&gt; &gt; &gt; I am proposing the following change to solve this issue
&gt; &gt; &gt; 
&gt; &gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; &gt; &gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44
&gt; &gt; 
&gt; &gt; SHA updated
&gt; &gt; 
&gt; &gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; &gt; launch-custom-qemu&amp;id=7fb56f2d2ebfd65edf19a178ccf4b6eee36dcc52
&gt; 
&gt; My bad. this is the correct URL:
&gt; 
&gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lsandov1/poky-
&gt; launch-custom-qemu
&gt; 
&gt; sorry for the spam.

Hi,

I looked at the newest patch, I didn&apos;t see any problems:

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-launch-custom-qemu&amp;id=82f4cf037e4d73be4fa4098df5da45feb5d82d26</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76457</commentid>
    <comment_count>11</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-09-01 18:51:27 +0000</bug_when>
    <thetext>It appears your question was answered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76458</commentid>
    <comment_count>12</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-01 19:06:04 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Robert,
&gt; 
&gt; I am proposing the following change to solve this issue
&gt; 
&gt; http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=lsandov1/poky-
&gt; launch-custom-qemu&amp;id=8923b98ec196fdc19ea9b3b973dcf7673e99af44
&gt; 
&gt; However, I ran into another one issue and after poking a bit, I need your
&gt; help to faster the solution. The problem is happening when booting (hangs at
&gt; the start of the runqemu script) an image where the latter was constructed
&gt; including a custom BSP. These are the details to reproduce it: create a
&gt; custom qemu bsp with the yocto-bsp script, include it to BBLAYERS and
&gt; construct a core-image-minimal image. Launch it with runqemu (but before,
&gt; patch your poky with the above patch), and one sees a hang like the snipped
&gt; below. Let me know if you see something wrong being picked from the .conf
&gt; file, which is reflected on the qemu-system cmd.
&gt; 
&gt; 
&gt; ----- snipped ----
&gt; &gt; runqemu myqemux86 core-image-minimal nographic -d
&gt; runqemu - DEBUG - Assuming MACHINE = myqemux86
&gt; runqemu - INFO - Running MACHINE=myqemux86 bitbake -e...
&gt; runqemu - DEBUG - MACHINE: myqemux86
&gt; runqemu - DEBUG - DEPLOY_DIR_IMAGE:
&gt; /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86
&gt; runqemu - DEBUG - CONFFILE:
&gt; /home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86/core-image-minimal-m\
&gt; yqemux86.qemuboot.conf
&gt; runqemu - INFO - Continuing with the following parameters:
&gt; 
&gt; KERNEL:
&gt; [tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.
&gt; 1-myqemux86-20170728181509.bin]
&gt; MACHINE: [myqemux86]
&gt; FSTYPE: [ext4]
&gt; ROOTFS: [tmp/deploy/images/myqemux86/core-image-minimal-myqemux86.ext4]
&gt; CONFFILE:
&gt; [/home/lsandov1/poky-testing/poky-launch-custom-qemu/build/tmp/deploy/images/
&gt; myqemux86/core-image-minimal-myqemux86.qemuboot\
&gt; .conf]
&gt; 
&gt; runqemu - DEBUG - Running /bin/ip link...
&gt; runqemu - DEBUG - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
&gt; runqemu - INFO - Using preconfigured tap device tap0
&gt; runqemu - INFO - If this is not intended, touch
&gt; /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
&gt; runqemu - INFO - Network configuration:
&gt; 192.168.7.2::192.168.7.1:255.255.255.0
&gt; runqemu - DEBUG - Running ldd
&gt; tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/
&gt; bin//qemu-system-i386...
&gt; runqemu - INFO - Running
&gt; tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/
&gt; bin//qemu-system-i386 -device virti\
&gt; o-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev
&gt; tap,id=net0,ifname=tap0,script=no,downscript=no -drive
&gt; file=tmp/deploy/images/myqe\
&gt; mux86/core-image-minimal-myqemux86.ext4,if=virtio,format=raw -show-cursor 
&gt; -nographic   -m 256 -serial mon:stdio -serial null -kernel \
&gt; tmp/deploy/images/myqemux86/bzImage--4.10.17+git0+d6ece63221_6648a34e00-r0.1-
&gt; myqemux86-20170728181509.bin -append &apos;root=/dev/vda rw hi\
&gt; ghres=off  console=ttyS0 mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 
&gt; &apos;
&gt; ----- snipped ----

Robert, any reason why I am seeing the above hang?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76977</commentid>
    <comment_count>13</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-20 14:54:36 +0000</bug_when>
    <thetext>Although there is solution to this problem, patch has not been sent to the community and a post-merge issue is happening as reported. All these two should be work during 2.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77893</commentid>
    <comment_count>14</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-10-31 15:10:33 +0000</bug_when>
    <thetext>The tool yocto-bsp will be deprecated during 2.5 M1 (due to lack of resources to maintain it) so this bug becomes obsolete</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>