Differences between revisions 2 and 3
Revision 2 as of 2012-08-05 20:34:35
Size: 2260
Editor: PaulWise
Comment: use a redirector
Revision 3 as of 2012-08-05 21:00:45
Size: 2097
Editor: Calinou
Comment: Noone cares about you. Keep personal info on your user page.
Deletions are marked like this. Additions are marked like this.
Line 66: Line 66:
== About Author ==
 * Twitter account: [[https://twitter.com/hpsaturn|@hpsaturn]]
 * Blog and more info: [[http://devel.androidsith.com|devel.androidsith.com]]

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

Requeriments

  • Root HTC G1
  • SDK Tools (Fastboot tool)
  • NDK Tools (optional)
  • Debian in PC
  • MicroSD 8G or higher

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

  • fat32 (android)
  • ext3 (android apps and stuff if you got app2sd)
  • ext3 (debian)

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