User:Stuart

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m
m
Line 74: Line 74:
 
# /etc/init.d/nodm start
 
# /etc/init.d/nodm start
 
</pre>
 
</pre>
 +
Let's read http://www.mail-archive.com/smartphones-userland@linuxtogo.org/msg01205.html which suggests removing xserver-xorg-input-synaptics. Now Xorg.0.log says
 +
<pre>
 +
(II) config/hal: Adding input device s3c2410 TouchScreen
 +
(**) s3c2410 TouchScreen: always reports core events
 +
(II) XINPUT: Adding extended input device "s3c2410 TouchScreen" (type: TOUCHSCREEN)
 +
</pre>
 +
and tapping the screen switches it on but still no luck in doing any actions. Let's restore /etc/pointercal
 +
<pre>
 +
# echo 557 38667 -4654632 -51172 121 46965312 65536 > /etc/pointercal
 +
# /etc/init.d/nodm restart
 +
</pre>
 +
now I have a screen that works.

Revision as of 12:26, 17 August 2009

The entry in /etc/network/interfaces. I use /30 as my home network is 192.168.0.0/24. I have a local nameserver.

iptables -A FORWARD --in-interface eth7 -j ACCEPT
allow-hotplug eth7
iface eth7 inet static
	address 192.168.0.200
	netmask 255.255.255.252
	up iptables -A POSTROUTING -t nat -s 192.168.0.200/30 -j MASQUERADE
	up echo 1 > /proc/sys/net/ipv4/ip_forward
	down iptables -D POSTROUTING -t nat -s 192.168.0.200/30  -j MASQUERADE
iptables -A FORWARD --out-interface eth7 -j ACCEPT

Installing Debian

I partitioned by hand because of a problem with fdisk. Changing the type of a partition seems to block with the fdisk from Om 2007.

Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1       57984     1855480  83 Linux
/dev/mmcblk0p2           57985       62032      129536  82 Linux swap

Well, install.sh - v3.0, fails.

# HOSTNAME=stuart INST_MIRROR=http://ftp.fr.debian.org/debian QI=true LOCALEPURGE=true ./install.sh  --no-partitioning --swap-size  128 --part1-fs ext3 --with-tasks GAMES,NET,WEB,WIFI,COM all
[...]
P: Configuring package apt
P: Configuring helper cdebootstrap-helper-apt
E: Internal error: install

http://www.mail-archive.com/smartphones-userland@linuxtogo.org/msg01544.html explains that you have to download install-info_4.13a.dfsg.1-4_armel.deb in the middle of the installation.

HOSTNAME=stuart QI=true INST_MIRROR=http://ftp.fr.debian.org/debian LOCALEPURGE=true /home/root/install.sh  --no-partitioning --swap-size 128 --part1-fs ext3 format mount
mkdir /mnt/debian/var /mnt/debian/var/cache  /mnt/debian/var/cache/bootstrap/
wget http://ftp.debian.org/debian/pool/main/t/texinfo/install-info_4.13a.dfsg.1-4_armel.deb
mv install-info_4.13a.dfsg.1-4_armel.deb  /mnt/debian/var/cache/bootstrap/
HOSTNAME=stuart QI=true INST_MIRROR=http://ftp.fr.debian.org/debian LOCALEPURGE=true /home/root/install.sh  --no-partitioning --swap-size 128 --part1-fs ext3 debian apt fso tasks configuration kernel cleanup unmount

Now I have debian on my SD card but the touchscreen doesn't work. http://neil.brown.name/blog/20090212205404 says that it might just be a calibration problem. apt-get install libts-bin TSLIB_TSDEVICE=/dev/input/touchscreen0 DISPLAY=:0 /usr/bin/ts_calibrate

xres = 480, yres = 640

I can see the cross-hairs but clicking does nothing. Ok, you need to stop the Xserver before calibrating.

# /etc/init.d/nodm stop
TSLIB_TSDEVICE=/dev/input/touchscreen0  DISPLAY=:0 /usr/bin/ts_calibrate
xres = 480, yres = 640
Took 15 samples...
Top left : X =  858 Y =  201
Took 2 samples...
Top right : X =  854 Y =  840
Took 9 samples...
Bot right : X =  160 Y =  840
Took 11 samples...
Bot left : X =  162 Y =  196
Took 18 samples...
Center : X =  509 Y =  513
-65.726501 -0.002131 0.592298
717.045288 -0.776964 -0.003633
Calibration constants: -4307452 -139 38816 46992280 -50919 -238 65536 
# echo -4307452 -139 38816 46992280 -50919 -238 65536 > /etc/pointercal 
# /etc/init.d/nodm start

Let's read http://www.mail-archive.com/smartphones-userland@linuxtogo.org/msg01205.html which suggests removing xserver-xorg-input-synaptics. Now Xorg.0.log says

