Simple HowTo Debian in Android HTC G1 without chroot (Native)

Requeriments

Quick HowTo

sudo apt-get install debootstrap gparted

Create Partition table

in gparted select your sdcard and select it on the top right menu 3 partitions are needed

Generate debootstrap

mkdir debdroid
sudo /usr/sbin/debootstrap --foreign --arch armel squeeze debdroid/ http://http.debian.net/debian

Copy debootstrap instance to MicroSd

mount /dev/sdb3 /mnt/memory  (change correct device)
sudo cp -pfr debdroid/* /mnt/memory/
umount /mnt/memory

Configure debootstrap into Android

Mount ext3 SD patition in android

adb shell
mkdir /data/mnt
mount -t ext3 /dev/block/mmcblk0p3 /data/mnt

run second stage

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
export USER=root
chroot /data/mnt /bin/bash
export LC_ALL=C
export LANGUAGE=C
export LANG=C
cd /debootstrap
./debootstrap --second-stage

configure instance

passwd root
adduser debdroid
( exit chroot and exit adb CTRL+D CTRL+D )

Download kernel image and boot debian native

wget http://www.galoula.net/fr/Tutoriels/HTC-DREAM-G1/FTP/Native_Debian/2.6.32_GALOULA-001/zImage
fastboot -c "console=tty0 no_console_suspend=1 root=/dev/mmcblk0p3 rootdelay=2 fbcon=rotate:1" boot ./zImage