scarpino.dev

Installing Maemo 5 SDK on Arch Linux

First of all, download the Maemo scratchbox installer:

$ wget http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh
$ chmod a+x maemo-scratchbox-install_5.0.sh

And then run:

# linux32 ./maemo-scratchbox-install_5.0.sh -s /opt/scratchbox -u <your_username>

Write this lines to /usr/local/bin/maemo:

#!/bin/bash

sudo sysctl abi.vsyscall32=0
linux32 sudo /opt/scratchbox/sbin/sbox_ctl start
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &amp;
/opt/scratchbox/login
killall -q Xephyr
sleep 1
sudo /opt/scratchbox/sbin/sbox_ctl stop
sudo sysctl abi.vsyscall32=1

Install dialog (was missing in my system): # pacman -S dialog

Download and install the Maemo SDK script:

$ wget http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
$ chmod +x maemo-sdk-install_5.0.sh
$ sudo sysctl abi.vsyscall32=0
$ linux32 sudo /opt/scratchbox/sbin/sbox_ctl start
$ ./maemo-sdk-install_5.0.sh -s /opt/scratchbox/

Note: the maemo-sdk-install script looks for /usr/bin/python instead of /usr/bin/python2, but I didn’t find the line of code which needs python. So, as workaround I created a symlink in this way (note, this is the BAD way!):

# ln -s /usr/bin/python2 /usr/bin/python

Install the xorg-server-xephyr package:

# pacman -S xorg-server-xephyr

Go to tablets-dev.nokia.com and get your personal token, then run the maemo script and add the repository to sources.list into your scratchbox:

[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_x86
[sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list # add deb line
[sbox-FREMANTLE_X86: ~] > apt-get update
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps

Run the maemo script, then exec:

[sbox-FREMANTLE_X86: ~] af-sb-init.sh start

…and to stop it, run:

[sbox-FREMANTLE_X86: ~] af-sb-init.sh stop

Enjoy!

Maemo SDK

Tags: arch linux, howto, maemo

By Andrea Scarpino on 2010-12-02

Discuss on HackerNews