Meego Wiki
Views
From MeeGo wiki
< SDK(Difference between revisions)
Jump to: navigation, search
(Debian / Ubuntu)
 
(43 intermediate revisions not shown)
Line 1: Line 1:
= How to test MeeGo SDK =
= How to test MeeGo SDK =
-
The following components could be optionally installed based on the selected targets (ARM-based and/or x86-based targets):
+
This page explains how to test the weekly releases of MeeGo SDK.
-
* QEMU
+
-
* QEMU images
+
-
* sysroots
+
-
* toolchains
+
-
There is a good example for SDK with x86 target support: http://wiki.meego.com/MeeGo_SDK_Development_Guide
+
* NOTE: See the hosts status on [[SDK/Release|this wiki page]]
-
* Note: some downloads are pointing to Intel internal links
+
== Configure distributions package manager ==
== Configure distributions package manager ==
-
* Debian/Ubuntu
+
=== Debian / Ubuntu ===
-
1. Add the following line to /etc/apt/sources.list or file add /etc/apt/sources.list.d/meego-sdk.list file:
+
-
deb <nowiki>http://download.meego.com/live/devel:/tools:/sdk/${distribution}/</nowiki> /
+
1. Add the following line to /etc/apt/sources.list file or add /etc/apt/sources.list.d/meego-sdk.list file:
-
Note: replace ${distribution} e.g. Ubuntu_10.04
+
deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/</nowiki> /
-
2. update packages database
+
Note: replace ${distribution}/${version} by one of the following values "debian/5.0" , "ubuntu/09.10" , "ubuntu/10.04" or "ubuntu/10.10"
-
# apt-get update
+
2. add the repository public key
-
* Fedora
+
# gpg --keyserver subkeys.pgp.net --recv 0BC7BEC479FC1F8A
-
TODO
+
# gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
-
* openSUSE
+
3. update packages database
-
TODO
+
-
== Install Qt Creator ==
+
# aptitude update
-
* Note: Qt >= 4.7.0 beta 2 is needed
+
=== Fedora ===
-
=== from distributions packages ===
+
1. Go to the yum repository directory
-
http://download.meego.com/live/devel:/tools:/sdk/
+
$ cd /etc/yum.repos.d/
-
=== from source ===
+
2. Add the MeeGo SDK yum repository
-
http://meego.gitorious.org/meego-developer-tools/qt-creator
+
# wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
-
== Install MADDE ==
+
Note: replace ${distribution}/${version} with one of the following values, depending on your Linux distribution: "fedora/12", "fedora/13"
-
=== from distributions packages ===
+
3. Install the signing key
-
http://download.meego.com/live/devel:/tools:/sdk/
+
# rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key
-
* Debian/Ubuntu
+
4. Update packages database
-
  # apt-get install madde qt-tools
+
  # yum update
-
* Fedora
+
=== openSUSE ===
-
TODO
+
-
* openSUSE
+
To add MeeGo repository, do one of the following:
-
TODO
+
-
== Configure MADDE ==
+
* Use the command:
-
  # mad-admin create meego-core-${arch}
+
  # zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/opensuse/${version}/meego-sdk.repo
-
$ mad -t meego-core-${arch} pscreate -t qt-simple qthello
+
-
$ cd qthello
+
-
$ mad -t meego-core-${arch} qmake
+
-
$ mad -t meego-core-${arch} make
+
-
=== from source ===
+
* Download and copy the repository file:
 +
# Navigate to http://repo.meego.com/MeeGo/sdk/host/repos/.
 +
# Go to folder <code>opensuse/${version}</code>.
 +
# Download file <code>meego-sdk.repo</code>.
 +
# Copy the file as root to <code>/etc/zypp/repos.d</code> directory.
 +
# Update repository information:
-
http://meego.gitorious.org/meego-developer-tools/madde
+
# zypper ref
-
== Install QEMU ==
+
== Install for IA32 ==
-
=== from distributions packages ===
+
=== Install the meego-sdk-ia32 package ===
-
* ARM based:
+
==== Debian / Ubuntu ====
-
http://download.meego.com/live/devel:/tools:/sdk/
+
-
* x86 based:
+
# aptitude install meego-sdk-ia32
-
http://download.meego.com/live/Tools:/SDK/
+
-
=== from source ===
+
==== Fedora ====
-
* ARM based:
+
# yum install  meego-sdk-ia32
-
http://meego.gitorious.org/qemu-maemo/qemu
+
-
* x86 based:
+
==== OpenSUSE ====
-
http://meego.gitorious.org/meego-developer-tools/meego-emulator-qemugl-x86
+
-
== Install sysroot image(s) ==
+
# zypper install  meego-sdk-ia32
-
Download from http://repo.meego.com/MeeGo/builds/trunk/@BUILD_ID@/core/images/
+
=== Create runtime and target  ===
-
e.g. http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100907.1/core/images/meego-core-${arch}-madde-sysroot/meego-core-${arch}-madde-sysroot-1.0.90.1.20100907.1-fs.tar.bz2
+
List targets and runtimes:
 +
