Bug 1305 - qemu unfs root messed up with sysroot
Summary: qemu unfs root messed up with sysroot
Status: RESOLVED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
: 1300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-28 19:21 UTC by liping Ke
Modified: 2011-07-29 00:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liping Ke 2011-07-28 19:21:59 UTC
Now we only have one place for deciding sysroot in unfs. But for meta-toolchain mode, sysroot does not contain unfs target sysroot, it only contains compilation build sysroot. So qemu unfs style will fail to boot. 
This problem relates to bug 1300.

in preference page, we expect user input unfs sysroot or compilation sysroot? It might be messed up...

Thanks& Regards,
criping
Comment 1 Jessica 2011-07-28 20:11:26 UTC
In preference page, the sysroot should be the sysroot that extracted from target rootfs, which support unfs.  We should never use the sysroot of the toolchain one in eclipse
Comment 2 liping Ke 2011-07-28 20:13:25 UTC
Hi, Jessica

Then seems we need to remove a piece of code in the code logic. Seems we also paste this --sysroot to eclipse settings. Then we will have multiple sysroot ... (eclipse env combined with environment vars)


Thanks& Regards,
criping
Comment 3 Jessica 2011-07-28 20:27:49 UTC
Yes, probably we should, we just don't take in the sysroot from the env file
Comment 4 liping Ke 2011-07-29 00:06:40 UTC
Final solution is that in eclipse, we will only have one sysroot. Same sysroot for compilation as well as qemu. When user define the sysroot, the one in the environement-setup file will be override.

The changeset is 

http://git.pokylinux.org/cgit/cgit.cgi/eclipse-poky/commit/?id=e5cff64183f42502b02169b2aa5febc4c1b87dd6
Comment 5 liping Ke 2011-07-29 00:07:45 UTC
*** Bug 1300 has been marked as a duplicate of this bug. ***