Difference between revisions of "How to get the Meego distribution"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
 +
'''WORK IN PROGRESS, please contribute'''
 +
 
== How to get the Meego distribution ==
 
== How to get the Meego distribution ==
  
Line 20: Line 22:
  
 
== Requirements ==
 
== Requirements ==
*A SD card at least 2GB ( recommended 4GB ) formatted how uboot likes it to be formatted (with root(ext3) and boot(fat) partitions)
+
* A SD card at least 2GB ( recommended 4GB ) formatted with a dual-partion, a '''boot''' (fat) partition and a '''rootfs''' (ext3)
  
 
== Feedback and Contributing ==
 
== Feedback and Contributing ==
Line 43: Line 45:
 
== Putting a copy of a Meego root file system on SD card ==
 
== Putting a copy of a Meego root file system on SD card ==
  
WORK IN PROGRESS, please contribute.
+
When using ubuntu 10.04 you'll need to install qemu using the qemu-kvm-extras-static package.
 
 
requirements
 
 
  $ sudo apt-get install qemu-kvm-extras-static
 
  $ sudo apt-get install qemu-kvm-extras-static
  
workdir
+
Let's start with building the rootfs, first of all create a working directory
 
  $ mkdir meego && cd meego
 
  $ mkdir meego && cd meego
  
download and install pykickstart
+
Now, download and install pykickstart
 
  $ git clone git://git.fedorahosted.org/git/pykickstart.git
 
  $ git clone git://git.fedorahosted.org/git/pykickstart.git
 
  $ cd pykickstart
 
  $ cd pykickstart
 
  $ make
 
  $ make
 +
$ make install
 
  $ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/bin/
 
  $ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/bin/
 
  $ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/lib/python2.6/dist-packages/
 
  $ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/lib/python2.6/dist-packages/
Line 60: Line 61:
 
  $ cd ..
 
  $ cd ..
  
download and install mic image creator
+
and, download and install the mic image creator
 
  $ git clone git://gitorious.org/meego-developer-tools/image-creator.git
 
  $ git clone git://gitorious.org/meego-developer-tools/image-creator.git
 
  $ cd image-creator
 
  $ cd image-creator
Line 69: Line 70:
 
  $ cd ..
 
  $ cd ..
  
download
+
This tool is used to create MeeGo images, for that purpose you will need a Kickstart file. Kickstart files specify what repos to pull from, what packages to include, what post-scripts to run and what type of images to create.
 
  $ wget http://wiki.meego.com/images/Handset-armv7l-beagle.ks
 
  $ wget http://wiki.meego.com/images/Handset-armv7l-beagle.ks
 
  $ mv Handset-armv7l-beagle.ks handset-armv7l-beagle.ks
 
  $ mv Handset-armv7l-beagle.ks handset-armv7l-beagle.ks
  
and type
+
and build the image with
  $ sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=fs --arch=armv7l --release=daily --config=handset-armv7l-beagle.ks  
+
  $ sudo LANG=C mic-image-creator --run-mode=0 --cache=mycachedir --format=fs --arch=armv7l --release=daily --config=handset-armv7l-beagle.ks  
  
You will now have a resulting tar.bz2 in ./daily/handset/images/meego-handset-armv7l-beagle.  Extract it to your SD cards root partition (you should have 2 partitions for boot and root):
+
You will now have a resulting tar.bz2 in daily/handset/images/meego-handset-armv7l-beagle.  Extract it to your rootfs SD card partition.
cd /media/your_sd_card
+
  $ sudo tar xvj --strip-components=2 -f daily/handset/images/meego-handset-armv7l-beagle/meego-handset-armv7l-beagle-daily-fs.tar.bz2 -C /media/rootfs
  sudo tar xvj --strip-components=2 -f <path to the build root>/daily/handset/images/meego-handset-armv7l-beagle/meego-handset-armv7l-beagle-daily-fs.tar.bz2
 
  
==Kernel==
+
== Install kernel and kernel modules ==
Summary:
 
* get kernel source
 
* get crosscompiler
 
* create uImage
 
* create modules
 
* copy to sd card.
 
  
A good starting reference is found here: [[The_Linux_kernel]]
+
First, get latest kernel and kernel modules binaries from IGEP website
  
===Getting the kernel source===
+
$ wget http://downloads.igep.es/binaries/kernel/v2.6.33.6-0/uImage-2.6.33.6-0.bin
 +
$ wget http://downloads.igep.es/binaries/kernel/v2.6.33.6-0/linux-omap-modules-2.6.33.6-0.tar.gz
  
From git:
+
Next, copy the kernel to the boot partition into the SD card
 +
$ cp uImage-2.6.33.6-0.bin /media/boot/uImage
  
