(→Install Your Own MeeGo Target/MeeGo Runtime) |
(→Inside MeeGo MADDE) |
||
| (6 intermediate revisions not shown) | |||
| Line 2: | Line 2: | ||
Links "http://wiki.meego.com/SDK/Docs/1.1/Getting_started_with_the_MeeGo_SDK_for_Linux" instructs you to install MeeGo MADDE Sysroot/MeeGo Runtime(QEMU Image), those images are created by MeeGo and downloaded from "http://download3.meego.com/"; This section mainly introduces how to install MeeGo MADDE Sysroot/MeeGo Runtime that created by yourself. | Links "http://wiki.meego.com/SDK/Docs/1.1/Getting_started_with_the_MeeGo_SDK_for_Linux" instructs you to install MeeGo MADDE Sysroot/MeeGo Runtime(QEMU Image), those images are created by MeeGo and downloaded from "http://download3.meego.com/"; This section mainly introduces how to install MeeGo MADDE Sysroot/MeeGo Runtime that created by yourself. | ||
| - | Creatimg MeeGo | + | Creatimg MeeGo images(MADDE Sysroot, QEMU) is outside the scope of this document, you can find the latest KS files here: git://gitorious.org/meego-os-base/image-configurations.git. |
| + | |||
| + | Before reading the following sections, we suppose you have created two images: <br> | ||
| + | '''MADDE Sysroot Image''': AA-BB-madde-sysroot-fs.tar.bz2 <br> | ||
| + | '''QEMU Image''': CC-DD-qemu-raw.tar.bz2 | ||
== Inside MeeGo MADDE == | == Inside MeeGo MADDE == | ||
| + | |||
| + | In MeeGo MADDE configuration file, there is one important concept named "target", it is a collection of "MADDE sysroot", "runtime", "toolchain". We give one example here: | ||
| + | target meego-handset-ia32-1.1.2 | ||
| + | sysroot meego-handset-ia32-madde-sysroot-1.1.20110106.1204-fs.tar.gz | ||
| + | toolchain meego-sdk-i586-toolchain-1.1 | ||
| + | runtime meego-handset-ia32-qemu-1.1.2-runtime | ||
| + | ccxopts -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse | ||
| + | qttools qt-tools-4.7.0 | ||
| + | arch i586 | ||
| + | os Linux | ||
| + | end | ||
By default, MeeGo target and MeeGo Runtime are installed to directory: | By default, MeeGo target and MeeGo Runtime are installed to directory: | ||
| - | * MeeGo Target ----> "/usr/lib/madde/linux-i686/sysroots" | + | * MeeGo Target ----> "/usr/lib/madde/linux-i686/targets" |
| + | * MeeGo MADDE Sysroot ----> "/usr/lib/madde/linux-i686/sysroots" | ||
* MeeGo Runtime ----> "/usr/lib/madde/linux-i686/runtimes" | * MeeGo Runtime ----> "/usr/lib/madde/linux-i686/runtimes" | ||
| Line 13: | Line 29: | ||
*(1) Create your configure file under "/usr/lib/madde/linux-i686/cache/madde.conf.d/", you can refer those "conf" files under this direcotory. | *(1) Create your configure file under "/usr/lib/madde/linux-i686/cache/madde.conf.d/", you can refer those "conf" files under this direcotory. | ||
*(2) Copy your packaged MeeGo Target/MeeGo Runtime images to "/usr/lib/madde/linux-i686/cache" | *(2) Copy your packaged MeeGo Target/MeeGo Runtime images to "/usr/lib/madde/linux-i686/cache" | ||
| - | *(3) Run "sudo mad-admin create -f <Your_Target>" and "sudo mad-admin create -f -e <Your_Runtime>" | + | *(3) Run "sudo mad-admin create -f <Your_Target>" and "sudo mad-admin create -f -e <Your_Runtime>" |
| + | == Add Your Target == | ||
We take adding "MeeGo runtime" as an example to introduce the integration method in a simple way. Suppose you created one QEMU image named "'''aaa-bbb-ccc'''.raw": | We take adding "MeeGo runtime" as an example to introduce the integration method in a simple way. Suppose you created one QEMU image named "'''aaa-bbb-ccc'''.raw": | ||
PC$ cd /usr/lib/madde/linux-i686/runtimes | PC$ cd /usr/lib/madde/linux-i686/runtimes | ||
Links "http://wiki.meego.com/SDK/Docs/1.1/Getting_started_with_the_MeeGo_SDK_for_Linux" instructs you to install MeeGo MADDE Sysroot/MeeGo Runtime(QEMU Image), those images are created by MeeGo and downloaded from "http://download3.meego.com/"; This section mainly introduces how to install MeeGo MADDE Sysroot/MeeGo Runtime that created by yourself.
Creatimg MeeGo images(MADDE Sysroot, QEMU) is outside the scope of this document, you can find the latest KS files here: git://gitorious.org/meego-os-base/image-configurations.git.
Before reading the following sections, we suppose you have created two images:
MADDE Sysroot Image: AA-BB-madde-sysroot-fs.tar.bz2
QEMU Image: CC-DD-qemu-raw.tar.bz2
In MeeGo MADDE configuration file, there is one important concept named "target", it is a collection of "MADDE sysroot", "runtime", "toolchain". We give one example here:
target meego-handset-ia32-1.1.2
sysroot meego-handset-ia32-madde-sysroot-1.1.20110106.1204-fs.tar.gz
toolchain meego-sdk-i586-toolchain-1.1
runtime meego-handset-ia32-qemu-1.1.2-runtime
ccxopts -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse
qttools qt-tools-4.7.0
arch i586
os Linux
end
By default, MeeGo target and MeeGo Runtime are installed to directory:
* MeeGo Target ----> "/usr/lib/madde/linux-i686/targets" * MeeGo MADDE Sysroot ----> "/usr/lib/madde/linux-i686/sysroots" * MeeGo Runtime ----> "/usr/lib/madde/linux-i686/runtimes"
The default configuration files of Target and Runtime are installed to "/usr/lib/madde/linux-i686/cache/madde.conf.d/". You can install your own MeeGo Target/MeeGo Runtime based on the following three steps:
*(1) Create your configure file under "/usr/lib/madde/linux-i686/cache/madde.conf.d/", you can refer those "conf" files under this direcotory. *(2) Copy your packaged MeeGo Target/MeeGo Runtime images to "/usr/lib/madde/linux-i686/cache" *(3) Run "sudo mad-admin create -f <Your_Target>" and "sudo mad-admin create -f -e <Your_Runtime>"
We take adding "MeeGo runtime" as an example to introduce the integration method in a simple way. Suppose you created one QEMU image named "aaa-bbb-ccc.raw":
PC$ cd /usr/lib/madde/linux-i686/runtimes
PC$ sudo mkdir aaa-bbb-ccc-runtime
PC$ sudo cp aaa-bbb-ccc.raw aaa-bbb-ccc-runtime/
PC$ cd aaa-bbb-ccc-runtime
PC$ sudo vim information
qemu='/usr/lib/madde/linux-i686/tools/qemu-meego/bin/qemu-meego'
qemu_path_native='/usr/lib/madde/linux-i686/tools/qemu-meego/bin/qemu-meego'
libpath='LD_LIBRARY_PATH=/usr/lib/madde/linux-i686/tools/qemu-meego/lib'
qemu_args='-hda aaa-bbb-ccc.raw -skin /opt/meego/qemu-gl/share/qemugl/meego/skin/handset/skin.xml -usbdevice tablet -name MeeGo -m 1024 -boot c -enable-kvm -vga std -enable-gl -device virtio-gl-pci -soundhw ac97 -net nic -net user,hostfwd=tcp:127.0.0.1:6666-:22,hostfwd=tcp:127.0.0.1:13219-:13219,hostfwd=tcp:127.0.0.1:14168-:14168'
ip='127.0.0.1'
sshport='6666'
redirport2='13219'
redirport3='14168'
PC$ mad list runtime
.............................................................
aaa-bbb-ccc-runtime (installed)
.............................................................
Start your runtime:
PC$ sudo mad remote -r aaa-bbb-ccc-runtime poweron