(II) config/hal: Adding input device s3c2410 TouchScreen
(**) s3c2410 TouchScreen: always reports core events
(II) XINPUT: Adding extended input device "s3c2410 TouchScreen" (type: TOUCHSCREEN)

and tapping the screen switches it on but still no luck in doing any actions. Let's restore /etc/pointercal

# echo 557 38667 -4654632 -51172 121 46965312 65536 > /etc/pointercal
# /etc/init.d/nodm restart

now I have a screen that works.

Personal tools

The entry in /etc/network/interfaces. I use /30 as my home network is 192.168.0.0/24. I have a local nameserver.

iptables -A FORWARD --in-interface eth7 -j ACCEPT
allow-hotplug eth7
iface eth7 inet static
	address 192.168.0.200
	netmask 255.255.255.252
	up iptables -A POSTROUTING -t nat -s 192.168.0.200/30 -j MASQUERADE
	up echo 1 > /proc/sys/net/ipv4/ip_forward
	down iptables -D POSTROUTING -t nat -s 192.168.0.200/30  -j MASQUERADE
iptables -A FORWARD --out-interface eth7 -j ACCEPT

Installing Debian

I partitioned by hand because of a problem with fdisk. Changing the type of a partition seems to block with the fdisk from Om 2007.

Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
4 heads, 16 sectors/track, 62032 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1       57984     1855480  83 Linux
/dev/mmcblk0p2           57985       62032      129536  82 Linux swap

Well, install.sh - v3.0, fails.

# HOSTNAME=stuart INST_MIRROR=http://ftp.fr.debian.org/debian QI=true LOCALEPURGE=true ./install.sh  --no-partitioning --swap-size  128 --part1-fs ext3 --with-tasks GAMES,NET,WEB,WIFI,COM all
[...]
P: Configuring package apt
P: Configuring helper cdebootstrap-helper-apt
E: Internal error: install

http://www.mail-archive.com/smartphones-userland@linuxtogo.org/msg01544.html explains that you have to download install-info_4.13a.dfsg.1-4_armel.deb in the middle of the installation.

HOSTNAME=stuart QI=true INST_MIRROR=http://ftp.fr.debian.org/debian LOCALEPURGE=true /home/root/install.sh  --no-partitioning --swap-size 128 --part1-fs ext3 format mount
mkdir /mnt/debian/var /mnt/debian/var/cache  /mnt/debian/var/cache/bootstrap/
wget http://ftp.debian.org/debian/pool/main/t/texinfo/install-info_4.13a.dfsg.1-4_armel.deb
mv install-info_4.13a.dfsg.1-4_armel.deb  /mnt/debian/var/cache/bootstrap/
HOSTNAME=stuart QI=true INST_MIRROR=http://ftp.fr.debian.org/debian LOCALEPURGE=true /home/root/install.sh  --no-partitioning --swap-size 128 --part1-fs ext3 debian apt fso tasks configuration kernel cleanup unmount

Now I have debian on my SD card but the touchscreen doesn't work. http://neil.brown.name/blog/20090212205404 says that it might just be a calibration problem. apt-get install libts-bin TSLIB_TSDEVICE=/dev/input/touchscreen0 DISPLAY=:0 /usr/bin/ts_calibrate

xres = 480, yres = 640

I can see the cross-hairs but clicking does nothing. Ok, you need to stop the Xserver before calibrating.

# /etc/init.d/nodm stop
TSLIB_TSDEVICE=/dev/input/touchscreen0  DISPLAY=:0 /usr/bin/ts_calibrate
xres = 480, yres = 640
Took 15 samples...
Top left : X =  858 Y =  201
Took 2 samples...
Top right : X =  854 Y =  840
Took 9 samples...
Bot right : X =  160 Y =  840
Took 11 samples...
Bot left : X =  162 Y =  196
Took 18 samples...
Center : X =  509 Y =  513
-65.726501 -0.002131 0.592298
717.045288 -0.776964 -0.003633
Calibration constants: -4307452 -139 38816 46992280 -50919 -238 65536 
# echo -4307452 -139 38816 46992280 -50919 -238 65536 > /etc/pointercal 
# /etc/init.d/nodm start

Let's read http://www.mail-archive.com/smartphones-userland@linuxtogo.org/msg01205.html which suggests removing xserver-xorg-input-synaptics. Now Xorg.0.log says

(II) config/hal: Adding input device s3c2410 TouchScreen
(**) s3c2410 TouchScreen: always reports core events
(II) XINPUT: Adding extended input device "s3c2410 TouchScreen" (type: TOUCHSCREEN)

and tapping the screen switches it on but still no luck in doing any actions. Let's restore /etc/pointercal

# echo 557 38667 -4654632 -51172 121 46965312 65536 > /etc/pointercal
# /etc/init.d/nodm restart

now I have a screen that works.