[G1 Android Development] damageless:
Hello all,

I've been trying for some time now to get Debian to work on the Haykuro bulds, but I can't seem to get things to mount. Anybody have any ideas?

This is the script that is supposed to start it up:

=============SCRIPT START==============

clear

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

echo "Android Filesytem remounted as read/write"

export kit=/sdcard/debian

export bin=/system/xbin/bb

export mnt=/data/local/mnt

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

export TERM=linux

export HOME=/root

busybox insmod ext2

mknod /dev/loop2 b 7 0

clear

mount -o loop,noatime $kit/debian.img $mnt

mount -t devpts devpts $mnt/dev/pts

mount -t proc proc $mnt/proc

mount -t sysfs sysfs $mnt/sys

sleep 1

echo "Starting init process"

sleep 1

echo "INIT: Debian booting....."

sleep 1

echo "Running Linux Kernel"

sysctl -w net.ipv4.ip_forward=1

sleep 1

echo "AutoMounter started"

sleep 1

echo "Type EXIT to end session"

echo "Make sure you do a proper EXIT for a clean kill of Debian!"

echo " "

chroot $mnt /bin/bash

busybox umount -f /data/local/mnt/dev/pts /data/local/mnt/proc /data/local/mnt/sys /data/local/mnt

echo "Filesystems have unmounted"

sleep 3

busybox losetup -d /dev/block/loop2

===============END SCRIPT==================

This is the result I get when I run it:

===============RUN SCRIPT START=============

←[H←[JAndroid Filesytem remounted as read/write

insmod: /lib/modules/2.6.27-04102009-daproy: No such file or directory

insmod: /lib/modules: No such file or directory

insmod: ext2.ko: module not found

mknod: /dev/loop2: File exists

←[H←[J

mount: mounting /sdcard/debian/debian.img on /data/local/mnt failed: Block devic

e required

mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or direct

ory

mount: mounting proc on /data/local/mnt/proc failed: No such file or directory

mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory

Custom Linux Pseudo Bootstrapper V1.0 - by Mark Walker

WEB: http://www.androidfanatic.com

EML: admin@androidfanatic.com

Starting init process

INIT: Debian booting.....

Running Linux Kernel

net.ipv4.ip_forward = 1

AutoMounter started

Type EXIT to end session

Make sure you do a proper EXIT for a clean kill of Debian!

chroot: cannot execute /bin/bash: No such file or directory

umount: forced umount of /data/local/mnt/dev/pts failed!

umount: cannot umount /data/local/mnt/dev/pts: No such file or directory

umount: forced umount of /data/local/mnt/proc failed!

umount: cannot umount /data/local/mnt/proc: No such file or directory

umount: forced umount of /data/local/mnt/sys failed!

umount: cannot umount /data/local/mnt/sys: No such file or directory

umount: forced umount of /data/local/mnt failed!

umount: cannot umount /data/local/mnt: Invalid argument

Filesystems have unmounted

losetup: : No such file or directory

Loopback device shutdown - success

==============End===============

I was hoping someone could help me out with this. I would really appreciate it. I am running 5.0.1G (Haykuro's build). I have tried asking him, but neither of us have the knowledge of how to fix the problems.

Thanks.