[G Tablet Android Development] slimm609:
Linux touchscreen drivers and settings

xf86-input-multitouch https://launchpad.net/debian/+archi...ut-multitouch_1.0~rc2+git20110312.orig.tar.gz

libmtdev1 http://ftp.de.debian.org/debian/pool/main/m/mtdev/mtdev_1.1.0.orig.tar.gz

************OLD WAY******************

How to install backtrack 5 to run on the gtablet with out gtab filesystem modification.

You must recreate the img file to be less then 4Gb. The img file is currently 4.6Gb. The new image created will be 2.9Gb. this is a vfat limitation

this has been tested on vegan 5.1 with the gtab/zpad 1.4 OC kernel. Its still a little buggy with random reboots depending on what your are doing but it is a WIP

The kernel must have loop devices support. Also looks like the kernel needs swap functionality to be enabled.

I could release the img file that has already been created but backtrack would prefer that people not release other images so this will allow you to create your own after downloading it from them so it remains trusted.

you either need:

linux with ADB working on the gtab

OR

windows with ADB and access to a linux box with about 10gb of free space.

Backup your sdcard because it needs to be repartitioned with CWM.

In CWM under advanced > Partition SD Card > 2048 > 128

download the arm version of backtrack from www.backtrack-linux.org/downloads/

and extract the files. you need to copy the bt5.img.gz to the linux box and do all the following steps.

make a working directory for all the files, copy and gunzip the img file

mkdir bt5
cp /root/bt5.img.gz bt5
cd bt5
gunzip bt5.img.gz

rename the old bt5.img to something else and create a new image that fits onto the gtabs vfat filesystem.

then create 2 directory to mount each image and copy the files over to the new img file.

mv bt5.img bt5.old.img

dd if=/dev/zero of=bt5.img bs=4k count=900000
mke2fs -F -i 8192 bt5.img

mkdir bt5old bt5new
mount -o loop bt5.old.img bt5old
mount -o loop bt5.img bt5new
cd bt5old
cp -rp * ../bt5new

*****************************************

since the system does not go through the full startup scripts once you run "sh bootbt" you must run /etc/rc.local from the chroot to start the vnc server if you add these lines otherwise you must type them each time.

cd ../bt5new/
vi etc/rc.local and add the following 2 lines before the exit 0 line

export USER=root
/usr/bin/startvnc

save the file and then continue on.

also you can edit /usr/bin/startvnc and modify the screensize to fit the tablet

the gtablet is 1024x600

vncserver -geometry 1024x600

*****************************************

after all files have been copied over you just unmount the 2 directories and gzip the new image.

cd ..
(you should now be in the directory with the 2 img files and 2 directories)
umount bt5old
umount bt5new
gzip bt5.img

edit the bootbt file and change the line

mount -o remount,rw /dev/block/mmcblk0p5 /system

with

mount -o remount,rw /dev/block/mtdblock3 /system

*** this needs to be changed to whatever your /system is on your tablet or phone if it is something other then the gtablet.

now copy this new bt5.img.gz file over to the directory where you got the original image from and then follow the instructions that are included with the download in the README file.

a good VNC viewer is located

http://code.google.com/p/android-vnc-viewer/downloads/list

and also install a terminal emulator so you can start Backtrack 5 from the device.

---BUGS---

running from a terminal emulator everything runs fine but running VNC gnome takes up way to much RAM currently. Looking at fluxbox and/or swap as a fix. causes the tablet to lock up and must be powered off by holding the power button.

---Thanks---

The Backtrack Team -- for coming up with an amazing security distro

The G-TabDevs Team -- for the vegan 5.1 Rom

Pershoot -- for maintaining the 1.4 kernel for the gtab and hopefully adding support for needed features =)

Sorry for the flash in the pictures