git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
+
Finally, uncompress the kernel modules to the rootfs partition into the SD card
 +
$ sudo tar xzf linux-omap-modules-2.6.33.6-0.tar.gz -C /media/rootfs
  
  
 
[[Category:Software distributions|Meego]]
 
[[Category:Software distributions|Meego]]

Revision as of 13:26, 1 August 2010

WORK IN PROGRESS, please contribute

How to get the Meego distribution

MeeGo is an open source, Linux project which brings together the Moblin project, headed up by Intel, and Maemo, by Nokia, into a single open source activity. MeeGo integrates the experience and skills of two significant development ecosystems, versed in communications and computing technologies. The MeeGo project believes these two pillars form the technical foundations for next generation platforms and usages in the mobile and device platforms space.

MeeGo includes:

  • Performance optimizations and features which enable rich computational and graphically oriented applications and connected services development
  • No-compromise internet standards support delivering the best web experiences
  • Easy to use, flexible and powerful UI/app development environment based on Qt
  • Open source project organization managed by the Linux Foundation
  • State of the Art Linux stack optimized for the size and capabilities of small footprint platforms and mobile devices, but delivering broad linux software application compatibility

More information about Meego project at http://meego.com

Overview of How-To

This How-To is meant to be a starting point for people to learn install an Meego image for OMAP3-based IGEP platforms as quickly and easily as possible.

This How-To works with an Ubuntu 10.04 (Lucid Lynx) distribution but most of the contents are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributions.

Requirements

  • A SD card at least 2GB ( recommended 4GB ) formatted with a dual-partion, a boot (fat) partition and a rootfs (ext3)

Feedback and Contributing

Creating articles in the wiki is a collaborative process, at any point, if you see a mistake you can contribute to this article.

Please, use the discussion tab for user comments. This is useful to separate page content and the discussion thereof and also, if you don't want to give normal users the right to edit the page but still want user contributed notes.

Editing permissions are restricted to registered users. Register in the main IGEP site and you will have single sign-on.

Consult the User's Guide for information on using the wiki software.

There is a set of Wiki contribution guidelines.

References

Much of this How-To is extracted from different sources. If you would like to read some of the original articles or resources, please visit them and thank the authors:

Putting a copy of a Meego root file system on SD card

When using ubuntu 10.04 you'll need to install qemu using the qemu-kvm-extras-static package.

$ sudo apt-get install qemu-kvm-extras-static

Let's start with building the rootfs, first of all create a working directory

$ mkdir meego && cd meego

Now, download and install pykickstart

$ git clone git://git.fedorahosted.org/git/pykickstart.git
$ cd pykickstart
$ make
$ make install
$ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/bin/
$ sudo fakeroot cp -fr usr/local/lib/python2.6/dist-packages/pykickstart /usr/lib/python2.6/dist-packages/
$ sudo make -C po install
$ cd ..

and, download and install the mic image creator

$ git clone git://gitorious.org/meego-developer-tools/image-creator.git
$ cd image-creator
$ make clean
$ make
$ sudo make install
$ sudo ./tools/mic-check-alldeps
$ cd ..

This tool is used to create MeeGo images, for that purpose you will need a Kickstart file. Kickstart files specify what repos to pull from, what packages to include, what post-scripts to run and what type of images to create.

$ wget http://wiki.meego.com/images/Handset-armv7l-beagle.ks
$ mv Handset-armv7l-beagle.ks handset-armv7l-beagle.ks

and build the image with

$ sudo LANG=C mic-image-creator --run-mode=0 --cache=mycachedir --format=fs --arch=armv7l --release=daily --config=handset-armv7l-beagle.ks 

You will now have a resulting tar.bz2 in daily/handset/images/meego-handset-armv7l-beagle. Extract it to your rootfs SD card partition.

$ sudo tar xvj --strip-components=2 -f daily/handset/images/meego-handset-armv7l-beagle/meego-handset-armv7l-beagle-daily-fs.tar.bz2 -C /media/rootfs

Install kernel and kernel modules

First, get latest kernel and kernel modules binaries from IGEP website

$ wget http://downloads.igep.es/binaries/kernel/v2.6.33.6-0/uImage-2.6.33.6-0.bin
$ wget http://downloads.igep.es/binaries/kernel/v2.6.33.6-0/linux-omap-modules-2.6.33.6-0.tar.gz

Next, copy the kernel to the boot partition into the SD card

$ cp uImage-2.6.33.6-0.bin /media/boot/uImage 

Finally, uncompress the kernel modules to the rootfs partition into the SD card

$ sudo tar xzf linux-omap-modules-2.6.33.6-0.tar.gz -C /media/rootfs