#mad list
 +
Install runtimes:
 +
#mad-admin create -e -f ${runtime}
 +
Install targets:
 +
#mad-admin create -f ${target}
-
== Install QEMU images (QEMU NAND and rootfs) ==
+
Note:
 +
* ${target} and ${runtime} can be chosen from the result of "mad list"
 +
* meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime should be created if you what to use handset targets, e.g., meego-handset-ia32-1.1
 +
* meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0901-runtime  should be created if you what to use netbook targets, e.g., meego-netbook-ia32-1.1
 +
* meego-core-ia32-XXX targets doesn't need any runtime and you can't start qemu to debug projects targeting those targets.
 +
 
 +
== Install for ARM ==
 +
 
 +
=== Install MeeGo SDK (meta/all in one) ===
 +
 
 +
==== Debian / Ubuntu ====
 +
 
 +
# aptitude install meego-sdk-armv7l
 +
 
 +
==== Fedora ====
 +
 
 +
# yum install  meego-sdk-armv7l
 +
 
 +
==== OpenSUSE ====
 +
 
 +
# zypper install  meego-sdk-armv7l
 +
 
 +
=== Install Qt Creator (standalone) ===
 +
 
 +
==== Debian / Ubuntu ====
 +
 
 +
# aptitude install meego-sdk-qtcreator
 +
 
 +
==== Fedora ====
 +
 
 +
# yum install meego-sdk-qt-creator
 +
 
 +
==== OpenSUSE ====
 +
 
 +
# zypper install meego-sdk-qt-creator
 +
 
 +
=== Install MADDE (standalone) ===
 +
 
 +
==== Debian / Ubuntu ====
 +
 
 +
# aptitude install madde qt-tools
 +
 
 +
 
 +
=== Install toolchains (standalone) ===
 +
 
 +
==== Debian / Ubuntu ====
 +
 
 +
# aptitude install arm-2009q1
 +
 
 +
=== Install QEMU (standalone) ===
 +
 
 +
==== Debian / Ubuntu ====
 +
 
 +
# aptitude install qemu-arm
 +
 
 +
=== Install QEMU images (QEMU NAND and rootfs) ===
* ARM based: Download from http://tablets-dev.nokia.com/meego-codedrop.php
* ARM based: Download from http://tablets-dev.nokia.com/meego-codedrop.php
Line 99: Line 147:
   * Note2: MeeGo Handset image contains the UI.
   * Note2: MeeGo Handset image contains the UI.
