Topic: Install Debian onto a USB stick and run in a chroot on the Infocast 8"
Hello to everyone,
I've tried to install Debian Lenny on the Infocast 8" and it worked. This is the whole story :
On Ubuntu 10.10 with VMWare
sudo apt-get install debootstrap
mkdir ~/debian-armel-bootstrap
sudo debootstrap --foreign --arch armel lenny ~/debian-armel-bootstrap
cd ~/debian-armel-bootstrap
sudo tar cvzf ../debian-armel-bootstrap.tar.gz *
Install onto the USB flash drive or USB hard drive with VMWare
cd /media/debian-armel
sudo tar xvzf ~/debian-armel-bootstrap.tar.gz
sync
umount /media/debian-armel
Run the second state on the Infocast 8 :
/usr/chumby/scripts/stop_control_panel
*** stopping control panel
*** killing registered flashplayer pid: 14552
Adobe FlashLite 3.1.7 Release (Version 9,1,122,0)- Chumby Industries (version 9 build 107-3548 [GCC 4.3.2])
Portions copyright (C) 2005-2010 Chumby Industries, Inc.
Built for: silvermoon; Features: Video ALSA ARM-optimizations
Build time: Thu 09Dec2010 1318
chumbyflashplayer.x: sending signal 15 (SIGTERM) to running instance 14552
chumbyflashplayer.x: registered instance 14552 appears to have terminated
*** killing control panel pid: 14485
btplay client v1.4.1.38.46
Connected to btplayd instance 14551
Got response: OK 100 quit
Matched request 100
Waiting 500ms for process to terminate
Continuing...
*** killing btplayd (SIGTERM): 18872
*** killing btplayd (SIGTERM): 14551
*** killing btplayd (SIGKILL): 18872
*** killing btplayd (SIGKILL): 14551
cd /mnt/usb3
chroot . /debootstrap/debootstrap --second-stage
Copy important /dev entries from the Infocast 8 filesystem to the Debian filesystem
cp -a /dev/fb* /mnt/usb3/dev/
cp -a /dev/tty* /mnt/usb3/dev/
cp -a /dev/pts* /mnt/usb3/dev/
mkdir -p /mnt/usb3/dev/input/
cp -a /dev/input/* /mnt/usb3/dev/input/
Log into the Debian chroot environment
mount -o bind /proc /mnt/usb3/proc
mount -o bind /sys /mnt/usb3/sys
mount -o bind /dev/pts /mnt/usb3/dev/pts
chroot /mnt/usb3 /bin/hostname chumby
chroot /mnt/usb3 /bin/bash
Setup resolv.conf ; apt and install X from within the Debian chroot :
nano /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
nano /etc/apt/sources.list
deb http://ftp.fi.debian.org/debian lenny main contrib
deb-src http://ftp.fi.debian.org/debian lenny main contrib
apt-get update
apt-get install xserver-xorg-input-tslib libts-bin xinit xserver-xorg-input-mouse xserver-xorg-input-kbd xauth xterm matchbox
Configure tslib and X-Windows
Within your Debian chroot :
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=/dev/ttyS0
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
ts_calibrate
ts_test
open consoledevice: No such file or directory
KDSETMODE: Bad file descriptor
Create /etc/X11/xorg.conf
Section "Device"
Identifier "Chumby Video Device"
Option "UseFBDev" "true"
Driver "fbdev"
#Option "fbdev" "/dev/fb0"
EndSection
Section "InputDevice"
Identifier "Touchscreen"
Driver "tslib"
Option "CorePointer" "true"
Option "SendCoreEvents" "true"
Option "TslibDevice" "/dev/input/event0"
Option "Protocol" "Auto"
#Option "EmulateRightButton" "1"
EndSection
Section "ServerLayout"
Identifier "Base layout"
Screen "Chumby Screen"
InputDevice "Touchscreen"
EndSection
Section "Monitor"
Identifier "Chumby Monitor"
EndSection
Section "Screen"
Identifier "Chumby Screen"
Device "Chumby Video Device"
Monitor "Chumby Monitor"
EndSection
Create /root/.xinitrc
exec startlxde
Recompile X-Windows tslib support
wget http://www.openminddev.net/projects/att … atched.deb
dpkg -i xserver-xorg-input-tslib_0.0.4-5_armel-patched.deb
startx
lxde DM is up,even if the touch screen doesn't works. I'm not able to move the mouse pointer with my finger.