Tuesday, December 22, 2009

Maemo 5 SDK in Gentoo

This is a small guide to install Maemo 5 SDK in Gentoo. The steps that I present  here were based on the Maemo 5 SDK installation guide. There exist a GUI installer, but in this post I will present just step by step using console commands.

The installation was done in a 32 bit computer, obviously running Gentoo, with kernel 2.6.31.

Points to consider before installing Maemo:

  • VDSO support must not be set in the host kernel. To check if this feature is turned on run this command as root  
        $cat /proc/sys/vm/vdso_enabled
        if a 1 is shown then vdso is enabled.  To turn it off run as root   
        $echo 0 > /proc/sys/vm/vdso_enabled
        or add the following kernel parameter vdso=0.
    • Xephyr must be installed. In order to test whether Xephyr is installed execute the following command:  
                $Xephyr :2                                                                          



      If it doesn't  work then add the kdriver flag to your USE variable and recompile xorg-server. It should work after that.

      Installation

      1. Download Maemo installation scripts 
        $wget  http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh
        $wget  http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
      2.  Install Scratchbox by running:
      $sudo ./maemo-scratchbox-install_5.0.sh -u USER -s PATH/scratchbox

      where USER=username for the scratchbox system and PATH= path where you want the files to be installed. Note that this path must include a directory named scratchbox.

      3. Log into the new unix-group "sbox" created by the installer  running
      $newgrp sbox

      4. Install the SDK by running
      $./maemo-sdk-install_5.0.sh -s  PATH/scratchbox

      PATH is the route where scratchbox was installed in the 2nd step.

      5. Start Scratchbox
      $PATH/scratchbox/sbin/sbox_ctl start

      6. Login to Scratchbox
      $PATH/scratchbox/login

      7. Get the Nokia Binaries from http://tablets-dev.nokia.com/eula/index.php, and Accept the EULA, then copy the address that is given to you after accepting the EULA  and paste it at the bottom in /etc/apt/sources.list file for both targets ARMEL and X86.

      Selecting Targets:

      ARMEL Target
       [sbox-FREMANTLE_X86: ~] sb-conf select FREMANTLE_ARMEL 
      X86 Target
      [sbox-FREMANTLE_ARMEL: ~] sb-conf select FREMANTLE_X86

      $ nano -w /etc/apt/sources.list 

      Then run the following command in both targets
      [sbox-FREMANTLE_ARMEL: ~] apt-get update
      in order to update repositories in the scratchbox  (Debian based Linux)

      8. Finally, Install the Nokia Binaries in both targets
      [sbox-FREMANTLE_ARMEL: ~] fakeroot apt-get install nokia-binaries --fix-missing

      9. Now, start the UI as shown in http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation#Starting.2FShutting_down_the_SDK_UI

      I strongly recommend reading the Maemo 5 SDK installation guide for any specific detail.
      Happy Hacking =)




      4 comments:

      1. It should, that's the way I installed Maemo FREMANTLE in my Gentoo Box. I tried it with version 5.0-r1

        ReplyDelete
      2. Hi all,

        If you all are aware that the maemo 5 sdk has been updated in order to provide the developers few other features.
        For developers who have already installed an earlier version of the SDK, the update can be obtained using the apt package management tool in scratchbox.
        Check out the new features first and how to get started..
        http://www.forum.nokia.com/Technology_Topics/Device_Platforms/Maemo.xhtml

        ReplyDelete