-
* x86 based: Download the image from http://wiki.meego.com/Getting_started_with_the_MeeGo_SDK_for_Linux
+
=== Create target ===
-
  * netbook: [http://download3.meego.com/meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0729.tar.bz2 meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0729.tar.bz2]
+
as root:
-
  * handset: [http://download3.meego.com/meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2 meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2]
+
-
== Install toolchain(s) ==
+
# mad-admin create -f meego-core-armv7l-1.1
-
Download arm-2009q1-203-arm-none-linux-gnueabi_linux.tar.bz2
+
== Test MADDE target ==
-
== Create sysroot image(s) ==
+
as regular user:
 +
 
 +
$ mad -t ${target} pscreate -t qt-simple qthello
 +
$ cd qthello
 +
$ mad -t ${target} qmake
 +
$ mad -t ${target} make
-
Create the sysroot image(s) using mic2 tool:
+
== How to test new qemu image ==
-
* download core-${arch}-madde-sysroot.ks files from http://meego.gitorious.org/meego-os-base/image-configurations/trees/master/SDK
+
-
* use the following command line
+
-
sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=fs --arch='''${arch}''' --config='''core-${arch}-madde-sysroot.ks''' --package=tar.bz2 --release
+
If you have a new qemu image and want to test it with the SDK, you can do the following:
 +
* Copy or link your tar'ed image to /usr/lib/madde/linux-{arch}/cache
-
== Create QEMU images (QEMU NAND and rootfs) ==
+
* Find the file that defines the target you want to test the qemu with in the configuration files in /usr/lib/madde/linux-{arch}/cache/madde.conf.d, append the following contents (Assume your new qemu image is meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2):
-
Create the QEMU NAND image using qflasher tool:
+
runtime meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
 +
  image meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2
 +
  qemu qemu-meego
 +
  args qemu-handset
 +
  args-common -name MeeGo -m 1024 -boot c -hda meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw -enable-kvm -vga std -enable-gl -device virtio-gl-pci -skin /opt/meego/qemu-gl/share/qemugl/meego/skin/handset/skin.xml -usbdevice tablet
 +
end
-
TODO
+
Note that if you are creating netbook image, you should remove  the "-skin" and "-usbdevice" parameter
-
Create the QEMU rootfs image using mic2 tool:
+
* Change the "runtime" configuration of the target to meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
-
* download handset-${arch}-qemu.ks files from http://meego.gitorious.org/meego-os-base/image-configurations/trees/master/SDK
+
-
* use the following command line
+
-
sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=raw --arch=${arch} --save-kernel --config='''handset-${arch}-qemu.ks''' --package=tar.bz2 --release
+
* Issue "mad-admin create -e meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime" to create the newly added runtime
-
== Links ==
+
== Test QtCreator ==
-
http://wiki.meego.com/ARM/Meego_on_Qemu
+
Find more information about testing QtCreator with MADDE for MeeGo on [[MeeGo_SDK_with_QEMU#Use_Qt_Creator_to_Develop_MeeGo_Applications|this wiki page]].

Latest revision as of 10:31, 10 December 2010

Contents

How to test MeeGo SDK

This page explains how to test the weekly releases of MeeGo SDK.

Configure distributions package manager

Debian / Ubuntu

1. Add the following line to /etc/apt/sources.list file or add /etc/apt/sources.list.d/meego-sdk.list file:

deb http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/ /

Note: replace ${distribution}/${version} by one of the following values "debian/5.0" , "ubuntu/09.10" , "ubuntu/10.04" or "ubuntu/10.10"

2. add the repository public key

# gpg --keyserver subkeys.pgp.net --recv 0BC7BEC479FC1F8A
# gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -

3. update packages database

# aptitude update

Fedora

1. Go to the yum repository directory

$ cd /etc/yum.repos.d/

2. Add the MeeGo SDK yum repository

# wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo

Note: replace ${distribution}/${version} with one of the following values, depending on your Linux distribution: "fedora/12", "fedora/13"

3. Install the signing key

# rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key

4. Update packages database

# yum update

openSUSE

To add MeeGo repository, do one of the following:

  • Use the command:
# zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/opensuse/${version}/meego-sdk.repo
  • Download and copy the repository file:
  1. Navigate to http://repo.meego.com/MeeGo/sdk/host/repos/.
  2. Go to folder opensuse/${version}.
  3. Download file meego-sdk.repo.
  4. Copy the file as root to /etc/zypp/repos.d directory.
  5. Update repository information:
# zypper ref

Install for IA32

Install the meego-sdk-ia32 package

Debian / Ubuntu

# aptitude install meego-sdk-ia32

Fedora

# yum install  meego-sdk-ia32

OpenSUSE

# zypper install  meego-sdk-ia32

Create runtime and target

List targets and runtimes:

#mad list

Install runtimes:

#mad-admin create -e -f ${runtime}

Install targets:

#mad-admin create -f ${target}

Note:

  • ${target} and ${runtime} can be chosen from the result of "mad list"
  • meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime should be created if you what to use handset targets, e.g., meego-handset-ia32-1.1
  • meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0901-runtime should be created if you what to use netbook targets, e.g., meego-netbook-ia32-1.1
  • meego-core-ia32-XXX targets doesn't need any runtime and you can't start qemu to debug projects targeting those targets.

Install for ARM

Install MeeGo SDK (meta/all in one)

Debian / Ubuntu

# aptitude install meego-sdk-armv7l

Fedora

# yum install  meego-sdk-armv7l

OpenSUSE

# zypper install  meego-sdk-armv7l

Install Qt Creator (standalone)

Debian / Ubuntu

# aptitude install meego-sdk-qtcreator

Fedora

# yum install meego-sdk-qt-creator

OpenSUSE

# zypper install meego-sdk-qt-creator

Install MADDE (standalone)

Debian / Ubuntu

# aptitude install madde qt-tools


Install toolchains (standalone)

Debian / Ubuntu

# aptitude install arm-2009q1

Install QEMU (standalone)

Debian / Ubuntu

# aptitude install qemu-arm

Install QEMU images (QEMU NAND and rootfs)

 * Note1: You will need to provide your device's 15-digit IMEI number.
 * Note2: MeeGo Handset image contains the UI.

Create target

as root:

# mad-admin create -f meego-core-armv7l-1.1

Test MADDE target

as regular user:

$ mad -t ${target} pscreate -t qt-simple qthello
$ cd qthello
$ mad -t ${target} qmake
$ mad -t ${target} make

How to test new qemu image

If you have a new qemu image and want to test it with the SDK, you can do the following:

  • Copy or link your tar'ed image to /usr/lib/madde/linux-{arch}/cache
  • Find the file that defines the target you want to test the qemu with in the configuration files in /usr/lib/madde/linux-{arch}/cache/madde.conf.d, append the following contents (Assume your new qemu image is meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2):
runtime meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
  image meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2
  qemu qemu-meego
  args qemu-handset
  args-common -name MeeGo -m 1024 -boot c -hda meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw -enable-kvm -vga std -enable-gl -device virtio-gl-pci -skin /opt/meego/qemu-gl/share/qemugl/meego/skin/handset/skin.xml -usbdevice tablet
end

Note that if you are creating netbook image, you should remove the "-skin" and "-usbdevice" parameter

  • Change the "runtime" configuration of the target to meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
  • Issue "mad-admin create -e meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime" to create the newly added runtime

Test QtCreator

Find more information about testing QtCreator with MADDE for MeeGo on this wiki page.

Personal tools