From metaStudio

Jump to: navigation, search

Some notes taken while hacking Armel Tablet


Hacking android Tablets for Sugar

apt-get install debootstrap 
dd if=/dev/zero of=debian.img seek=749999999 bs=1 count=1 
mke2fs -F debian.img 
mkdir debian mount -o loop debian.img debian 
debootstrap --verbose --arch armel --foreign lenny debian 
umount debian 

How to mount Image files( *.img) in Linux

  1. losetup -f
    2. losetup /dev/loop3 ubuntu-10.04-netbook-armel+dove.img
    3. kpartx -av /dev/loop3
    4. mount /dev/mapper/loop3p1 ubuntu-10.04-rootfs/
    Instruction to setup tftpboot:

Instruction to setup nfsboot

Install nfs-server on host machine

Configure nfs-server

Make changes in /etc/exports file as given below:

nfs-shared-direcotry> <ip of the client machine(e.g 
and save file. 

Mount OS image using above method at /mnt/ or <directory you want >.
cd /mnt
cp -av <all files '*'


Restart nfs-kernel-service
/etc/init.d/nfs-kernel-server restart 

Change Directory to nfsboot-shared-directory

chown -R nobody.nogroup * 

Instruction to setup startx in nfsboot

After booting Tablet PC using NFSBOOT to start X server use the following commands on the host nfs server in Export direcotry.

Before booting OS image from the NFSBOOT you have to change make minor changes in the root filesystem i.e image filesystem loaded in nfsboot directory as follow:

$ cd <nfsboot directory>
$ nano etc/fstab

make the following changes

$ chown -R root.root tmp/ 
$ chmod -R 1777 tmp
$ startx 

Possible Errors

If you see "Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)" you may solve it by the following steps:

sudo chmod g+s /usr/bin/X 
sudo chmod u+s /usr/bin/X  
sudo chown <firstusername>.<firstusername> /home/<firstuser>/.Xsession 

To run a Xserver with touch screen requires touchscreen modules to be installed in the system. For marvell tablet it is "TSLIB"
while running OS image in qemu emulator, we have to install folowing debpackage

$ sudo apt-get install xserver-xorg-input-tslib

Facts about Tablet

RDF feed