Colin Charles Agenda

Maemo 3.0 on Fedora Core 6 (N800 development environment)

Maemo 3.0 (Bora), and Scratchbox APOPHIS installs just fine on Fedora Core 6. Its important to probably follow the install documentation, and do just a few other things.

First of, it starts with the installation. If you’re on an x86_64 platform, it is suggested that you have some kind of chroot environment setup. In Debian land, you might find reading Maemo 2.0 on AMD64 handy, however in Fedora-land, there’s a great utility called setarch.

SELinux should be disabled before installation. As root, type echo 0 > /selinux/enforce. Then proceed to install via:

setarch i386sudo ./maemo-scratchbox-install_3.0.sh -s /opt/scratchbox -u username

The above installs it to the path /opt/scratchbox, and adds username to the sbox group. Now, while in your i386 “chroot”, run, sudo /opt/scratchbox/sbin/sbox_ctl start, and try running /opt/scratchbox/login. You should be greeted with a prompt like: [sbox-SDK_X86: ~]>.

Outside of Scratchbox (I suggest you exit it), run bash maemo-sdk-install_3.0.sh -s /opt/scratchbox (the -s specifies the path, if you installed it in /scratchbox, its not necessary). Continue following on the instructions in the install documentation.

Pull down Xephyr via YUM – its xorg-x11-server-Xephyr. Remember that all this won’t work unless you’re in the sbox group, so if things seem to be broken, run id and see if you can see that you’re a member of the sbox group.

Maemo running on Fedora Core 6

At startup, just run setarch i386, then don’t forget to start scratchbox via sudo /opt/scratchbox/sbin/sbox_ctl start. Fire up Xephyr, via Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac (this should be done outside your setarch-ed environment), and then login to scratchbox, export the display to :2, and run af-sb-init.sh start. You should have the Maemo environment running now.

Update: Russell Coker dropped me a line, and yes, while I don’t simply encourage the turning off, of SELinux, this was not implied by me. There’s a test in maemo-scracthbox-install_3.0.sh that checks on this (lines 420-427), and it recommends that it should be dropped to permissive mode. You can also obviously use the setenforce tool. Also, if you’re looking for a guide to Xephyr, he’s got a resource that’s pretty good.