Differences between revisions 5 and 6
Revision 5 as of 2021-07-23 14:35:26
Size: 2102
Comment: fix typo
Revision 6 as of 2021-07-24 03:17:06
Size: 2144
Editor: PaulWise
Comment: add todo
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
ToDo: merge this page with ChrootOnAndroid
Line 2: Line 4:

ToDo: merge this page with ChrootOnAndroid

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://httpredir.debian.org/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