Releases/0.2/MamonaInstaller

Mamona Installer

Abstract

Here we are going to show you how to get mamona-installer ready to use in a couple of steps.

The installer is available in deb, rpm and tarball packages and provide the following files:

  • mamona-platform-install - Fetch Mamona/OE/bitbake build system from our git servers.
  • mamona-sdk-install - Fetch Mamona SDK from our servers.
  • mamona-cputransp - Activate/Deactivate mamona-qemu-arm binary installed.
  • mamona-chroot - Auxiliar script to enter into Mamona SDK chroot.
  • debootstrap-mamona - Mamona custom debootstrap script.
  • mamona-qemu-arm - Static qemu-arm compatible with Mamona requirements.

Note that the SDK and the git repository won't be installed/cloned, just fetchers, tools and custom qemu.

Installation quick steps

Deb package

$ wget http://dev.openbossa.org/mamona/0.2/installer/mamona-installer_0.2.7_i386.deb
$ sudo dpkg -i mamona-installer_0.2.7_i386.deb
$ sudo apt-get -f install

Rpm package

Just if you want use the old version, cause we didn't create the package for mamona-installer 2.7 yet.

$ wget http://dev.openbossa.org/mamona/0.2/installer/mamona-installer-0.2.3-1.i386.rpm
$ wget http://dev.openbossa.org/mamona/0.2/installer/reprepro-3.3.2-2.i386.rpm
$ yum install compat-db
$ sudo rpm -i mamona-installer-0.2.4-1.i386.rpm reprepro-3.3.2-2.i386.rpm
$ sudo ln -sf /lib/libbz2.so.1.0.4 /lib/libbz2.so.1.0

Compiling mamona-installer

First of all, you should get the source code. You can choose between a tarball with version 0.2.7 or get a latest one using our Git repository.

Tarball package

Downloading mamona-installer source version 0.2.7.

$ wget http://dev.openbossa.org/mamona/0.2/installer/mamona-installer_0.2.7.tar.gz
$ tar -xf mamona-installer_0.2.7.tar.gz
$ cd mamona-installer

Git repository

Download latest version of mamona-installer using Git.

$ git clone http://dev.openbossa.org/mamona/tools.git
$ cd tools/mamona-installer

Compile

Regarding you're using Ubuntu Intrepid, you can install the build depends using the command below.

sudo apt-get install automake autoconf procmail debootstrap bison ccache cvs docbook-utils fakeroot help2man intltool python-pexpect subversion  texi2html reprepro  quilt mtd-tools gcc-3.4 cdebootstrap  xmlto texinfo curl

Now you can configure, compile and install it.

$ ./autogen.sh
$ ./configure --prefix=/usr 
$ make
$ sudo make install

NOTE: Due to some  known issues you cannot use gcc4 to compile qemu, use gcc3.x instead.

NOTE: This symbolic link is needed because libz2 doesn't have the libbz2.so.1.0. A bug was opened in Fedora project.

Mamona "custom qemu"

Since we have special needs to get Mamona running properly we decided to provide our own QEMU version which contains a lot of community's patches including some made by INdT Platform team, that makes it work better with arm.

To make it easier we've built it following the instructions from  http://qemu-arm-eabi.wiki.sourceforge.net and included it into mamona-installer package. Once you have installed the mamona-installer package you will already have our static binary mamona-qemu-arm installed in your system.

Just notice that Mamona's Qemu version will not conflict with any other Qemu at your system, it's just a custom version with another name. You can still have your main Qemu installed at your machine.

To register (and consecutively activate/deactivate) mamona-qemu-arm you need to use mamona-cputransp script.

Scratchbox compatibility

Scratchbox and Mamona ARE COMPATIBLE.

  1. Both install their own static qemu.
  2. Mamona has mamona-cputransp script to switch between both qemus.

NOTE: The restriction is that when you're using Mamona qemu you cannot use the Scratchbox one. Anyway, mamona-cputransp provides a easy way to switch between them.