User:Jebba/Mer

(remove synaptics driver)
(add xserver-xorg-input-tslib.)
Line 121: Line 121:
  xserver-xorg-input-synaptics \
  xserver-xorg-input-synaptics \
  xserver-xorg-input-all
  xserver-xorg-input-all
 +
 +
====Add xserver-xorg-input-tslib===
 +
 +
sudo gainroot
 +
 +
apt-get update
 +
 +
apt-get install xserver-xorg-input-tslib
===upgrade===
===upgrade===

Revision as of 18:07, 31 December 2009

Contents

N900 Install

Mer Image

The latest release as of this post is 0.17testing4.

# you need an ext3 formated MicroSD card.
mount -o noatime /dev/mmcblk1p1 /media/mmc1/

# go hence
cd /media/mmc1/

wget http://stskeeps.subnetmask.net/mer/0.17testing4/mer-armel-generic-image-v0.17testing4.tar.gz

# Untar it verbally to see the majick.
# Note this will create dirs like ./usr and ./lib etc, so you don't want stuff pre-existing in those dirs.
tar zxvf mer-armel-generic-image-v0.17testing4.tar.gz

# sync and live free!
sync

bootmenu

You need to have getbootstate version 1.0.35+0m5 or greater for this to work.

dpkg -l getbootstate

(As a side note, getbootstate is close software. Please vote for this bug and/or clamour for it to be released as free software.)

# Grab this package:
wget http://www.daimi.au.dk/~cvm/bootmenu_1.6_armel.deb

# Be root
sudo gainroot

# Install bootmenu
dpkg -i bootmenu_1.6_armel.deb

Then tappy tap tap the bootmenu install icon and answer yes.

Now you need to set up Mer in the menu for bootmenu. See also: Mer bootmenu docs.

I put everything on the first and only partition on an ext3 formatted "external" MicroSD card (the one that's right next to the camera).

# edit/create this file to create a boot menu item for Mer:
vim /etc/bootmenu.d/mer.ext.item

# Make it look justa lika thisa:

ITEM_NAME="Mer (external SD, partition 1)"
ITEM_ID="mer"
ITEM_DEVICE="${EXT_CARD}p1"
ITEM_MODULES="mbcache jbd ext3"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,ro"


(Note: why jbd module needed?)

Then shutoff the phone and reboot with KEYBOARD SLID OUT, so you get the bootmenu.

Disable watchdog

You have to disable the watchdog with the flasher tool or the system will just shut down on bootup:

./flasher-3.5 --set-rd-flags=no-omap-wd

./flasher-3.5 --set-rd-flags=no-ext-wd

./flasher-3.5 --enable-rd-mode

0.17testing4 fixes for N900

# root does all
sudo gainroot

# mount up the MicroSD
mount -o noatime /dev/mmcblk1p1 /media/mmc1/

# go hence
cd /media/mmc1

Missing dir needed at boot

# create a missing directory
mkdir mnt/initfs


Need modules from kernel

# copy over modules from main OS:
cp -a /lib/modules/*  /media/mmc1/lib/modules/


Fix touchscreen

I STILL DON'T HAVE THIS WORKING.

auto-startx

To get the touchscreen working you have to edit this file: /media/mmc1/etc/init.d/auto-startx. Patch it ala:

--- etc/init.d/auto-startx.orig	2009-10-20 12:39:30.000000000 -0300
+++ etc/init.d/auto-startx	2009-12-31 13:46:06.000000000 -0300
@@ -8,6 +8,7 @@
 start)
 	if [ ! -f /etc/default/autologin ] ; then
 		if [ -x /usr/sbin/first-boot-wizard.sh ] ; then
+			TSLIB_TSDEVICE=/dev/input/event3 TSLIB_CONFFILE=/etc/ts.conf ts_calibrate
 			/usr/bin/xinit /usr/sbin/first-boot-wizard.sh 2>&1 > /var/log/first-boot-wizard.log
 		else
 			echo -n "No user specified for auto login. Creating..."

remove synaptics driver

sudo gainroot

chroot /media/mmc1 /bin/bash

dpkg --remove \
xserver-xorg-input-synaptics \
xserver-xorg-input-all

=Add xserver-xorg-input-tslib

sudo gainroot

apt-get update

apt-get install xserver-xorg-input-tslib

upgrade

Note sure if it's needed, but:

chroot /media/mmc1 /bin/bash
apt-get update
apt-get upgrade

This got me new updates:

hildon-input-method libclutter-0.8-0 libetpan13 libhildon-im-ui3

The first one sounds helpful.

Misc

When you are booted up into Fremantle, it wouldn't hurt to fsck your MicroSD too....

umount /dev/mmcblk1p1 && fsck.ext3 -vvv /dev/mmcblk1p1

Build Packages

Packages are built using OpenSUSE's Build Service

  • Sign up for account on OBS: jebbajeb