Bug 10309

Summary: New Qemu can not be launched from eclipse
Product: [Build System, Metadata & Runtime] OE-Core Reporter: brian avery <brian.avery>
Component: Scripts and ToolsAssignee: Joshua Lock <joshuagloe>
Status: VERIFIED FIXED QA Contact: Humberto Ibarra <humberto.ibarra.lopez>
Severity: normal    
Priority: Undecided CC: humberto.ibarra.lopez, jose.perez.carranza, ross.burton, tim.orling
Version: 2.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10214    
Attachments:
Description Flags
runqemu failure in eclipse sdk env. none

Description brian avery 2016-09-20 16:15:18 UTC
Created attachment 3429 [details]
runqemu failure in eclipse sdk env.

Eclipse launches qemu from a randomish directory and it has only access to whatever vars are in environment-setup-XXXX-poky-linux.

 
Here's a way to check if runqemu can work w/out using eclipse:
Build  what Eclipse needs:
	1	bitbake core-image-sato-sdk && bitbake core-image-sato-sdk -c populate_sdk && bitbake meta-ide-support
From a clean bash shell w/ no bitbake env vars set do:
	1	mkdir /tmp/cow;cd /tmp/cow
	2	source <path to tmpdir>/environment-setup-i586-poky-linux
	3	runqemu-extract-sdk <path to tmpdir>/deploy/images/qemux86/core-image-sato-sdk-qemux86.tar.bz2 QEMU_ROOTFS
	4	runqemu qemux86  <path to tmpdir>/deploy/images/qemux86/bzImage /tmp/cow/QEMU_ROOTFS
Ideally this would work. This represents a shell with no knowledge other than what is in the environment-setup  script and is in a directory that has no bblayers.conf hidden underneath it.  This is what Eclipse is doing since it runs this from the eclipse workspace.  The runqemu-extract-sdk makes a userspace nfs mountable filesystem with pseudo support.
Attaching the failed result which says "no bblayers.conf found"
Comment 1 brian avery 2016-09-21 17:25:43 UTC
*** Bug 10310 has been marked as a duplicate of this bug. ***
Comment 2 Joshua Lock 2016-09-21 21:37:59 UTC
Patch merged to OE-Core & Poky master
Comment 4 Humberto Ibarra 2016-12-01 19:07:11 UTC
There is no problem launching QEMU from eclipse in the given commit
Comment 5 Tim Orling 2016-12-01 19:08:33 UTC
Yay!