Chinook

This installs Chinook in a scratchbox that will be located at /chinook/scratchbox. We'll compile a Tinymail and a Modest for ARMEL and we'll deploy that on a N800 after flashing the N800 with a Chinook for a N810.

This will take you ~60 minutes. Depending on your connection speed (Chinook with all debugging packages is not small).

If you don't want to make your device incompatible with packages that might soon be released, then DON'T use /usr as prefix!

$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite &
$ wget http://repository.maemo.org/stable/chinook/maemo-scratchbox-install_4.0.sh
$ wget http://repository.maemo.org/stable/chinook/maemo-sdk-install_4.0.sh
$ sudo chmod a+x ./maemo-scratchbox-install_4.0.sh
$ sudo chmod a+x ./maemo-sdk-install_4.0.sh
$ sudo apt-get install dialog
$ sudo /scratchbox/sbin/sbox_ctl stop
$ sudo ./maemo-scratchbox-install_4.0.sh -s /chinook/scratchbox
$ sudo ./maemo-sdk-install_4.0.sh -s /chinook/scratchbox

Pick option "Runtime Environment + All Dev and Dbg Packages."
Bascially answer yes to all questions. If you want, also the ones about closed Nokia binaries.

Also add a user USER and make sure that you can login and etc. Instructions here:
http://tablets-dev.nokia.com/4.0/INSTALL.txt

$ /chinook/scratchbox/login
[sbox-CHINOOK_ARMEL: ~] > fakeroot apt-get update
[sbox-CHINOOK_ARMEL: ~] > fakeroot apt-get upgrade

# For Tinymail
[sbox-CHINOOK_ARMEL: ~] > fakeroot apt-get install gnome-common gtk-doc-tools
[sbox-CHINOOK_ARMEL: ~] > fakeroot apt-get install microb-engine-dev microb-engine

# For Modest
[sbox-CHINOOK_ARMEL: ~] > fakeroot apt-get install wpeditor-dev

[sbox-CHINOOK_ARMEL: ~] > export DISPLAY=:2
[sbox-CHINOOK_ARMEL: ~] > af-sb-init.sh start

Other screen:
$ /chinook/scratchbox/login
[sbox-CHINOOK_ARMEL: ~] > /chinook/scratchbox/login

[sbox-CHINOOK_ARMEL: ~] > mkdir repos
[sbox-CHINOOK_ARMEL: ~/repos] > cd repos
# Yes this works since Chinook in the scratchbox too
[sbox-CHINOOK_ARMEL: ~/repos] > svn co https://svn.tinymail.org/svn/tinymail/trunk tinymail
[sbox-CHINOOK_ARMEL: ~/repos] > svn co https://garage.maemo.org/svn/modest/modest/trunk modest
[sbox-CHINOOK_ARMEL: ~/repos] > cd tinymail
[sbox-CHINOOK_ARMEL: ~/repos/tinymail] > export CFLAGS="-DDEBUG -DDBC -O0 -g -ggdb"
[sbox-CHINOOK_ARMEL: ~/repos/tinymail] > CFLAGS="-DDEBUG -DDBC -O0 -g -ggdb" ./autogen.sh --prefix=/opt/tinymail --with-platform=maemo
[sbox-CHINOOK_ARMEL: ~/repos/tinymail] > make && make install
[sbox-CHINOOK_ARMEL: ~/repos/tinymail] > cd ..
[sbox-CHINOOK_ARMEL: ~/repos] > cd modest
[sbox-CHINOOK_ARMEL: ~/repos/modest] > PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/tinymail/lib/pkgconfig ./autogen.sh --prefix=/opt/modest --with-platform=maemo
[sbox-CHINOOK_ARMEL: ~/repos] > make && make install
[sbox-CHINOOK_ARMEL: ~/repos] > cd ..

# This will crash because qemu will fail on shmget
[sbox-CHINOOK_ARMEL: ~] > run-standalone.sh /opt/modest/bin/modest showui
# This should work (you'll need to create accounts using gconftool-2, read 
# Tinymail's documentation for that)
[sbox-CHINOOK_ARMEL: ~] > run-standalone.sh /opt/tinymail/bin/tny-demoui

It should be possible to get TMut working too. The compilation is pretty much standard (it's explained on TMut's homepage).

Preparing your N800 device

WARNING! This will destroy ALL information on your device.

Go here: http://tablets-dev.nokia.com/nokia_N810.php and use 001d6e9c0000 as device's serial. That way the nice guys at Nokia can count how many N800 are already bricked with a shiny new Chinook image. Soon they will provide one for N800 devices too. But the N810 one seems to work fine with the N800 device. You'll destroy your data this way. I have warned you twice now.

And I'll warn you again: you WILL destroy all data on your device if you do this.

First run these to unpack the image:

chmod a+x ./flasher-3.0
./flasher-3.0 -u -F RX-44_2008SE_1.2007.42-19_PR_COMBINED_MR0_ARM.bin

Turn your device off. Connect it with a USB cable. Make sure the battery was charged completely (or the power cable is connected). Run

sudo ./flasher-3.0 --enable-rd-mode

And turn on your device. It will tell you something about RB mode being enabled. Don't touch your device, and run

sudo ./flasher-3.0 --enable-rd-mode
sudo ./flasher-3.0 -k zImage -f
sudo ./flasher-3.0 -n initfs.jffs2 -f
sudo ./flasher-3.0 -r rootfs.jffs2 -f -R

The device will reboot. Now browse to http://www.komputika.net/maemo/ and tap on the dropbear_0.48-0.1_armel.deb and install it.

Deploying Modest and Tinymail

# Other screen
$ su -
# cd /chinook/scratchbox/users/USER/targets/CHINOOK_ARMEL/opt
# tar zcvf tny-modest.tar.gz *
# scp tny-modest.tar.gz root@yourdevice:
# ssh -l root yourdevice
( The password will be "rootme" if you enabled RD mode, please change it by logging in as root and using "passwd" )
Nokia-N800-:~# cd /opt
Nokia-N800-:~# tar zxvf /root/tny-modest.tar.gz
Nokia-N800-:~# cd /opt/modest/share/locale/en_GB
Nokia-N800-:/opt/modest/share/locale/en_GB# cp LC_MESSAGES/modest.mo /usr/share/locale/en_GB/LC_MESSAGES/
Nokia-N800-:/opt/modest/share/locale/en_GB# cd ~
Nokia-N800-:~# su - user
~ $ run-standalone.sh /opt/modest/bin/modest showui

Attachments