Bug 10309 - New Qemu can not be launched from eclipse
Summary: New Qemu can not be launched from eclipse
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Joshua Lock
QA Contact: Humberto Ibarra
URL:
Whiteboard:
: 10310 (view as bug list)
Depends on:
Blocks: 10214
  Show dependency tree
 
Reported: 2016-09-20 16:15 UTC by brian avery
Modified: 2016-12-01 19:08 UTC (History)
4 users (show)

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


Attachments
runqemu failure in eclipse sdk env. (1.66 KB, application/octet-stream)
2016-09-20 16:15 UTC, brian avery
no flags Details

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