http://rapidshare.com/files/388207119/debian-squeeze.img.tgz
Here is a script to chroot into it, which also cleans up when you exit. Copy it somewhere to your system, and then execute it with the arguments it asks for:
- Code: Select all
#!/bin/sh
if [ ! -f "$1" -o -z "$2" ] ; then
echo 'Proper usage is:'
echo ' runSqueeze /path/to/debian-squeeze.img /desired/location'
exit 1
fi
[ ! -d "$2" ] && mkdir -p "$2"
busybox mount -o loop "$1" "$2"
busybox mount -t proc none "$2/proc"
busybox mount -t sysfs sysfs "$2/sys"
busybox mount -t usbfs usb "$2/proc/bus/usb"
busybox mount -t tmpfs none "$2/tmp"
cp /etc/resolv.conf "$2/etc"
cp /etc/hosts "$2/etc"
ln -s /proc/mounts "$2/etc/mtab"
echo 'Type exit to quit, and help for help'
echo ' run makeDevs to populate /dev and /dev/pts'
chroot "$2"
echo 'cleaning up...'
umount "$2/tmp" "$2/proc/bus/usb" "$2/dev/pts" "$2/dev" "$2/sys" "$2/proc" "$2" 2>/dev/null
don't forget to chmod a+x it
Now how to use it?
This is a vanilla Debian system, which comes with nothing included. Once you are inside of it you use apt-get to install whatever you want. Look up any standard tutorial on compiling in Debian and you'll see the base packages you need. Probably something like this should get you started:
- Code: Select all
apt-get update
apt-get install build-essential automake autoconf aclocal libtool
For anything you want to compile, just apt-get install the dev package of any dependent libraries and you're good to go.
TIP: enable NTP so your network connection is brought up, then rm /tmp/init.d/S70dmoasd from S00user-script or S00custom-options. This gives you an extra 70MB+ memory to help in compilation.
The filesystem image is only 800MB, which you might chew through quickly. In that case refer to this tutorial on increasing its size:
http://b-rad.cc/170/wdtv-optware-tips-resizing-optbin/




