[Droid Eris Android Development] composerdude:
EDIT [02/14/2010]:

Please see mjgdroids FINISHED PORT HERE.Make sure to thank him and/or donate to mjgdroid.

EDIT:

MAKE SURE YOUR ROM SUPPORTS PARTITIONS ON YOUR SD! YOU CAN USUALLY FIND THIS INFO IN YOUR ROMS FAQ.

I'm currently looking for a work-around. Mounting EXT3 still works in the rooted terminal, but that doesn't help Android see your FAT partition.

Here it is folks, working instructions to get Debian Lenny running on your Droid Eris! I say that it's 90% complete because I do not yet have fully functioning MeeGo, I hope to resolve the issue sometime this weekend. Otherwise, all is well. I'm releasing the instructions so that others in the community can contribute.

Thanks to ban_dover for a lot of initial work. For author credit, other contributions, and the original thread leading up to my fix, see http://xdaforums.com/showthread.php?t=748094. If there is ANYONE else who needs to be credited here, PLEASE pm me and I'll edit this post.

Also, if you're wondering "Why Debian Lenny?" it was readily available and already set up for ARMv5 and up. There are also available MeeGo binaries for Lenny. WOOHOO! Everybody's life is easier.

EDIT: I've released what I consider to be an unstable/incomplete RAW image. I will not link to unstable images in this post, you can download it on page 2 of thread. This image can be used to skip both step 1 and converting the image from QCOW to RAW.

1. Create ARM image containing Debian Lenny

In Linux command line

- Download Debian ARM Installer

wget http://ftp.de.debian.org/debian/dis...el/current/images/versatile/netboot/initrd.gz

wget http://ftp.de.debian.org/debian/dis.../versatile/netboot/vmlinuz-2.6.26-2-versatile

- Create disk image

qemu-img create -f qcow deb-arm.img 4G

- Run QEMU VM to run Debian ARM Installer

qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.26-2-versatile -hda deb-arm.img -initrd initrd.gz -append "root=/dev/ram" -m 256

- In Debian installer, follow prompts

I chose the following user access, root-pass:debian91, user:debian and pass:debian91

Install desired defaults. I initially went with desktop environment; core environment may be best for MeeGo

- Reboot VM ONCE to permit it to statisfy any changed dependencies

2. Create filesystem on phone and copy Lenny

In Linux SUPER-USER command line

- Backup SDCARD if necessary

- Enter superuser mode

"sudo sh" or "sudo bash"

- Partition SDCARD

Use partition editor of choice (I used GParted)

FAT must be first partition

Create second partition as ext3

- Mount EXT3 partition

mkdir sd

mount -t ext3 /dev/sdb2 sd

- Convert QCOW image to RAW image

qemu-img convert deb-arm.img -O raw deb-arm.raw

- Mount RAW image as loop

mkdir image

mount -t ext3 deb-arm.raw image -o loop,offset=32256

- Copy image contents to EXT3 partition on SDCARD

cp -r image/* sd

- Unmount both SDCARD and RAW image

- umount deb-arm.raw && umount /dev/sdb2

3. Bind necessary nodes and create chroot jail

In eiter ADB shell or in rooted phone command line (either method MUST BE SUPERUSER!!!)

- Enter superuser mode

"su" (make sure to accept and remember if asked on rooted phone; also not sure how to superuser in ADB shell)

(NOTE: The folowing commands should use "busybox" as a prefix if using ADB shell in terminal)

- Mount EXT3 partition (should be /dev/block/mmcblk0p2)

mkdir /data/local/debian

mount -t ext3 /dev/block/mmcblk0p2 /data/local/debian

- Bind the necessary nodes

mount --bind /dev/pts /data/local/debian/dev/pts

mount --bind /proc /data/local/debian/proc

mount --bind /sys /data/local/debian/sys

sysctl -w net.ipv4.ip_forward=1

- Enter into Debian system

chroot /data/local/debian /bin/bash

4. Installing MeeGo and opening an Xsession through VNC

- COMING SOON!! (like, over the weekend)

EDIT: MINOR SETBACK DUE TO FROYO NOT SUPPORTING PARTITIONED SDCARDS. WORKING WITH DEVS TO RESOLVE.

Connecting chroot to VNC

Running MeeGo environment

- Why Not Now

Finding the best way to get an xserver on Android... possibly without VNC

Seeing which is better, install MeeGo before copying to SDCARD, or after

- Possible future: adapting Lenny to favorite distro flavor

- This would take a lot more of my time, and those who want to convert it to ubuntu can google it more easily