| Summary: | Create development environment for SDK on Windows | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Richard Purdie <richard.purdie> |
| Component: | devtools / tool chain | Assignee: | Juro Bystricky <juro.bystricky> |
| Status: | VERIFIED WONTFIX | QA Contact: | Alexandru Georgescu <alexandru.c.georgescu> |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, bluelightning, cristian.iorga, jessica.zhang, meta.mr.watcher, meta.watcher |
| Version: | 1.6 | ||
| Target Milestone: | 1.9 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
| Bug Depends on: | 6205 | ||
| Bug Blocks: | |||
|
Description
Richard Purdie
2014-04-22 16:00:15 UTC
Option "b) Run things in a VM and provide easy accessibility to windows users" was chosen. Using meta-mingw layer (http://git.yoctoproject.org/cgit/cgit.cgi/meta-mingw/) bitbake is able to produce a native Windows qemu. At the moment, qemu is not able to run, due to the lack of proper support for Windows dynamic libraries (finding the system/user libraries, basically). Starting point: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=ciorga/nativesdk-qemu-win32 It would be easier to use VirtualBox VM instead of qemu at the beginning. Once it is decided what works best (eclipse, toaster, Hob, ...) then we can switch to qemu to Windows. As a first step, I managed to cross compile qemu for Windows: SDKMACHINE="i686-mingw32" bitbake nativesdk-qemu Then I was able to run qemu-system-i386.exe with a core-image-minimal.ext3 under Windows (text-only mode). I created a set of recipes for a VirtualBox VM: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=juro%2Fpoky-vm You create the VM by: $ bitbake poky-vm This will create a Zip file containing VM, start-up scripts for Linux and Windows and a README.txt file. Assuming you have VirtualBox installed, simply unzipping the Zip file in any folder and double-clicking a startup script should boot the VM. It is possible to connect to VM via SSH and start a bitbake operation: $ cd poky $ . ./oe-init-build-env $ bitbake <...> The VM folders are accessible via Samba shares. It is also possible to share Windows folders via CIFS, if needed. The start-up scripts can be modified (#of CPUs, memory size etc.) I encountered some problems with "time in the future". (These will hopefully go away with Guest Additions) Version controlled the works in: https://github.com/otcshare/meta-yocto-vm-experiments Put on hold for the time being, as there are better alternatives being developed/implemented at this time. verified as per above comments. |