Meego Wiki
Views

ARM/Creating ARM image using MeeGo Image Creator

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Run MeeGo Image Creator)
m (Run MeeGo Image Creator)
Line 56: Line 56:
  repo --name=core              --baseurl=http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100831.1/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego
  repo --name=core              --baseurl=http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100831.1/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego
Change that to:
Change that to:
-
repo --name=core              --baseurl=http://repo.meego.com/MeeGo/builds/trunk/daily/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego
+
repo --name=core              --baseurl=http://repo.meego.com/MeeGo/builds/trunk/daily/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego
and it should pull from the 'daily' repo.
and it should pull from the 'daily' repo.

Revision as of 09:22, 7 September 2010

Under construction

Contents

Requirements

 * Fedora 12 or Fedora 13
 * mkfs.ubifs, ubinize and qemu-arm-static from meego-tools repositories (install instructions below).
 * MeeGo Image Creator from git
     * requires git-core (# yum install git-core)

Install qemu-arm-static, mkfs.ubifs and ubinize

NOTE: Fedora has its own mtd-utils package, but that does not include the required tools for ubi creation.

For other distributions see Image_Creation

NOTE: You need both of the repositories below for Fedora 12/13, because some packages are only available in Fedora 11 currently.

Add following lines to for example /etc/yum.repos.d/meego-tools.repo

[meego-tools-f12]
name=Meego tools F12
failovermethod=priority
baseurl=http://repo.meego.com/tools/repos/fedora/12/
enabled=1
gpgcheck=0

[meego-tools-f11]
name=Meego tools F11
failovermethod=priority
baseurl=http://repo.meego.com/tools/repos/fedora/11/
enabled=1
gpgcheck=0

Install the required package:

sudo yum install mtd-utils mtd-utils-ubi qemu-arm-static

Get and install MeeGo Image Creator code

If Git version control system or make are missing, those can be installed with commands:

sudo yum install git

Git clone the Meego Image Creator sources to temporary directory and install the codes:

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

Run MeeGo Image Creator

Create a working directory and copy your kickstart file there. Sample kickstart files can be found here. In the case of the N900 a more interesting kickstart file (with the proprietary Nokia bits), may be found here: [1]. Before using that kickstart, you may want or need to modify it to pull from the 'daily' repo. For example, you might see a line like this in the .ks file:

In the working directory, run either of the following commands as root:

repo --name=core               --baseurl=http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100831.1/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego

Change that to:

repo --name=core               --baseurl=http://repo.meego.com/MeeGo/builds/trunk/daily/core/repos/armv7l/packages/ --save --debuginfo --source --gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-meego

and it should pull from the 'daily' repo.

Image will be created in working directory.

Packages will be cached in mycachedir to speed up the next image creation.

If you are behind a proxy, you can set it to mic by adding

proxy=http://proxy.yourcompany.com:8080

to /etc/mic2/mic2.conf.

Ubifs image (OBSOLETE)

sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=ubi --arch=armv7l --save-kernel --config=YOUR_KICKSTART

Loop image

sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=loop --arch=armv7l --config=YOUR_KICKSTART 

Raw image (PREFERRED)

Create the image with following command:

sudo mic-image-creator --run-mode=0 --cache=mycachedir --format=raw --arch=armv7l --save-kernel --config=YOUR_KICKSTART 

You will get a directory which ends with -raw suffix and file that includes vmlinuz in its name. The directory contains the *.raw file that is put to the memory card and vmlinuz is put to the N900 with flasher. For information on writing the image/flashing the kernel, see: Installation methods

Troubleshooting

exit status 255 error

warning: %post(libgcc-4.4.2-12.2.armv5tel) scriptlet failed, exit status 255 

This is caused by SELinux, which can be disabled with:

setenforce 0

or

echo "0" > /selinux/enforce

This fix is valid, until you reboot your device.

Personal tools