NSLU2-Linux
view · edit · print · history

SlugOS.BootstrapLE History

Hide minor edits - Show changes to markup

November 19, 2007, at 04:36 PM by fcarolo -- formatting
Changed lines 67-68 from:

''If you have rebooted after running fdisk, the device /dev/sda1 might get mounted. If so the "mkfs.ext3 /dev/sda1" command will fail. I unmounted the device with the command "umount /dev/sda1" and re-ran the mkfs command successfully.

to:

If you have rebooted after running fdisk, the device /dev/sda1 might get mounted. If so the "mkfs.ext3 /dev/sda1" command will fail. I unmounted the device with the command "umount /dev/sda1" and re-ran the mkfs command successfully.

November 19, 2007, at 04:36 PM by fcarolo -- formatting
Deleted line 60:
  1. If you have reboot after running fdisk, the device /dev/sda1 might get mounted. If so the "mkfs.ext3 /dev/sda1" command will fail. I unmounted the device with the command "umount /dev/sda1" and re-ran the mkfs command successfully.
Added lines 67-68:

''If you have rebooted after running fdisk, the device /dev/sda1 might get mounted. If so the "mkfs.ext3 /dev/sda1" command will fail. I unmounted the device with the command "umount /dev/sda1" and re-ran the mkfs command successfully.

November 17, 2007, at 04:38 AM by Robert Nocera -- /dev/sda1 is mounted after creation and reboot
Added line 61:
  1. If you have reboot after running fdisk, the device /dev/sda1 might get mounted. If so the "mkfs.ext3 /dev/sda1" command will fail. I unmounted the device with the command "umount /dev/sda1" and re-ran the mkfs command successfully.
September 28, 2007, at 08:07 AM by Chris Emerson -- Add note on ethernet setup
Added lines 159-161:

You may also need to copy /etc/modprobe.d/eth0 to etc/modprobe.d/eth0 so that the network comes up at boot.

February 24, 2007, at 12:51 AM by Sinclair --
Changed line 116 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb

to:

ar -x debootstrap-udeb_0.3.3.1_arm.udeb

December 14, 2006, at 11:24 AM by Peter Enzerink -- update debbootstrap version
Changed line 108 from:

wget http://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

to:

wget http://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3.1_arm.udeb

November 16, 2006, at 07:51 PM by fcarolo -- name change from DebianSlug to SlugOS/LE
Changed lines 1-6 from:

NOTICE: this page describes the old, manual procedure for bootstrapping Debian in a slug, using the DebianSlug kernel. Currently, if you want to install Debian in your slug it is recommended that you use debian-installer, as described in http://www.cyrius.com/debian/nslu2/.

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port (you didn't do this yet? Go here and install it first). Here's how to do it.

to:

NOTICE: this page describes the old, manual procedure for bootstrapping Debian in a slug, using the SlugOS/LE kernel (formerly know as DebianSlug). Currently, if you want to install Debian in your slug it is recommended that see the new instructions about Debian/NSLU2 and use debian-installer, as described in http://www.cyrius.com/debian/nslu2/.

Now you have a little endian SlugOS/LE image that can be used to bootstrap the offical Debian arm port (you didn't do this yet? Go here and install it first). Here's how to do it.

Changed line 8 from:
to:
Changed line 10 from:
to:
Added line 15:
  • This page describes the manual procedure to install SlugOS/LE, formerly know as DebianSlug, through a manual procedure using the debootstrap program.
Changed line 17 from:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP address of the slug may not be the same. DebianSlug will attempt to get it's IP address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP configuration you've set up in OpenSlug.
to:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP address of the slug may not be the same. SlugOS/LE will attempt to get it's IP address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP configuration you've set up in OpenSlug.
Changed lines 26-27 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a Little Endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a Little Endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

Changed lines 237-238 from:

Now configure the passwd package, set the password for root and install openssh-server, so you will be able to log into your DebianSlug after the reboot. First, configure passwd and enable the shadow passwords when asked.

to:

Now configure the passwd package, set the password for root and install openssh-server, so you will be able to log into your SlugOS/LE after the reboot. First, configure passwd and enable the shadow passwords when asked.

Changed line 271 from:

Notice (added by Petr Jakes): It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Because of above mentioned type in:

to:

Notice (added by Petr Jakes): It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after SlugOS/LE install, I was not able to boot from the 500GB HDD without following tune2fs command. Because of above mentioned type in:

Changed lines 306-307 from:

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

to:

Add your name to the SlugOS/LE Users? list. (And you might want to rm -rf /work after you've rebooted ;-)

Changed lines 309-313 from:

Installing kernel-modules (DebianSlug 3.10beta)

Notice: these instructions only apply if you are running DebianSlug after the manual bootstrap procedure. If you have installed NSLU2 using debian-installer, you should install the official Debian modules through apt-get.

If you're running DebianSlug 3.10beta and have to install additional kernel modules (USB-sound e.g.), you have to use the kernel-modules on

to:

Installing kernel-modules (SlugOS/LE 3.10beta)

Notice: these instructions only apply if you are running SlugOS/LE after the manual bootstrap procedure. If you have installed Debian/NSLU2 using debian-installer, you should install the official Debian modules through apt-get.

If you're running SlugOS/LE 3.10beta and have to install additional kernel modules (USB-sound e.g.), you have to use the kernel-modules on

Changed lines 354-355 from:

Another way to install a kernel module for DebianSlug is to manually decompress the .ipk file, copy the module to the /lib/modules/2.6.16 dir and test it.

to:

Another way to install a kernel module for SlugOS/LE is to manually decompress the .ipk file, copy the module to the /lib/modules/2.6.16 dir and test it.

Changed lines 505-506 from:

Be sure to get the little endian SlugOS (DebianSlug) firmware and NOT the big endian SlugOS (OpenSlug) firmware. If you happen to pick the big endian version and follow the instructions above (as I mistakenly did) it will manifest itself by finishing the debootstrap step entirely too quickly, and the log will report:

to:

Be sure to get the little endian SlugOS (SlugOS/LE) firmware, that may still be identified as DebianSlug, and NOT the big endian SlugOS (OpenSlug) firmware. If you happen to pick the big endian version and follow the instructions above (as I mistakenly did) it will manifest itself by finishing the debootstrap step entirely too quickly, and the log will report:

November 09, 2006, at 01:57 PM by fcarolo -- notices about debian-installer and modules
Changed line 1 from:

\\

to:
Changed lines 3-4 from:


to:
November 09, 2006, at 01:56 PM by fcarolo -- notices about debian-installer and modules
Added lines 1-4:


NOTICE: this page describes the old, manual procedure for bootstrapping Debian in a slug, using the DebianSlug kernel. Currently, if you want to install Debian in your slug it is recommended that you use debian-installer, as described in http://www.cyrius.com/debian/nslu2/.

Added lines 311-313:

Notice: these instructions only apply if you are running DebianSlug after the manual bootstrap procedure. If you have installed NSLU2 using debian-installer, you should install the official Debian modules through apt-get.

November 01, 2006, at 03:33 PM by fcarolo -- Better instructions about /etc/modules, layout fixes
Changed line 201 from:

Add the network driver explicity to etc/modules, in order to get the network port working after reboot:

to:

Add the network driver explicity to etc/modules, in order to get the network port working after reboot. Use nano to edit the file, adding the following line at the end:

Changed line 205 from:

echo "ixp400_eth dev_max_count=1" >> /etc/modules

to:

ixp400_eth dev_max_count=1

Changed lines 268-270 from:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

to:

Notice (added by Petr Jakes): It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Because of above mentioned type in:

Changed lines 271-273 from:
/sbin/tune2fs -c 0 -i 0 /dev/sda1
to:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

Added lines 274-280:

Notice (added by Steve G): If like me you tried to be clever and put /usr on a different partition to / then you will have a problem later when turnup checks for a "complete system" on /dev/sda1. The hack I did was to (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) cp /mnt/debinst/usr/sbin/chroot /mnt/debinst/sbin/chroot (:tableend:) before unmounting the filesystems. There are probably better hacks, such as creating /mnt/debinst/usr/sbin when only /dev/sda1 is mounted, and putting a dummy file called chroot in there (such that the "real" /usr mounts over it).

Deleted lines 282-284:

Steve G: If like me you tried to be clever and put /usr on a different partition to / then you will have a problem later when turnup checks for a "complete system" on /dev/sda1. The hack I did was to
cp /mnt/debinst/usr/sbin/chroot /mnt/debinst/sbin/chroot before unmounting the filesystems. There are probably better hacks, such as creating /mnt/debinst/usr/sbin when only /dev/sda1 is mounted, and putting a dummy file called chroot in there (such that the "real" /usr mounts over it).

October 28, 2006, at 06:21 PM by Steve G -- Note about \"turnup\" when /usr is in a separate partition
Changed lines 280-281 from:

If like me you tried to be clever and put /usr on a different partition to / then you will have a problem later when turnup checks for a "complete system" on /dev/sda1. The hack I did was to cp /mnt/debinst/usr/sbin/chroot /mnt/debinst/sbin/chroot before unmounting the filesystems. There are probably better hacks, such as creating /mnt/debinst/usr/sbin when only /dev/sda1 is mounted, and putting a dummy file called chroot in there (such that the "real" /usr mounts over it).

to:

Steve G: If like me you tried to be clever and put /usr on a different partition to / then you will have a problem later when turnup checks for a "complete system" on /dev/sda1. The hack I did was to
cp /mnt/debinst/usr/sbin/chroot /mnt/debinst/sbin/chroot before unmounting the filesystems. There are probably better hacks, such as creating /mnt/debinst/usr/sbin when only /dev/sda1 is mounted, and putting a dummy file called chroot in there (such that the "real" /usr mounts over it).

October 28, 2006, at 06:18 PM by Steve G -- Note about \"turnup\" when /usr is in a separate partition
Added lines 280-281:

If like me you tried to be clever and put /usr on a different partition to / then you will have a problem later when turnup checks for a "complete system" on /dev/sda1. The hack I did was to cp /mnt/debinst/usr/sbin/chroot /mnt/debinst/sbin/chroot before unmounting the filesystems. There are probably better hacks, such as creating /mnt/debinst/usr/sbin when only /dev/sda1 is mounted, and putting a dummy file called chroot in there (such that the "real" /usr mounts over it).

October 14, 2006, at 11:52 AM by Eltator -- Added a new \\\"traumatic\\\" experience under Booting problems section
Added lines 491-492:

My nslu2 also failed to load after the bootstrap. The nslu2 boots but halts just after mounting the external disk and adding swap (the last line in /var/log/messages was "kernel: EXT3? FS on sda1, internal journal"). The nslu2 does not ack pings and does not provide ssh access. After some trials, "turnup -i -f /dev/sda1 -t ext3" copied the root filesystem into sda1. When the operation finished, rebooted the nslu2 and then it suddenly worked!

October 07, 2006, at 05:10 PM by fcarolo -- Reviewed instructions about kernel modules
Changed lines 303-305 from:

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

to:

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel modules (USB-sound e.g.), you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta. There are two ways to install such modules, using dpkg or unpacking the modules manually. Both methods are described below, pick the one you feel more comfortable with.

Install using dpkg

Download the module you want to your NSLU2 using wget and install them using:

Changed lines 318-320 from:

Check the output of (replace modulename with the one you just installed)

to:

You will probably see a few warnings about missing dependencies. Ignore all warnings regarding the lack of kernel-image-2.6.16 and update-modules, but pay attention to any dependencies on other modules. This may be an indication that you'll need to install other modules to get the current one to work.

Check the output of modprobe and dmesg to see if the opreation succeeds (replace modulename with the one you just installed):

Changed lines 328-329 from:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

to:

If there are warnings about unresolved symbols, it's very likely that the new kernel module depends on another one that's not yet installed. You can check this with

Changed lines 343-347 from:

Debootstrapping Sarge

These are the differences between the thing you need to do for sid, so you still have to read the above!

Instead of using sid, run debootstrap with debian sarge:

to:

Manual install

Another way to install a kernel module for DebianSlug is to manually decompress the .ipk file, copy the module to the /lib/modules/2.6.16 dir and test it.

In order to unpack the .ipk file, you'll need ar from the binutils package. Install it if you don't have it already: Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed lines 351-354 from:
export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap
./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/
to:

apt-get install binutils

Changed line 354 from:

Don't forget to add the following to /etc/apt/sources.list:

to:

Now, after downloading the desired module, unpack the .ipk file and the data.tar.gz file inside it:

Changed lines 358-359 from:

deb http://security.debian.org/ sarge/updates main

to:

ar -x kernel-module-<module>.ipk tar xvzf data.tar.gz -C /

Changed lines 363-365 from:

Replace "openssh-server" with "ssh".

Make sure you install udev:

to:

After that, the module .ko file will be in the correct place under /lib/modules/2.6.16. From this point, you can load and test it just like if it was installed using dpkg:

Changed lines 367-368 from:

apt-get install udev

to:

modprobe -v modulename dmesg | tail

Changed line 372 from:

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

to:

If it succeeds, you'll be able to see the module loaded into the kernel:

Changed lines 375-382 from:
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-5_all.deb
dpkg -i slugimage_0.10+r58-5_all.deb
wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb
dpkg -i --force-depends devio_1.2-1_arm.deb
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-5_arm.deb
dpkg -i nslu2-utils_0.10+r58-5_arm.deb
to:

lsmod

Changed lines 378-380 from:

Or try doing it with apt-pinning, explained here: http://jaqque.sbih.org/kplug/apt-pinning.html

Replace modutils with module-init-tools (being in the chroot) :

to:

Again, if there is some dependency problem, you can use modinfo to check:

Changed lines 381-383 from:
apt-get install module-init-tools 
to:

modinfo modulename | grep depends

Changed lines 384-391 from:

Upgrade DebianSlug to newer firmware

BETA INSTRUCTIONS!

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

to:

Debootstrapping Sarge

These are the differences between the thing you need to do for sid, so you still have to read the above!

Instead of using sid, run debootstrap with debian sarge:

Changed lines 391-395 from:

turnup ram
reboot
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img
reboot

to:
export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap
./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/
Changed lines 397-398 from:

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

to:

Don't forget to add the following to /etc/apt/sources.list:

Changed lines 400-404 from:

turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot

to:
deb http://security.debian.org/ sarge/updates main
Changed lines 405-415 from:

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs

The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

to:

Replace "openssh-server" with "ssh".

Make sure you install udev:

Changed lines 411-413 from:

cp /initrd/sbin/leds /usr/bin/leds cp /initrd/etc/default/functions /etc/default/functions cp /initrd/bin/beep /bin/beep

to:

apt-get install udev

Added lines 414-484:

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-5_all.deb
dpkg -i slugimage_0.10+r58-5_all.deb
wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb
dpkg -i --force-depends devio_1.2-1_arm.deb
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-5_arm.deb
dpkg -i nslu2-utils_0.10+r58-5_arm.deb

(:tableend:)

Or try doing it with apt-pinning, explained here: http://jaqque.sbih.org/kplug/apt-pinning.html

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install module-init-tools 

(:tableend:)

Upgrade DebianSlug to newer firmware

BETA INSTRUCTIONS!

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup ram
reboot
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img
reboot (:tableend:)

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot (:tableend:)

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs

The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting) (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

cp /initrd/sbin/leds /usr/bin/leds
cp /initrd/etc/default/functions /etc/default/functions
cp /initrd/bin/beep /bin/beep

(:tableend:)

October 06, 2006, at 09:38 PM by David Barroso -- Added tzconfig
Changed lines 260-262 from:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

to:

Then select the correct timezone:

Changed line 264 from:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

to:

tzconfig

Changed lines 268-270 from:

Finally, type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

Changed lines 274-276 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

Changed lines 278-280 from:

Make the external drive with Debian on it your boot device:

to:

Finally, type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 284-286 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Added lines 290-297:

Make the external drive with Debian on it your boot device: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

turnup disk /dev/sda1 -t ext3 

(:tableend:)

October 05, 2006, at 02:22 PM by fcarolo -- Cleaned up a little, removed outdated information.
Changed line 13 from:
  • Debian releases are named for characters in the movie "Toy Story". The latest (so-called "unstable") release of Debian is called "Sid". The previous (or "stable") release was called "Sarge". The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page, which indicates where the installation for "Sarge" differs from "Sid". Most people should probably just install "Sid".
to:
  • Debian releases are named for characters in the movie "Toy Story". The latest (so-called "unstable") release of Debian is always called "Sid". The previous (or "stable") release was called "Sarge". The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page, which indicates where the installation for "Sarge" differs from "Sid". Most people should probably just install "Sid".
Changed lines 15-18 from:
  • There seems to be confusion about which debian mirror is best to use. Check the list at http://www.debian.org/mirror/list (you're looking for ones with ARM distros) and subsitute ftp.debian.org/ftp.nl.debian.org with the nearest local debian mirror. Its faster and the poor Netherlands mirror isnt stressed that much ;).
to:
  • There seems to be confusion about which Debian mirror is best to use. Check the list at http://www.debian.org/mirror/list (you're looking for ones with ARM distros) and subsitute ftp.debian.org/ftp.nl.debian.org with the nearest local debian mirror. Its faster and the poor Netherlands mirror isnt stressed that much ;).
Changed lines 21-26 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a Little Endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

Partition your hard disk if you haven't already
(Assuming you have a empty (unpartitioned) drive)
To delete partitions, type "d" inside fdisk

to:

Boot your newly flashed slug

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a Little Endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

Partition the hard drive and create filesystems

Partition your hard disk if you haven't already, assuming you have a empty (unpartitioned) drive.
To delete partitions, type "d" inside fdisk and remove the existing partitions one by one.

Changed lines 50-53 from:

Adjust the partition size to fit your needs. You might have to reboot.

to:

Adjust the partition size to fit your needs. You might have to reboot if fdisk gives you a warning message saying that the partition table could not be re-read.

Changed lines 64-69 from:

(Instruction-follower's note:) Being the victim of several reinstalls, it seems the note at the end of this document seems correct: you *really* should follow this up by using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

(don't make "turnup disk -i /dev/sda1 -t ext3" before you bootstrapped Debian - debootstrap will fail if you do this.)

to:

Notice: after the bootstrap procedure, you will need to run turnup disk in order to boot from the external hard drive. Do not skip this step, it is clearly mentioned at the end of the installation steps below.

Changed lines 77-80 from:

DHCP clients, ignore the two steps below. If you're using a static IP address, then you need to need to do the following:
1) Add a default gateway
2) Add your DNS server information.
For 1), assuming that aaa.bbb.ccc.ddd is the IP address of your router/gateway, then type:

to:

Setup your internet connection

If you are using DHCP, please ignore the two steps below. If you're using a static IP address, then you need to need to do the following:
(1) Add a default gateway
(2) Add your DNS server information.

For (1), assuming that aaa.bbb.ccc.ddd is the IP address of your router/gateway, then type:

Changed line 91 from:

For 2), if you know that your router/gateway is also a DNS server, then you can use the same address above for the address below. Otherwise, you'll have to get that information (WinXP/2k/98 in a command prompt, type ipconfig /all ) and use your ISP's DNS server. Edit the file /etc/resolv.conf and append the line below:

to:

For (2), if you know that your router/gateway is also a DNS server, then you can use the same address above for the address below. Otherwise, you'll have to get that information (WinXP/2k/98 in a command prompt, type ipconfig /all ) and use your ISP's DNS server. Edit the file /etc/resolv.conf and append the line below:

Changed lines 99-101 from:

Grab the debootstrap .udeb from a Debian mirror:

to:

Get and run the bootstrap utility, debootstrap

Grab the debootstrap .udeb from a Debian mirror (remember to look for a mirror close to you that carries the arm distribution):

Changed line 105 from:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

to:

wget http://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

Changed lines 108-109 from:

Note: The above probably won't work (file not found), so use one of the many other mirrors, like this one in the Netherlands:

to:

Extract the debrootstrap udeb:

Changed lines 113-114 from:
to:

ar -x debootstrap-udeb_0.3.3_arm.udeb tar xzvf data.tar.gz

Changed lines 117-120 from:

or like this one, in North America:

to:

Notice: previous versions of debootstrap required Perl in order to retrieve package data, but the latest version (0.3.3) includes pkgdetails to do this job, so Perl is no longer necessary.

Run debootstrap with your choice of Debian distro and mirror:

Changed lines 124-125 from:
to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian

Changed lines 129-142 from:

Extract the debrootstrap udeb:

to:

Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

As sid is unstable by definition, the results of this can vary a lot! If you get error messages, try again later when the repsitory will be eventually fixed, or think about trying to use stable (see below).

If even after downloading from ftp.nl.debian.org you see only a couple of packages retrieved, and not hundreds, try again.

Important: The bootstrap is not completed successfully until the last line is: I: Base system installed successfully.
If you do not get this line, you will not have a successful build. Error messages may be found in /mnt/debinst/debootstrap/debootstrap.log.

Final configuration

Copy in some important configuration files:

Changed lines 146-147 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb tar xzvf data.tar.gz

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname cp /etc/network/interfaces etc/network/interfaces

Changed lines 154-155 from:

Install perl, which is required by debootstrap:

to:

Notice: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration.

Copy in the kernel modules from the flash image:

Changed lines 160-161 from:

ipkg update ipkg install perl

to:

cp -a /lib/modules/* lib/modules

Changed lines 164-165 from:

Run debootstrap with your choice of Debian distro and mirror:

to:

Mount the proc filesystem:

Changed lines 168-172 from:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

The above line should be: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/debian

to:

mount -t proc proc /mnt/debinst/proc

Changed lines 170-185 from:

Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

As sid is unstable by definition, the results of this can vary a lot! If you get error messages, try again later when the repsitory will be eventually fixed, or think about trying to use stable (see below).

If even after downloading from ftp.nl.debian.org you see only a couple of packages retrieved, and not hundreds, try again.

Important: The bootstrap is not completed successfully until the last line is I: Base system installed successfully.

If you do not get this line, you will not have a successful build. Error messages may be found in /mnt/debinst/debootstrap/debootstrap.log. Did you update perl as suggested above?

Copy in some important configuration files:

to:

(:tableend:)

Now chroot into your new Debian environment for the final steps:

Changed lines 176-180 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname cp /etc/network/interfaces etc/network/interfaces

to:

cd / chroot /mnt/debinst

Changed lines 180-182 from:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

Changed lines 185-187 from:

cp -a /lib/modules/* lib/modules

to:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

Changed lines 191-193 from:

Mount the proc filesystem:

to:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Edit the inittab file. Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

Changed line 197 from:

mount -t proc proc /mnt/debinst/proc

to:

S0:2345:respawn:/sbin/getty 115200 ttyS0

Changed line 201 from:

Chroot into your new Debian environment:

to:

Add the network driver explicity to etc/modules, in order to get the network port working after reboot:

Changed lines 205-206 from:

cd / chroot /mnt/debinst

to:

echo "ixp400_eth dev_max_count=1" >> /etc/modules

Changed lines 209-212 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

to:

For more detailed setup of the network, read man interfaces and edit /etc/network/interfaces.

After debootstrapping, the debian system has no apt sources.list. Type nano /etc/apt/sources.list and prepend with:

Changed lines 216-218 from:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

Changed lines 219-221 from:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

to:

Update the Debian distro and install cron, nslu2-utils and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.

Notice: you must set the current date before running apt-get update. Otherwise gpg signature checking will fail.

To install these packages, type:

Changed lines 228-230 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

Changed lines 234-235 from:

to get networking going after reboot, the modules need to be spcified explicitly:

to:

Now configure the passwd package, set the password for root and install openssh-server, so you will be able to log into your DebianSlug after the reboot. First, configure passwd and enable the shadow passwords when asked.

Changed line 239 from:

echo "ixp400_eth dev_max_count=1" >> /etc/modules

to:

dpkg-reconfigure passwd

Changed lines 243-247 from:

for more detailed setup of the network, read man interfaces and edit /etc/network/interfaces

After debootstrapping, the debian system has no apt sources.list. Type nano /etc/apt/sources.list and prepend with:

to:

Now install openssh-server. This takes a couple of minutes, because it will generate the necessary host keys. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed line 247 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

to:

apt-get -y install openssh-server

Changed lines 251-253 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example): \\

to:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl and other apps, install locales:

Changed lines 255-257 from:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

to:

apt-get install locales dpkg-reconfigure locales

Changed lines 260-262 from:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root:

to:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

Changed line 266 from:

dpkg-reconfigure passwd

to:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

Changed lines 269-271 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

Finally, type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 276-278 from:

apt-get -y install openssh-server

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed line 282 from:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl and other apps:

to:

Make the external drive with Debian on it your boot device:

Changed lines 286-287 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Changed lines 290-293 from:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

to:

Reboot into Debian, by typing "reboot" at the prompt.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

Changed lines 301-302 from:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

to:

dpkg --force-architecture -i kernel-module-<module>.ipk depmod -a

Changed lines 306-308 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Check the output of (replace modulename with the one you just installed)

Changed lines 310-312 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

modprobe -v modulename dmesg | tail

Changed lines 314-315 from:

Make the external drive with Debian on it your boot device:

to:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

Changed lines 317-319 from:
turnup disk /dev/sda1 -t ext3 
to:

modinfo modulename | grep depends

Changed lines 320-327 from:

Reboot into Debian, by typing "reboot" at the prompt.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

to:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed lines 323-326 from:
dpkg  --force-architecture -i kernel-module-<module>.ipk
depmod -a
to:

lsmod

Changed lines 325-332 from:

Check the output of (replace modulename with the one you just installed)

to:

If one or more modules which are listed in "depends" of your module, you have to install them as described above.

Debootstrapping Sarge

These are the differences between the thing you need to do for sid, so you still have to read the above!

Instead of using sid, run debootstrap with debian sarge:

Changed lines 336-337 from:

modprobe -v modulename dmesg | tail

to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/

Changed lines 340-341 from:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

to:

Don't forget to add the following to /etc/apt/sources.list:

Changed lines 344-346 from:

modinfo modulename | grep depends

to:
deb http://security.debian.org/ sarge/updates main
Changed lines 348-349 from:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

to:

Replace "openssh-server" with "ssh".

Make sure you install udev:

Changed lines 354-356 from:

lsmod

to:
apt-get install udev
Changed lines 358-365 from:

If one or more modules which are listed in "depends" of your module, you have to install them as described above.

Debootstrapping Sarge

These are the differences between the thing you need to do for sid, so you still have to read the above!

Instead sid, run debootstrap with debian sarge:

to:

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

Changed lines 363-366 from:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.debian.org/ [If this doesn't work try:
./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/]

to:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-5_all.deb dpkg -i slugimage_0.10+r58-5_all.deb wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb dpkg -i --force-depends devio_1.2-1_arm.deb wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-5_arm.deb dpkg -i nslu2-utils_0.10+r58-5_arm.deb

Changed lines 372-373 from:

Don't forget to add the following to /etc/apt/sources.list:

to:

Or try doing it with apt-pinning, explained here: http://jaqque.sbih.org/kplug/apt-pinning.html

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed line 378 from:

deb http://security.debian.org/ sarge/updates main

to:

apt-get install module-init-tools

Deleted lines 379-404:

Replace "openssh-server" with "ssh".

Make sure you install udev:

apt-get install udev

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-5_all.deb
dpkg -i slugimage_0.10+r58-5_all.deb
wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb
dpkg -i --force-depends devio_1.2-1_arm.deb
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-5_arm.deb
dpkg -i nslu2-utils_0.10+r58-5_arm.deb

Or try doing it with apt-pinning, explained here: http://jaqque.sbih.org/kplug/apt-pinning.html

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install module-init-tools 
Changed lines 433-434 from:
to:

'''All you need to do is run turnup disk /dev/sda1 -t ext3 after bootstrapping, so the kernel in the flash will know that a new root device exists in the external drive.

October 03, 2006, at 01:26 PM by Petr Jakes --
Changed lines 290-291 from:

tune2fs -c 0 -i 0 /dev/sda1

to:

/sbin/tune2fs -c 0 -i 0 /dev/sda1

October 03, 2006, at 01:24 PM by Petr Jakes -- formating
Added lines 287-289:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

Changed lines 291-292 from:
to:

@] (:tableend:)

October 03, 2006, at 01:22 PM by Petr Jakes -- booting problems
Changed line 274 from:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl and other apps:

Added lines 283-289:

It takes long time to check the file system for big harddrives (500G) during the boot. System can not boot because of that in some cases. For example, after changing time (hwclock -w) directly after DebianSlug install, I was not able to boot from the 500GB HDD without following tune2fs command. Petr Jakes.

Because of above mentioned type in:

tune2fs -c 0 -i 0 /dev/sda1

October 01, 2006, at 01:39 PM by madbull --
Added lines 149-151:

The above line should be: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/debian

September 30, 2006, at 10:41 PM by akent --
Added lines 437-438:

I am using a micro (4gig) usb-attached hard disk as the root partition. After following all of the instructions, my nslu2 would could continue to boot with the flash filesystem. After a few trials, it looks like the disk needs a brief period to spin up. I used "turnup disk -s5 /dev/sda1 -t ext3" and everything worked properly!

September 28, 2006, at 11:27 AM by drone -- added mt-daapd to interesting packages
Added lines 464-465:

(:cellnr:) mt-daapd (:cell align=left:) aka firefly. This is an daapd server (ITunes?) I like, however its not in debian sid

September 28, 2006, at 10:34 AM by drone -- added \"green field\" on a command I missed 3 times doing bootstrap, and it confused me =)
Changed lines 223-225 from:
to:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

Changed lines 227-229 from:
to:

@] (:tableend:)

September 24, 2006, at 07:33 PM by TylerOderkirk -- Fixed filenames in Sarge dpkg commands to match wget commands
Changed line 364 from:

dpkg -i slugimage_0.10+r58-2_all.deb

to:

dpkg -i slugimage_0.10+r58-5_all.deb

Changed line 368 from:

dpkg -i nslu2-utils_0.10+r58-2_arm.deb

to:

dpkg -i nslu2-utils_0.10+r58-5_arm.deb

September 19, 2006, at 07:53 PM by henning -- more reordering, merging sections \"notes, installation notes, tips\"
Deleted line 5:
Deleted line 6:
Changed lines 299-309 from:

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs

The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

to:

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

Changed lines 307-309 from:

cp /initrd/sbin/leds /usr/bin/leds cp /initrd/etc/default/functions /etc/default/functions cp /initrd/bin/beep /bin/beep

to:

dpkg --force-architecture -i kernel-module-<module>.ipk depmod -a

Changed lines 311-319 from:

The LEDs should be operating as expected after rebooting the slug.

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

to:

Check the output of (replace modulename with the one you just installed)

Changed lines 315-316 from:

dpkg --force-architecture -i kernel-module-<module>.ipk depmod -a

to:

modprobe -v modulename dmesg | tail

Changed line 319 from:

Check the output of (replace modulename with the one you just installed)

to:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

Changed lines 322-325 from:
modprobe -v modulename
dmesg | tail
to:

modinfo modulename | grep depends

Changed lines 324-325 from:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

to:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed line 328 from:

modinfo modulename | grep depends

to:

lsmod

Deleted lines 329-334:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) lsmod (:tableend:)

Deleted lines 331-353:

Tips

  • When your Debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
  • Some packages you might find useful:

(:table border=1 cellspacing=0 width=60%:) (:cellnr:) samba (:cell align=left:) SMB File- & Print-server (:cellnr:) less (:cell align=left:) Program for viewing textfiles (:cellnr:) joe (:cell align=left:) Program for editing textfiles (aiming toward less experienced users) (:cellnr:) psmisc (:cell align=left:) contains killall (:cellnr:) apache (:cell align=left:) Apache 1.3x webserver (:cellnr:) libapache-php4 (:cell align=left:) PHP4 for Apache 1.3x (:cellnr:) proftpd (:cell align=left:) FTP Server (:cellnr:) udev (:cell align=left:) hotplug / udev filesystem (:tableend:)

Deleted line 408:

Installation Notes

Changed lines 410-433 from:
to:

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs

The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting) (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

cp /initrd/sbin/leds /usr/bin/leds
cp /initrd/etc/default/functions /etc/default/functions
cp /initrd/bin/beep /bin/beep

(:tableend:) The LEDs should be operating as expected after rebooting the slug.

Booting problems

I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

the right firmware

Added lines 438-460:

additional docs

  • When your Debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian

Interesting packages

  • Some packages you might find useful:

(:table border=1 cellspacing=0 width=60%:) (:cellnr:) samba (:cell align=left:) SMB File- & Print-server (:cellnr:) less (:cell align=left:) Program for viewing textfiles (:cellnr:) joe (:cell align=left:) Program for editing textfiles (aiming toward less experienced users) (:cellnr:) psmisc (:cell align=left:) contains killall (:cellnr:) apache (:cell align=left:) Apache 1.3x webserver (:cellnr:) libapache-php4 (:cell align=left:) PHP4 for Apache 1.3x (:cellnr:) proftpd (:cell align=left:) FTP Server (:cellnr:) udev (:cell align=left:) hotplug / udev filesystem (:tableend:)

September 19, 2006, at 07:48 PM by henning --
Changed line 305 from:

Status LEDs

to:

Status LEDs

September 19, 2006, at 07:47 PM by henning -- try to better format notes section
Changed line 305 from:

Status LEDs\\

to:

Status LEDs

September 19, 2006, at 07:44 PM by henning -- removing even more redundand info, add some stuff to the debian section, cleanup
Changed lines 134-135 from:

Before running the actualy debootstrap to d/l the packages, it is strongly suggested that you first update perl. Doing so for this contributor (DMH) would have saved many hours of frustration:

to:

Install perl, which is required by debootstrap:

Changed lines 153-165 from:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/ or (among many other mirrors...) ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://gulus.usherbrooke.ca/debian/

I: Retrieving Release
I: Retrieving Packages
I: Retrieving Packages
I: Retrieving Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...

(:tableend:)

to:
Added lines 156-157:

As sid is unstable by definition, the results of this can vary a lot! If you get error messages, try again later when the repsitory will be eventually fixed, or think about trying to use stable (see below).

Changed lines 160-163 from:

If the above fails with the following error: E: No pkgdetails available; either install perl, or build pkgdetails.c from source, just do this and try again:

Important:

to:

Important:

Added line 175:

cp /etc/network/interfaces etc/network/interfaces

Changed lines 224-225 from:

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example:

to:

to get networking going after reboot, the modules need to be spcified explicitly:

echo "ixp400_eth dev_max_count=1" >> /etc/modules

for more detailed setup of the network, read man interfaces and edit /etc/network/interfaces

After debootstrapping, the debian system has no apt sources.list. Type nano /etc/apt/sources.list and prepend with:

Changed lines 236-247 from:
  1. /etc/network/interfaces
  2. configuration file for ifup(8), ifdown(8)
  3. The loopback interface

auto lo iface lo inet loopback

  1. The NSLU2 built-in ethernet

auto eth0 iface eth0 inet dhcp

        pre-up modprobe -f ixp400
        pre-up modprobe -f ixp400_eth dev_max_count=1
to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

Changed lines 240-242 from:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use):

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example): \\

Changed lines 246-261 from:
  1. /etc/network/interfaces
  2. configuration file for ifup(8), ifdown(8)
  3. The loopback interface

auto lo iface lo inet loopback

  1. The NSLU2 built-in ethernet

auto eth0 iface eth0 inet static

        pre-up modprobe -f ixp400
        pre-up modprobe -f ixp400_eth dev_max_count=1
        address 192.168.1.77
        netmask 255.255.255.0
        gateway 192.168.1.254
to:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

Changed lines 251-252 from:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:

to:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root:

Changed line 256 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

to:

dpkg-reconfigure passwd

Changed lines 259-262 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example): \\

to:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed lines 265-267 from:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

to:

apt-get -y install openssh-server

Changed line 269 from:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root:

to:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

Changed lines 273-274 from:

dpkg-reconfigure passwd

to:

apt-get install locales dpkg-reconfigure locales

Changed lines 277-279 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 284-286 from:

apt-get -y install openssh-server

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed line 290 from:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 294-295 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Changed lines 298-300 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Reboot into Debian, by typing "reboot" at the prompt.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

Changed lines 315-317 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

cp /initrd/sbin/leds /usr/bin/leds cp /initrd/etc/default/functions /etc/default/functions cp /initrd/bin/beep /bin/beep

Changed lines 320-321 from:

Make the external drive with Debian on it your boot device:

to:

The LEDs should be operating as expected after rebooting the slug.

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

Changed lines 332-333 from:

turnup disk /dev/sda1 -t ext3

to:

dpkg --force-architecture -i kernel-module-<module>.ipk depmod -a

Changed lines 336-350 from:

Reboot into Debian, by typing "reboot" at the prompt.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Notes

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Status LEDs
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

to:

Check the output of (replace modulename with the one you just installed)

Changed lines 340-342 from:

cp /initrd/sbin/leds /usr/bin/leds cp /initrd/etc/default/functions /etc/default/functions cp /initrd/bin/beep /bin/beep

to:

modprobe -v modulename dmesg | tail

Changed lines 344-347 from:

The LEDs should be operating as expected after rebooting the slug.

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

to:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

Changed line 347 from:

apt-get install nslu2-utils

to:

modinfo modulename | grep depends

Changed lines 349-356 from:

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

to:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed lines 353-356 from:
dpkg  --force-architecture -i kernel-module-<module>.ipk
depmod -a
to:

lsmod

Deleted lines 354-372:

Check the output of (replace modulename with the one you just installed) (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

modprobe -v modulename
dmesg | tail

(:tableend:) to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) modinfo modulename | grep depends (:tableend:) Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) lsmod (:tableend:)

Changed lines 382-384 from:
to:

These are the differences between the thing you need to do for sid, so you still have to read the above!

Added lines 419-420:

Or try doing it with apt-pinning, explained here: http://jaqque.sbih.org/kplug/apt-pinning.html

Deleted lines 424-425:

dpkg -P modutils rm /etc/rcS.d/S20modutils

September 19, 2006, at 12:18 PM by henning -- remove redundant kernel modules information (there is an own, full paragraph for that)
Changed lines 369-371 from:

Kernel modules (non DebianSlug 3.10beta)
Currently there is no debian-specific feed, so if you are interested in building your own kernel you'll need to use the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

to:

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

Changed line 373 from:

dpkg --force-architecture -i kernel-module-<module>.ipk

to:

apt-get install nslu2-utils

Changed lines 375-383 from:

This will report an irrelevent dependancy error on 'update-modules', the kernel module should be ready to modprobe etc.

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) apt-get install nslu2-utils (:tableend:)

to:
September 19, 2006, at 12:16 PM by henning -- move some install commands to pre-reboot (so it\'s all more ordered)
Changed lines 316-318 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

Changed lines 320-322 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get install locales dpkg-reconfigure locales

Changed lines 325-327 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 331-333 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 337-339 from:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 341-342 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Changed lines 345-346 from:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

to:

Reboot into Debian, by typing "reboot" at the prompt.

Added lines 350-351:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

September 19, 2006, at 12:01 PM by henning -- remove unnecessary shadow creation - better do it only with dpkg-reconfigure passwd (but I am not even sure if this is really necessary?!)
Changed line 299 from:

Create /etc/shadow with:

to:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root:

Changed line 303 from:

touch /etc/shadow

to:

dpkg-reconfigure passwd

Changed lines 306-307 from:

(the file may already be there) and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed lines 312-313 from:

pwconv passwd

to:

apt-get -y install openssh-server

Changed lines 315-317 from:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

As an alternative, you can use:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 322-324 from:

dpkg-reconfigure passwd

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 327-329 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

Make the external drive with Debian on it your boot device:

Changed line 332 from:

apt-get -y install openssh-server

to:

turnup disk /dev/sda1 -t ext3

Changed lines 336-338 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

Changed lines 342-344 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get install locales dpkg-reconfigure locales

Changed lines 347-358 from:

Make the external drive with Debian on it your boot device:

to:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Notes

Status LEDs
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

Changed lines 362-364 from:

turnup disk /dev/sda1 -t ext3

to:

cp /initrd/sbin/leds /usr/bin/leds cp /initrd/etc/default/functions /etc/default/functions cp /initrd/bin/beep /bin/beep

Changed lines 367-370 from:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

The LEDs should be operating as expected after rebooting the slug.

Kernel modules (non DebianSlug 3.10beta)
Currently there is no debian-specific feed, so if you are interested in building your own kernel you'll need to use the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

Changed lines 374-377 from:
apt-get install locales
dpkg-reconfigure locales
to:

dpkg --force-architecture -i kernel-module-<module>.ipk

Changed lines 376-388 from:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Notes

Status LEDs
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.
This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

To use the LEDs anyway, execute the following commands: (You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

to:

This will report an irrelevent dependancy error on 'update-modules', the kernel module should be ready to modprobe etc.

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

Changed lines 382-386 from:
cp /initrd/sbin/leds /usr/bin/leds
cp /initrd/etc/default/functions /etc/default/functions
cp /initrd/bin/beep /bin/beep
to:

apt-get install nslu2-utils

Changed lines 384-388 from:

The LEDs should be operating as expected after rebooting the slug.

Kernel modules (non DebianSlug 3.10beta)
Currently there is no debian-specific feed, so if you are interested in building your own kernel you'll need to use the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

to:

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

Changed lines 394-397 from:

dpkg --force-architecture -i kernel-module-<module>.ipk

to:
dpkg  --force-architecture -i kernel-module-<module>.ipk
depmod -a
Changed lines 399-402 from:

This will report an irrelevent dependancy error on 'update-modules', the kernel module should be ready to modprobe etc.

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

to:

Check the output of (replace modulename with the one you just installed)

Changed lines 402-405 from:

apt-get install nslu2-utils

to:
modprobe -v modulename
dmesg | tail
Changed lines 407-414 from:

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using:

to:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

Changed lines 410-413 from:
dpkg  --force-architecture -i kernel-module-<module>.ipk
depmod -a
to:

modinfo modulename | grep depends

Changed lines 412-413 from:

Check the output of (replace modulename with the one you just installed)

to:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed lines 416-419 from:
modprobe -v modulename
dmesg | tail
to:

lsmod

Deleted lines 417-427:

to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) modinfo modulename | grep depends (:tableend:) Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) lsmod (:tableend:)

September 19, 2006, at 11:54 AM by henning -- remove strange date command which has nothing to to with apt-get
Deleted lines 289-290:

date 123218582021
for December 32, 18:58 (6:58PM) year 2021

September 10, 2006, at 11:56 AM by max -- turnup disk before debootstrap breaks Debian bootstrap process
Changed lines 71-72 from:
to:

(don't make "turnup disk -i /dev/sda1 -t ext3" before you bootstrapped Debian - debootstrap will fail if you do this.)

September 06, 2006, at 06:28 PM by Dave Hrynkiw -- Add strongly suggestion Perl to be upgraded before running upgrade
Changed lines 133-134 from:

Run debootstrap with your choice of Debian distro and mirror:

to:

Before running the actualy debootstrap to d/l the packages, it is strongly suggested that you first update perl. Doing so for this contributor (DMH) would have saved many hours of frustration:

Changed lines 138-139 from:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:

ipkg update ipkg install perl

Changed lines 141-144 from:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/ or (among many other mirrors...) ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://gulus.usherbrooke.ca/debian/

to:

(:tableend:)

Run debootstrap with your choice of Debian distro and mirror: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 148-153 from:

I: Retrieving Release I: Retrieving Packages I: Retrieving Packages I: Retrieving Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages...

to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

Added lines 151-163:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/ or (among many other mirrors...) ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://gulus.usherbrooke.ca/debian/

I: Retrieving Release
I: Retrieving Packages
I: Retrieving Packages
I: Retrieving Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
Deleted line 170:
Changed lines 177-179 from:

Error messages may be found in /mnt/debinst/debootstrap/debootstrap.log.

One solution to try is:

to:

Error messages may be found in /mnt/debinst/debootstrap/debootstrap.log. Did you update perl as suggested above?

Copy in some important configuration files:

Changed lines 183-184 from:

ipkg update ipkg install perl

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

Changed lines 189-190 from:

Copy in some important configuration files:

to:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

Changed lines 195-198 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

to:

cp -a /lib/modules/* lib/modules

Changed lines 198-200 from:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

to:

Mount the proc filesystem:

Changed line 203 from:

cp -a /lib/modules/* lib/modules

to:

mount -t proc proc /mnt/debinst/proc

Changed line 207 from:

Mount the proc filesystem:

to:

Chroot into your new Debian environment:

Changed lines 211-212 from:

mount -t proc proc /mnt/debinst/proc

to:

cd / chroot /mnt/debinst

Changed line 216 from:

Chroot into your new Debian environment:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

Changed lines 220-221 from:

cd / chroot /mnt/debinst

to:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

Changed lines 225-226 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

to:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

Changed lines 231-233 from:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

to:

S0:2345:respawn:/sbin/getty 115200 ttyS0

Changed lines 234-236 from:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

to:

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example:

Deleted lines 239-247:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

Changed lines 277-278 from:

There may be problems with apt-get-sources. Type @@nano /etc/apt/sources.list and prepend with:

to:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:

Changed line 282 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

September 06, 2006, at 03:45 PM by Dave Hrynkiw -- Emphasis added to watching results of debootstrap installation
Changed lines 159-160 from:

The bootstrap is not completed successfully until the last line is I: Base system installed successfully. Error logs may be found in /mnt/debinst/debootstrap.

to:

Important:

The bootstrap is not completed successfully until the last line is I: Base system installed successfully.

If you do not get this line, you will not have a successful build. Error messages may be found in /mnt/debinst/debootstrap/debootstrap.log.

One solution to try is:

September 06, 2006, at 09:59 AM by shiyeeshiyeedk -- added line about debootstrap not being done until it outputs message
Added lines 158-160:

The bootstrap is not completed successfully until the last line is I: Base system installed successfully. Error logs may be found in /mnt/debinst/debootstrap.

September 06, 2006, at 05:08 AM by Dave Hrynkiw --
Changed lines 264-265 from:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:

to:

There may be problems with apt-get-sources. Type @@nano /etc/apt/sources.list and prepend with:

Changed line 269 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib@@

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib

September 06, 2006, at 05:07 AM by Dave Hrynkiw --
Changed lines 264-271 from:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:
deb http://ftp.de.debian.org/debian unstable main non-free contrib

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example):
date 123218582021
for December 32, 18:58 (6:58PM) year 2021

to:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:

Changed lines 269-271 from:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib@@

Changed lines 273-277 from:

Create /etc/shadow with:

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example):
date 123218582021
for December 32, 18:58 (6:58PM) year 2021

Changed lines 281-283 from:

touch /etc/shadow

to:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

Changed lines 286-287 from:

(the file may already be there) and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

Create /etc/shadow with:

Changed lines 291-292 from:

pwconv passwd

to:

touch /etc/shadow

Changed lines 294-296 from:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

As an alternative, you can use:

to:

(the file may already be there) and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed lines 299-300 from:

dpkg-reconfigure passwd

to:

pwconv passwd

Changed lines 303-305 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

As an alternative, you can use:

Changed line 309 from:

apt-get -y install openssh-server

to:

dpkg-reconfigure passwd

Changed lines 312-315 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed lines 318-320 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get -y install openssh-server

Changed lines 322-324 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 328-330 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 334-336 from:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 338-339 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 342-352:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

September 05, 2006, at 05:33 PM by Marc-André -- update file name for sarge
Changed line 472 from:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-2_all.deb

to:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-5_all.deb

Changed line 476 from:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-2_arm.deb

to:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-5_arm.deb

September 05, 2006, at 06:12 AM by Dave Hrynkiw -- minor step correction
Changed lines 54-57 from:

(Instruction-follower's note:) Being the victim of several reinstalls, it seems the note at the end of this document seems correct: you *really* should follow this up by using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

to:
Added lines 67-71:

(Instruction-follower's note:) Being the victim of several reinstalls, it seems the note at the end of this document seems correct: you *really* should follow this up by using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

September 05, 2006, at 05:48 AM by Dave Hrynkiw -- Fix bad d/l link
Changed line 140 from:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://sluglug.ucsc.edu/debian/

to:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://gulus.usherbrooke.ca/debian/

September 04, 2006, at 06:44 PM by Dave Hrynkiw -- Added some non-UK mirror examples for the lazy
Deleted lines 104-107:

Note: The above probably won't work (file not found), so try this, or a similar from the others in the mirrors list:

wget ftp://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb
Changed lines 106-107 from:

Extract the debrootstrap udeb:

to:

Note: The above probably won't work (file not found), so use one of the many other mirrors, like this one in the Netherlands:

Changed lines 110-111 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb tar xzvf data.tar.gz

to:
Changed lines 113-114 from:

Run debootstrap with your choice of Debian distro and mirror:

to:

or like this one, in North America:

Changed lines 117-118 from:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:
Changed lines 119-120 from:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

to:

(:tableend:)

Extract the debrootstrap udeb: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 125-130 from:

I: Retrieving Release I: Retrieving Packages I: Retrieving Packages I: Retrieving Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages...

to:

ar -x debootstrap-udeb_0.3.3_arm.udeb tar xzvf data.tar.gz

Changed lines 129-133 from:

Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

If even after downloading from ftp.nl.debian.org you see only a couple of packages retrieved, and not hundreds, try again.

If the above fails with the following error: E: No pkgdetails available; either install perl, or build pkgdetails.c from source, just do this and try again:

to:

Run debootstrap with your choice of Debian distro and mirror:

Changed lines 134-135 from:

ipkg update ipkg install perl

to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

Changed lines 137-141 from:

(:tableend:)

Copy in some important configuration files: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

to:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/ or (among many other mirrors...) ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://sluglug.ucsc.edu/debian/

Changed lines 142-145 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

to:

I: Retrieving Release I: Retrieving Packages I: Retrieving Packages I: Retrieving Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages...

Changed lines 150-152 from:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

to:

Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

If even after downloading from ftp.nl.debian.org you see only a couple of packages retrieved, and not hundreds, try again.

If the above fails with the following error: E: No pkgdetails available; either install perl, or build pkgdetails.c from source, just do this and try again:

Changed lines 158-159 from:

cp -a /lib/modules/* lib/modules

to:

ipkg update ipkg install perl

Changed line 163 from:

Mount the proc filesystem:

to:

Copy in some important configuration files:

Changed lines 167-170 from:

mount -t proc proc /mnt/debinst/proc

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

Changed lines 173-174 from:

Chroot into your new Debian environment:

to:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

Changed lines 179-180 from:

cd / chroot /mnt/debinst

to:

cp -a /lib/modules/* lib/modules

Changed line 183 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

to:

Mount the proc filesystem:

Changed lines 187-189 from:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

to:

mount -t proc proc /mnt/debinst/proc

Changed lines 190-192 from:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

to:

Chroot into your new Debian environment:

Changed lines 195-196 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

cd / chroot /mnt/debinst

Changed lines 200-201 from:

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

Changed lines 204-215 from:
  1. /etc/network/interfaces
  2. configuration file for ifup(8), ifdown(8)
  3. The loopback interface

auto lo iface lo inet loopback

  1. The NSLU2 built-in ethernet

auto eth0 iface eth0 inet dhcp

        pre-up modprobe -f ixp400
        pre-up modprobe -f ixp400_eth dev_max_count=1
to:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

Changed lines 209-210 from:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use):

to:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

Added lines 215-223:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

Changed line 233 from:

iface eth0 inet static

to:

iface eth0 inet dhcp

Deleted lines 235-238:
        address 192.168.1.77
        netmask 255.255.255.0
        gateway 192.168.1.254
Changed lines 238-245 from:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:
deb http://ftp.de.debian.org/debian unstable main non-free contrib

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example):
date 123218582021
for December 32, 18:58 (6:58PM) year 2021

to:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use):

Changed lines 243-245 from:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

to:
  1. /etc/network/interfaces
  2. configuration file for ifup(8), ifdown(8)
  3. The loopback interface

auto lo iface lo inet loopback

  1. The NSLU2 built-in ethernet

auto eth0 iface eth0 inet static

        pre-up modprobe -f ixp400
        pre-up modprobe -f ixp400_eth dev_max_count=1
        address 192.168.1.77
        netmask 255.255.255.0
        gateway 192.168.1.254
Changed lines 261-262 from:

Create /etc/shadow with:

to:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:
deb http://ftp.de.debian.org/debian unstable main non-free contrib

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail. To do this, type (for example):
date 123218582021
for December 32, 18:58 (6:58PM) year 2021

Changed lines 272-274 from:

touch /etc/shadow

to:

apt-get update apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

Changed lines 277-278 from:

(the file may already be there) and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

Create /etc/shadow with:

Changed lines 282-283 from:

pwconv passwd

to:

touch /etc/shadow

Changed lines 285-287 from:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

As an alternative, you can use:

to:

(the file may already be there) and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed lines 290-291 from:

dpkg-reconfigure passwd

to:

pwconv passwd

Changed lines 294-296 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

As an alternative, you can use:

Changed line 300 from:

apt-get -y install openssh-server

to:

dpkg-reconfigure passwd

Changed lines 303-306 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed lines 309-311 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get -y install openssh-server

Changed lines 313-315 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 319-321 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 325-327 from:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 329-330 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 333-343:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

September 04, 2006, at 10:31 AM by Dave Hrynkiw --
Changed line 105 from:

Note: The above probably won't work (file not found), so try:

to:

Note: The above probably won't work (file not found), so try this, or a similar from the others in the mirrors list:

September 04, 2006, at 10:28 AM by Dave Hrynkiw --
Changed line 18 from:
  http://www.debian.org/mirror/list
to:
  http://www.debian.org/mirror/list (you're looking for ones with ARM distros)
September 04, 2006, at 10:25 AM by Dave Hrynkiw --
Changed lines 27-30 from:

(Addendum from a user:) From several reinstalls, it seems the note at the end of this document seems correct: you *really* should set up your boot HD using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

to:
Added lines 54-57:

(Instruction-follower's note:) Being the victim of several reinstalls, it seems the note at the end of this document seems correct: you *really* should follow this up by using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

September 04, 2006, at 10:22 AM by Dave Hrynkiw -- Repeat link to http://www.slug-firmware.net/s-dls.php
Changed lines 1-2 from:

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port. Here's how to do it.

to:

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port (you didn't do this yet? Go here and install it first). Here's how to do it.

September 03, 2006, at 04:50 PM by Dave Hrynkiw -- Reinforcing setting up the boot HD params
Added lines 27-30:

(Addendum from a user:) From several reinstalls, it seems the note at the end of this document seems correct: you *really* should set up your boot HD using: "turnup disk -i /dev/sda1 -t ext3" as mentioned below under "booting problems".

Changed line 104 from:

The above probably won't work (file not found), so try:

to:

Note: The above probably won't work (file not found), so try:

Changed line 126 from:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:\\

to:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:\\

September 01, 2006, at 06:12 AM by ST -- added note about local debian mirrors
Changed lines 17-20 from:
to:
  • There seems to be confusion about which debian mirror is best to use. Check the list at http://www.debian.org/mirror/list and subsitute ftp.debian.org/ftp.nl.debian.org with the nearest local debian mirror. Its faster and the poor Netherlands mirror isnt stressed that much ;).
August 31, 2006, at 02:15 PM by Tom Gross -- I had to download from ftp.nl.debian.org twice before getting all the \"stuff\" (August 30, 2006)
Added lines 132-133:

If even after downloading from ftp.nl.debian.org you see only a couple of packages retrieved, and not hundreds, try again.

August 31, 2006, at 02:12 PM by Tom Gross -- I am new to Debian and found the references to \"sid\" and \"sarge\" extremely confusing. I tried to install \"sarge\" first without success. I think we should instruct people to install \"sid\".
Changed line 15 from:
  • The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.
to:
  • Debian releases are named for characters in the movie "Toy Story". The latest (so-called "unstable") release of Debian is called "Sid". The previous (or "stable") release was called "Sarge". The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page, which indicates where the installation for "Sarge" differs from "Sid". Most people should probably just install "Sid".
August 27, 2006, at 04:43 PM by es -- remark concerning booting problems
Added lines 360-362:

Booting problems
I followed the above instructions, but my nslu2 failed to boot afterwards. However, after doing a "turnup -i /dev/sda1 -t ext3", erasing the content of the partition "mkfs.ext3 /dev/sda1" and debootstrapping again everything worked fine. Could it be, that "turnup -i" writes the boot sector of the hard drive?

August 21, 2006, at 04:02 AM by jamesphasespacecom -- added ixp400_eth option to /etc/network/interface file. Fixes ethernet...
Changed line 213 from:
        pre-up modprobe -f ixp400_eth
to:
        pre-up modprobe -f ixp400_eth dev_max_count=1
Changed line 232 from:
        pre-up modprobe -f ixp400_eth
to:
        pre-up modprobe -f ixp400_eth dev_max_count=1
August 10, 2006, at 12:44 PM by Lionel -- Update to solve a minor error
Changed line 132 from:

Copy in some important configuration files:

to:

If the above fails with the following error: E: No pkgdetails available; either install perl, or build pkgdetails.c from source, just do this and try again:

Changed lines 136-139 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

to:

ipkg update ipkg install perl

Changed lines 140-142 from:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

to:

Copy in some important configuration files:

Changed lines 145-148 from:

cp -a /lib/modules/* lib/modules

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

Changed lines 151-152 from:

Mount the proc filesystem:

to:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Copy in the kernel modules:

Changed line 157 from:

mount -t proc proc /mnt/debinst/proc

to:

cp -a /lib/modules/* lib/modules

Changed line 161 from:

Chroot into your new Debian environment:

to:

Mount the proc filesystem:

Changed lines 165-166 from:

cd / chroot /mnt/debinst

to:

mount -t proc proc /mnt/debinst/proc

Changed line 169 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

to:

Chroot into your new Debian environment:

Changed lines 173-175 from:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

to:

cd / chroot /mnt/debinst

Changed lines 177-179 from:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

Changed lines 182-184 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0

Changed lines 187-189 from:

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example:

to:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

Added lines 193-201:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.
For DHCP use the following as an example: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

August 07, 2006, at 04:25 AM by Rob Lockhart -- more details regarding /etc/network/interfaces editing file
Changed line 188 from:

Type: nano /etc/network/interfaces\\

to:

Type: nano /etc/network/interfaces and enter in the contents shown below, depending on whether you have a static or dynamic (via DHCP) IP address.\\

August 07, 2006, at 04:22 AM by Rob Lockhart -- change \"Y\" to \'\'\'Y\'\'\'
Changed lines 178-179 from:

followed by a ^X (control-X) to get out of nano. Be sure you type "Y" when asked to save the file.

to:

followed by a ^X (control-X) to get out of nano. Be sure you type Y when asked to save the file.

August 07, 2006, at 04:20 AM by Rob Lockhart -- more details regarding nano edits just for clarity
Changed line 169 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout) by typing: nano /etc/fstab and type in the contents below:

Deleted line 172:

nano /etc/fstab

Deleted line 175:
Changed lines 178-179 from:

followed by a ^X (control-X) to get out of nano.

to:

followed by a ^X (control-X) to get out of nano. Be sure you type "Y" when asked to save the file.

August 07, 2006, at 04:16 AM by Rob Lockhart -- minor grammatical edits
Changed line 24 from:

Partition your harddisk if you haven't already\\

to:

Partition your hard disk if you haven't already\\

Changed line 61 from:

Mount the harddrives filesystem:

to:

Mount the hard drive(s) filesystem:

Changed lines 130-131 from:

Depending on you network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

to:

Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

Changed lines 377-378 from:

Modprobe should automatically load dependant modules (if they're installed), so check the loaded modules:

to:

Modprobe should automatically load dependent modules (if they're installed), so check the loaded modules:

Changed line 387 from:
  • When your debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
to:
  • When your Debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
August 06, 2006, at 07:15 PM by emm_is -- adduser now fixed
Changed line 276 from:

Next, you have to use a newer version of "adduser" (aliased by "useradd") that allows names instead of numeric entries. Type:

to:

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed line 280 from:

apt-get -y install adduser-ng

to:

apt-get -y install openssh-server

Changed lines 284-286 from:

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 290-292 from:

apt-get -y install openssh-server

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 296-298 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Make the external drive with Debian on it your boot device:

Changed lines 300-302 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

turnup disk /dev/sda1 -t ext3

Changed lines 304-306 from:

Make the external drive with Debian on it your boot device:

to:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

Changed lines 310-311 from:

turnup disk /dev/sda1 -t ext3

to:

apt-get install locales dpkg-reconfigure locales

Deleted lines 314-324:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

August 06, 2006, at 03:50 AM by Rob Lockhart --
Changed lines 274-276 from:

and enable the shadow passwords when asked. Be sure to not configure additional users just yet (do that later with ##useradd##).

to:

and enable the shadow passwords when asked.

August 06, 2006, at 12:30 AM by Rob Lockhart -- updated with latest correct instructions. THIS ONE WORKS now.
Changed line 108 from:

zcat data.tar.gz | tar xv

to:

tar xzvf data.tar.gz

Changed line 119 from:

IMPORTANT: if you get only the output below, and no "Validating Packages" (rather than a few hundred package retrievals) using ftp.debian.org please use:\\

to:

IMPORTANT: if you get only the output below (versus a few hundred package retrievals), using ftp.debian.org please use:\\

Deleted line 120:
Changed lines 142-143 from:

(note: Rob Lockhart only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

to:

(note: you may only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Changed line 182 from:

Edit /etc/inittab to disable the tty[1-6] entries (by prefixing the entries with "#") and add the following serial console entry:

to:

Type: nano /etc/inittab and disable the tty[1-6] entries by prefixing the entries with "#". Then add the following serial console entry:

Changed line 190 from:

Edit /etc/network/interfaces\\

to:

Type: nano /etc/network/interfaces\\

Changed line 232 from:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to: (hmn,snd)]

to:

There may be problems with apt-get-sources. Type nano /etc/apt/sources.list and prepend with:

Changed lines 244-245 from:

apt-get dist-upgrade apt-get install anacron popularity-contest nslu2-utils

to:

apt-get -y dist-upgrade apt-get -y install anacron popularity-contest nslu2-utils

Deleted lines 248-250:

(Isaac Wilcox found he also needed to apt-get install module-init-tools otherwise the slug failed to respond to pings after the reboot due to failing to load ixp400_eth - but maybe he did something wrong.) (Rob Lockhart noticed that the above command was not needed, it said that module-init-tools is already the newest version)

Added line 256:

(the file may already be there)

Changed lines 274-276 from:

and enable the shadow passwords when asked.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing.

to:

and enable the shadow passwords when asked. Be sure to not configure additional users just yet (do that later with ##useradd##).

Next, you have to use a newer version of "adduser" (aliased by "useradd") that allows names instead of numeric entries. Type:

Changed line 281 from:

apt-get install openssh-server

to:

apt-get -y install adduser-ng

Changed lines 285-287 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.

Changed lines 289-291 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get -y install openssh-server

Changed lines 293-295 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 299-301 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 305-307 from:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 309-310 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 313-323:

Reboot into Debian, by typing "reboot" at the prompt.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

August 05, 2006, at 07:39 PM by Rob Lockhart -- had \"cp -Ra\" but that is the same as \"cp -a\"
Changed line 149 from:

cp -Ra /lib/modules/* lib/modules

to:

cp -a /lib/modules/* lib/modules

August 05, 2006, at 07:34 PM by Rob Lockhart --
Changed lines 19-20 from:

Debian "Sid" (unstable) Bootstrap (3.10 as of Aug 2006)

to:

Debian "Sid" (unstable) Bootstrap

(v 3.10 as of Aug 2006)

August 05, 2006, at 07:33 PM by Rob Lockhart --
Changed lines 19-20 from:

Debian "Sid" (unstable) Bootstrap

to:

Debian "Sid" (unstable) Bootstrap (3.10 as of Aug 2006)

August 05, 2006, at 07:32 PM by Rob Lockhart --
Changed lines 232-235 from:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to deb http://ftp.de.debian.org/debian unstable main non-free contrib (hmn,snd)]

to:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to: (hmn,snd)]
deb http://ftp.de.debian.org/debian unstable main non-free contrib

Changed lines 419-420 from:

[If this doesn't work try: ./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/]

to:

[If this doesn't work try:
./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/]

August 05, 2006, at 05:34 PM by Rob Lockhart -- LEDs to [=LEDs=]
Changed lines 338-340 from:

The LEDs? should be operating as expected after rebooting the slug.

to:

The LEDs should be operating as expected after rebooting the slug.

August 05, 2006, at 05:33 PM by Rob Lockhart -- changed LEDs to [=LEDs=]
Changed lines 323-324 from:

Status LEDs?
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs? binary that will switch it back to green.\\

to:

Status LEDs
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs binary that will switch it back to green.\\

Changed line 328 from:

To use the LEDs? anyway, execute the following commands:

to:

To use the LEDs anyway, execute the following commands:

August 05, 2006, at 05:30 PM by Rob Lockhart --
Changed line 118 from:

IMPORTANT: if you get only the output below (rather than a few hundred packages retrievals) using ftp.debian.org please use:\\

to:

IMPORTANT: if you get only the output below, and no "Validating Packages" (rather than a few hundred package retrievals) using ftp.debian.org please use:\\

August 05, 2006, at 05:24 PM by Rob Lockhart --
Deleted line 17:
Deleted line 235:
Deleted line 348:
Deleted line 387:
August 05, 2006, at 05:21 PM by Rob Lockhart -- changed text about ftp.debian.org mirror not working
Changed line 119 from:

If this doesn't work try: \\

to:

IMPORTANT: if you get only the output below (rather than a few hundred packages retrievals) using ftp.debian.org please use:\\

Deleted lines 121-122:

IMPORTANT: if you get only the output below (rather than a few hundred packages retrievals) using ftp.debian.org please use ftp.nl.debian.org/debian

Deleted line 128:

root@NSLU2backup?:/mnt/debinst/work#]

August 05, 2006, at 05:16 PM by Rob Lockhart --
Changed lines 72-75 from:

DHCP clients, ignore these two steps below. If you're using a static IP address, then you need to need to do the following: 1) Add a default gateway, and 2) add your DNS server information. For 1), assuming that aaa.bbb.ccc.ddd is the IP address of your router/gateway, then type:

to:

DHCP clients, ignore the two steps below. If you're using a static IP address, then you need to need to do the following:
1) Add a default gateway
2) Add your DNS server information.
For 1), assuming that aaa.bbb.ccc.ddd is the IP address of your router/gateway, then type:

Changed lines 119-120 from:

If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

to:

If this doesn't work try:
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

Changed lines 146-147 from:

(note: I only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

to:

(note: Rob Lockhart only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

August 05, 2006, at 05:07 PM by Rob Lockhart -- nicer formatting
Changed line 80 from:

For 2), if you know that your router/gateway is also a DNS server, then you can use the same address above for the address below. Otherwise, you'll have to get that information (WinXP?/2k/98 in a command prompt, type ipconfig /all ) and use your ISP's DNS server. Edit the file /etc/resolv.conf and add the line below to the end of the file:

to:

For 2), if you know that your router/gateway is also a DNS server, then you can use the same address above for the address below. Otherwise, you'll have to get that information (WinXP/2k/98 in a command prompt, type ipconfig /all ) and use your ISP's DNS server. Edit the file /etc/resolv.conf and append the line below:

Added line 93:

@]

Added line 95:

[@

August 05, 2006, at 05:02 PM by Rob Lockhart -- Changed IP config for more clear understanding
Changed line 72 from:

If you're using a static IP address and a router to access the internet, you also have to do:

to:

DHCP clients, ignore these two steps below. If you're using a static IP address, then you need to need to do the following: 1) Add a default gateway, and 2) add your DNS server information. For 1), assuming that aaa.bbb.ccc.ddd is the IP address of your router/gateway, then type:

Changed lines 76-80 from:

route add default gw xxx.xxx.xxx.xxx

Add the line nameserver xxx.xxx.xxx.xxx in /etc/resolv.conf

to:

route add default gw aaa.bbb.ccc.ddd

Changed lines 79-81 from:

(Replace xxx.xxx.xxx.xxx with the IP address of your router.)

Grab the debootstrap .udeb from a Debian mirror:

to:

For 2), if you know that your router/gateway is also a DNS server, then you can use the same address above for the address below. Otherwise, you'll have to get that information (WinXP?/2k/98 in a command prompt, type ipconfig /all ) and use your ISP's DNS server. Edit the file /etc/resolv.conf and add the line below to the end of the file:

Changed lines 84-86 from:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb The above probably won't work (file not found), so try: wget ftp://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

to:

nameserver eee.fff.ggg.hhh

Changed line 88 from:

Extract the debrootstrap udeb:

to:

Grab the debootstrap .udeb from a Debian mirror:

Changed lines 92-93 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

to:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb The above probably won't work (file not found), so try: wget ftp://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

Changed line 98 from:

Run debootstrap with your choice of Debian distro and mirror:

to:

Extract the debrootstrap udeb:

Changed lines 102-103 from:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

Added lines 105-113:

(:tableend:)

Run debootstrap with your choice of Debian distro and mirror: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/
August 05, 2006, at 04:46 PM by Rob Lockhart --
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a Little Endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

August 05, 2006, at 04:44 PM by Rob Lockhart -- added Wiki about Endianness
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian OpenSlug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

August 05, 2006, at 04:39 PM by Rob Lockhart --
Changed lines 90-91 from:
to:

The above probably won't work (file not found), so try: wget ftp://ftp.nl.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

August 05, 2006, at 04:38 PM by Rob Lockhart --
Deleted line 92:
Deleted line 110:
August 05, 2006, at 04:36 PM by Rob Lockhart -- spelling fixes
Changed line 85 from:

Grab the debootstrap .udeb from a debian mirror:

to:

Grab the debootstrap .udeb from a Debian mirror:

Changed lines 90-91 from:
to:
Changed line 105 from:

Run debootstrap with your choice of debian distro and mirror:

to:

Run debootstrap with your choice of Debian distro and mirror:

Changed lines 115-116 from:

IMPORTANT: if you get only the following output (rather than a few hundred packages retrievals) using ftp.debian.org please use ftp.nl.debian.org/debian

to:

IMPORTANT: if you get only the output below (rather than a few hundred packages retrievals) using ftp.debian.org please use ftp.nl.debian.org/debian

Changed lines 127-128 from:

Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this downloads and installs many debian packages.

to:

Depending on you network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages.

August 05, 2006, at 04:28 PM by Rob Lockhart -- Wiki edit so don\'t have to approve debian mirror
Changed lines 112-113 from:

If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

to:

If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

August 05, 2006, at 04:19 PM by Rob Lockhart -- typo
Changed lines 48-49 from:

Adjust the partition size to fir your needs. You might have to reboot.

to:

Adjust the partition size to fit your needs. You might have to reboot.

August 05, 2006, at 03:57 PM by Rob Lockhart -- change of what Isaac Wilcox said, may not be needed
Changed lines 247-248 from:

(Isaac Wilcox found he also needed to apt-get install module-init-tools - otherwise the slug failed to respond to pings after the reboot due to failing to load ixp400_eth - but maybe he did something wrong.)

to:

(Isaac Wilcox found he also needed to apt-get install module-init-tools otherwise the slug failed to respond to pings after the reboot due to failing to load ixp400_eth - but maybe he did something wrong.) (Rob Lockhart noticed that the above command was not needed, it said that module-init-tools is already the newest version)

August 05, 2006, at 03:50 PM by Rob Lockhart --
Changed lines 235-236 from:

To do this, type (for example): \\date 123218582021
for December 32, 18:58 (6:58PM) 2021

to:

To do this, type (for example):
date 123218582021
for December 32, 18:58 (6:58PM) year 2021

August 05, 2006, at 03:49 PM by Rob Lockhart -- add Hard Return
Changed line 235 from:

To do this, type (for example): date 123218582021\\

to:

To do this, type (for example): \\date 123218582021\\

August 05, 2006, at 03:48 PM by Rob Lockhart -- add working example of setting date - doesn\'t work on purpose for requiring manual edit
Added lines 235-236:

To do this, type (for example): date 123218582021
for December 32, 18:58 (6:58PM) 2021

August 05, 2006, at 03:40 PM by Rob Lockhart -- minor PuTTY edits
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H'

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H' or stty erase '^?' depending on how your PuTTY is configured.

Changed lines 233-234 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.
Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail.

August 05, 2006, at 03:37 PM by Rob Lockhart -- added hard-return for \"Notice!!\"
Changed line 234 from:

Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail.

to:


Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail.

August 05, 2006, at 03:29 PM by Rob Lockhart --
Changed lines 22-24 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type export TERM=linux; stty erase '^H'

Partition your harddisk if you haven't done so yet\\

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and once logged in, type export TERM=linux; stty erase '^H'

Partition your harddisk if you haven't already\\

Changed line 26 from:

To delete partitions, type "d" inside fdisk!

to:

To delete partitions, type "d" inside fdisk

Changed lines 48-49 from:

Adjust the partition size to your needs. You might have to reboot.

to:

Adjust the partition size to fir your needs. You might have to reboot.

August 05, 2006, at 03:24 PM by Rob Lockhart -- edit so Wiki won\'t ask for approved site for deb mirror
Changed lines 230-232 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib (hmn,snd)]

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib (hmn,snd)]

August 05, 2006, at 03:22 PM by Rob Lockhart --
Changed line 186 from:

Edit /etc/network/interfaces\\

to:

Edit /etc/network/interfaces\\

Changed lines 230-233 from:

deb http://ftp.de.debian.org/debian unstable main non-free contrib (hmn,snd)]

to:

deb http://ftp.de.debian.org/debian unstable main non-free contrib (hmn,snd)]

August 05, 2006, at 03:20 PM by Rob Lockhart -- more details regarding tty disabling
Changed line 178 from:

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

to:

Edit /etc/inittab to disable the tty[1-6] entries (by prefixing the entries with "#") and add the following serial console entry:

August 05, 2006, at 03:16 PM by Rob Lockhart --
Changed line 178 from:

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

to:

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

August 05, 2006, at 03:14 PM by Rob Lockhart --
Changed lines 16-18 from:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
to:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP address of the slug may not be the same. DebianSlug will attempt to get it's IP address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP configuration you've set up in OpenSlug.
August 05, 2006, at 03:12 PM by Rob Lockhart --
Changed lines 16-18 from:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
to:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
August 05, 2006, at 03:12 PM by Rob Lockhart --
Changed lines 16-18 from:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP-server first. Make sure there's a DHCP-server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
to:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP server first. Make sure there's a DHCP server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
August 05, 2006, at 03:08 PM by Rob Lockhart -- minor grammatical fix
Changed line 24 from:

Partition your harddisk if you haven't done it yet\\

to:

Partition your harddisk if you haven't done so yet\\

August 05, 2006, at 03:07 PM by Rob Lockhart -- formatting for more clear what to type, other misspelling fixes
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type export TERM=linux; stty erase '^H'

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type export TERM=linux; stty erase '^H'

Changed line 72 from:

If you're using a static ip address and a router to access the internet, you also have to do:

to:

If you're using a static IP address and a router to access the internet, you also have to do:

Changed lines 83-84 from:

(Replace xxx.xxx.xxx.xxx with the ip address of your router.)

to:

(Replace xxx.xxx.xxx.xxx with the IP address of your router.)

Changed lines 126-127 from:

Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this download and install many debian packages.

to:

Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this downloads and installs many debian packages.

Changed lines 138-139 from:

(note: I only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

to:

(note: I only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

Changed lines 229-230 from:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to deb http://ftp.de.debian.org/debian/ unstable main non-free contrib

to:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to deb http://ftp.de.debian.org/debian unstable main non-free contrib

Changed line 247 from:

Create /etc/shadow with:

to:

Create /etc/shadow with:

Changed line 264 from:

As an alternative you can use:

to:

As an alternative, you can use:

Changed lines 271-272 from:

and enable the shadow passwords when asked for.

to:

and enable the shadow passwords when asked.

Changed lines 312-314 from:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth a read.

Add your name to the DebianSlugUsers? list. (And you might wanna rm -rf /work after you've rebooted ;-)

to:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth reading.

Add your name to the DebianSlugUsers? list. (And you might want to rm -rf /work after you've rebooted ;-)

Changed lines 332-334 from:

The leds should be operating as expected after rebooting the slug.

to:

The LEDs? should be operating as expected after rebooting the slug.

August 05, 2006, at 02:59 PM by Rob Lockhart -- minor edit of PuTTY reference
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type ( export TERM=linux; stty erase '^H' )

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type export TERM=linux; stty erase '^H'

August 05, 2006, at 02:57 PM by Rob Lockhart -- change for PuTTY reference
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY? and type ( export TERM=linux; stty erase '^H' )

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY and type ( export TERM=linux; stty erase '^H' )

August 05, 2006, at 02:52 PM by Rob Lockhart -- helpful tip for TERM and stty erase for easier edits
Changed lines 22-23 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image.

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image. I found it useful if you use PuTTY? and type ( export TERM=linux; stty erase '^H' )

August 05, 2006, at 02:47 PM by Rob Lockhart -- notes to \"cp\" for networking
Changed lines 138-139 from:
to:

(note: I only needed to copy /etc/hosts into etc/hosts for DHCP configuration)

August 04, 2006, at 09:49 PM by emm_is -- clarified notice about when debootstrap fails
Changed lines 110-112 from:

[If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/] [IMPORTANT: if you get only this output using ftp.debian.org please use ftp.nl.debian.org/debian root@NSLU2backup?:/mnt/debinst/work# ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:

@]

If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/

IMPORTANT: if you get only the following output (rather than a few hundred packages retrievals) using ftp.debian.org please use ftp.nl.debian.org/debian

[@

Deleted line 123:
July 30, 2006, at 11:41 PM by ediaz --
Changed lines 111-115 from:

@] (:tableend:) Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this download and install many debian packages.

if you get only this output using ftp.debian.org please use ftp.nl.debian.org/debian

to:

[IMPORTANT: if you get only this output using ftp.debian.org please use ftp.nl.debian.org/debian

Changed lines 119-120 from:

root@NSLU2backup?:/mnt/debinst/work#

to:

root@NSLU2backup?:/mnt/debinst/work#]

@] (:tableend:) Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this download and install many debian packages.

July 30, 2006, at 11:39 PM by ediaz --
Changed lines 111-115 from:

[if you get only this using ftp.debian.org please use ftp.nl.debian.org/debian]

to:

@] (:tableend:) Depending on you network connection this will take at least 50 minutes (even with a broadband connection). Because this download and install many debian packages.

if you get only this output using ftp.debian.org please use ftp.nl.debian.org/debian

Changed lines 123-126 from:

@] (:tableend:) Depending on you network connection this will take at least 50 minutes (even with a broadband connection).

to:

root@NSLU2backup?:/mnt/debinst/work#

July 30, 2006, at 11:36 PM by ediaz -- put a example about the errors
Added lines 111-118:

[if you get only this using ftp.debian.org please use ftp.nl.debian.org/debian] root@NSLU2backup?:/mnt/debinst/work# ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/ I: Retrieving Release I: Retrieving Packages I: Retrieving Packages I: Retrieving Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages...

July 30, 2006, at 08:06 AM by Brian --
Changed lines 11-12 from:
to:
Deleted lines 114-117:

[When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")")] [The above error causes the chroot error mentioned below, because /mnt/debinst/bin doesn't exist]

Added lines 467-473:

Installation Notes

Be sure to get the little endian SlugOS (DebianSlug) firmware and NOT the big endian SlugOS (OpenSlug) firmware. If you happen to pick the big endian version and follow the instructions above (as I mistakenly did) it will manifest itself by finishing the debootstrap step entirely too quickly, and the log will report:

/mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")")

July 30, 2006, at 02:37 AM by Brian --
Changed lines 114-115 from:

'''When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")")

to:

[When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")")]

Changed lines 117-118 from:

'''

to:
July 30, 2006, at 02:34 AM by Brian --
Changed lines 91-95 from:

[When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")") ] [The above error causes the chroot error mentioned below, because /mnt/debinst/bin doesn't exist]

to:
Added lines 114-118:

'''When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")") [The above error causes the chroot error mentioned below, because /mnt/debinst/bin doesn't exist] '''

July 30, 2006, at 02:32 AM by Brian -- Mention an error which causes the chroot error
Added lines 91-95:

[When I try this, no errors are reported, but peeking at /mnt/debinst/debootstrap/debootstrap.log shows three errors like this: /mnt/debinst/work/usr/lib/debootstrap/pkgdetails: 1: Syntax error: word unexpected (expecting ")") ] [The above error causes the chroot error mentioned below, because /mnt/debinst/bin doesn't exist]

July 28, 2006, at 10:36 AM by 1234 --
Changed line 170 from:

Edit /etc/network/interfaces

to:

Edit /etc/network/interfaces\\

Changed line 194 from:
  1. /etc/network/interfaces\\
to:
  1. /etc/network/interfaces
July 28, 2006, at 10:35 AM by 1234 --
Changed line 194 from:
  1. /etc/network/interfaces
to:
  1. /etc/network/interfaces\\
July 28, 2006, at 10:34 AM by 1234 --
Changed line 170 from:

Edit /etc/network/interfaces.\\

to:

Edit /etc/network/interfaces

July 28, 2006, at 10:31 AM by 1234 --
Deleted line 145:

[i tried this several times but evertime it ends here with this error: "chroot: cannot execute /bin/sh: No such file or directory"]

July 28, 2006, at 10:01 AM by 1234 --
Changed lines 154-155 from:

cat > /etc/fstab

to:

nano /etc/fstab proc /proc proc defaults 0 0

Changed line 158 from:

proc /proc proc defaults 0 0

to:
Changed lines 161-162 from:

followed by a ^D (control-D) to get out of cat.

to:

followed by a ^X (control-X) to get out of nano.

July 28, 2006, at 09:53 AM by 1234 --
Changed line 54 from:

mkswap /dev/sda2

to:

mkswap /dev/sda2

July 28, 2006, at 09:38 AM by 1234 --
Changed line 89 from:
to:
Changed line 108 from:

[If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.de.debian.org/debian/]

to:

[If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.nl.debian.org/debian/]

July 28, 2006, at 09:37 AM by 1234 --
Changed line 53 from:

mke2fs -j /dev/sda1 # ext3 is a safe choice

to:

mkfs.ext3 /dev/sda1 # ext3 is a safe choice

July 25, 2006, at 08:48 PM by jackson -- Replace sid with sarge in the bootstrapping column for stable distro
Changed lines 394-396 from:

Don't forget to add the following to /etc/apt/sources.list:

to:

Instead sid, run debootstrap with debian sarge: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 398-400 from:

deb http://security.debian.org/ sarge/updates main

to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.debian.org/ [If this doesn't work try: ./usr/sbin/debootstrap --arch arm sarge /mnt/debinst http://ftp.de.debian.org/debian/]

Changed lines 402-405 from:

Replace "openssh-server" with "ssh".

Make sure you install udev:

to:

(:tableend:)

Don't forget to add the following to /etc/apt/sources.list:

Changed line 407 from:

apt-get install udev

to:

deb http://security.debian.org/ sarge/updates main

Changed lines 410-412 from:

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

to:

Replace "openssh-server" with "ssh".

Make sure you install udev:

Added lines 414-418:

apt-get install udev @]

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool: [@

July 25, 2006, at 12:54 PM by Maarten Ditzel -- added dpkg-reconfigure passwd alternative
Changed line 248 from:

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing.

to:

As an alternative you can use:

Changed line 252 from:

apt-get install openssh-server

to:

dpkg-reconfigure passwd

Changed lines 255-258 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

and enable the shadow passwords when asked for.

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing.

Changed lines 261-263 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get install openssh-server

Changed lines 265-267 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 271-273 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 277-279 from:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 281-282 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 285-295:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

July 16, 2006, at 03:57 PM by Don Lubinski -- lsmopd--->lsmod
Changed line 354 from:

lsmopd

to:

lsmod

July 10, 2006, at 10:25 AM by PatrickSchneider -- Added instructions for installing kernel-modules from the DebianSlug 3.10beta feed and how to deal with problems
Added line 7:
Changed line 310 from:

Kernel modules\\

to:

Kernel modules (non DebianSlug 3.10beta)\\

Changed lines 326-346 from:

Tips

  • When your debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
  • Some packages you might find useful:

(:table border=1 cellspacing=0 width=60%:) (:cellnr:) samba (:cell align=left:) SMB File- & Print-server (:cellnr:) less (:cell align=left:) Program for viewing textfiles (:cellnr:) joe (:cell align=left:) Program for editing textfiles (aiming toward less experienced users) (:cellnr:) psmisc (:cell align=left:) contains killall (:cellnr:) apache (:cell align=left:) Apache 1.3x webserver (:cellnr:) libapache-php4 (:cell align=left:) PHP4 for Apache 1.3x (:cellnr:) proftpd (:cell align=left:) FTP Server (:cellnr:) udev (:cell align=left:) hotplug / udev filesystem

to:

Installing kernel-modules (DebianSlug 3.10beta)

If you're running DebianSlug 3.10beta and have to install additional kernel Modules (USB-sound e.g.) you have to use the kernel-modules on http://ipkg.nslu2-linux.org/feeds/debianslug/cross/3.10-beta/ . Download them to your NSLU2 using wget and install them using: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg  --force-architecture -i kernel-module-<module>.ipk
depmod -a
Changed lines 337-341 from:

Debootstrapping Sarge

Don't forget to add the following to /etc/apt/sources.list:

to:

Check the output of (replace modulename with the one you just installed) (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 341-342 from:

deb http://security.debian.org/ sarge/updates main

to:

modprobe -v modulename dmesg | tail

Changed lines 344-362 from:

Replace "openssh-server" with "ssh".

Make sure you install udev:

apt-get install udev

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-2_all.deb
dpkg -i slugimage_0.10+r58-2_all.deb
wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb
dpkg -i --force-depends devio_1.2-1_arm.deb
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-2_arm.deb
dpkg -i nslu2-utils_0.10+r58-2_arm.deb

Replace modutils with module-init-tools (being in the chroot) :

to:

(:tableend:) to see if the operation succeeds. If there are warnings about unresolved symbols, it's very likely that the kernel-module depends on another one that's not yet installed. You can check this with

Changed lines 348-352 from:
dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 
to:

modinfo modulename | grep depends

Changed lines 350-358 from:

Upgrade DebianSlug to newer firmware

BETA INSTRUCTIONS!

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

to:

Modprobe should automatically load dependant modules (if they're installed), so check the loaded modules:

Changed lines 354-358 from:

turnup ram
reboot
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img
reboot

to:

lsmopd

Changed lines 356-365 from:

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot

to:

If one or more modules which are listed in "depends" of your module, you have to install them as described above.

Tips

  • When your debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
  • Some packages you might find useful:

(:table border=1 cellspacing=0 width=60%:) (:cellnr:) samba (:cell align=left:) SMB File- & Print-server (:cellnr:) less (:cell align=left:) Program for viewing textfiles (:cellnr:) joe (:cell align=left:) Program for editing textfiles (aiming toward less experienced users) (:cellnr:) psmisc (:cell align=left:) contains killall (:cellnr:) apache (:cell align=left:) Apache 1.3x webserver (:cellnr:) libapache-php4 (:cell align=left:) PHP4 for Apache 1.3x (:cellnr:) proftpd (:cell align=left:) FTP Server (:cellnr:) udev (:cell align=left:) hotplug / udev filesystem

Added lines 382-444:

Debootstrapping Sarge

Don't forget to add the following to /etc/apt/sources.list:

deb http://security.debian.org/ sarge/updates main

Replace "openssh-server" with "ssh".

Make sure you install udev:

apt-get install udev

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-2_all.deb
dpkg -i slugimage_0.10+r58-2_all.deb
wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb
dpkg -i --force-depends devio_1.2-1_arm.deb
wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-2_arm.deb
dpkg -i nslu2-utils_0.10+r58-2_arm.deb

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 

(:tableend:)

Upgrade DebianSlug to newer firmware

BETA INSTRUCTIONS!

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup ram
reboot
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img
reboot (:tableend:)

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot (:tableend:)

July 10, 2006, at 03:32 AM by Peter Hartzler -- Clarify necessity of building one\'s own kernel.
Changed line 310 from:

Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

to:

Currently there is no debian-specific feed, so if you are interested in building your own kernel you'll need to use the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

July 09, 2006, at 09:26 PM by PatrickSchneider -- fixed typo \"debrootstrap\"
Changed line 101 from:

Run debrootstrap with your choice of debian distro and mirror:

to:

Run debootstrap with your choice of debian distro and mirror:

June 25, 2006, at 08:21 PM by jr -- corrected order of openssh install and explained why apt-get fails
Changed lines 217-218 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Notice! You must set date before running apt-get update. Otherwise gpg signature checking will fail.

Deleted line 224:

apt-get install openssh-server

Changed lines 247-249 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Installing openssh-server takes a couple of minutes. Install will fail if /etc/shadow is missing.

Changed lines 251-253 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

apt-get install openssh-server

Changed lines 255-257 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 261-263 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 267-269 from:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 271-272 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 275-285:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

June 22, 2006, at 03:13 PM by 1234 --
Changed line 88 from:
to:
Changed line 107 from:

[mirror didn't work for us: we succesfully used http://ftp.de.debian.org/debian/ instead (hmn,snd)]

to:

[If this doesn't work try: ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.de.debian.org/debian/]

Added line 145:

[i tried this several times but evertime it ends here with this error: "chroot: cannot execute /bin/sh: No such file or directory"]

June 19, 2006, at 10:21 PM by Zak -- Mention nslu2-utils readme
Added lines 277-278:

There are some Debian-specific tips in /usr/share/doc/nslu2-utils/README.Debian that are worth a read.

June 19, 2006, at 09:35 PM by Zak -- Add note on module-init-tools
Added lines 227-228:

(Isaac Wilcox found he also needed to apt-get install module-init-tools - otherwise the slug failed to respond to pings after the reboot due to failing to load ixp400_eth - but maybe he did something wrong.)

June 12, 2006, at 02:22 AM by Rob Lockhart -- 2 spaces between sentences, minor grammar fixes
Changed lines 14-16 from:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP-server first. Make sure there's a DHCP-server (e.g. your router) connected to your NSLU2. . This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
to:
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP-server first. Make sure there's a DHCP-server (e.g. your router) connected to your NSLU2. This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
Changed lines 20-21 from:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image.

to:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image.

Changed line 70 from:

If you're using a static ip address and a router to access the internet, you have also to do.

to:

If you're using a static ip address and a router to access the internet, you also have to do:

Changed line 188 from:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use).

to:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use):

Changed lines 278-279 from:

Status leds
The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.\\

to:

Status LEDs?
The status LED will continue to flash amber. There is a nslu2-tools debian package under development that will contain a LEDs? binary that will switch it back to green.\\

Changed line 283 from:

To use the leds anyway, execute the following commands:

to:

To use the LEDs? anyway, execute the following commands:

June 12, 2006, at 02:15 AM by Rob Lockhart -- Minutes -> minutes. Changed from one space to 2 spaces for sentences.
Changed lines 110-111 from:

Depending on you network connection this will take at least 50 Minutes (even with a broadband connection).

to:

Depending on you network connection this will take at least 50 minutes (even with a broadband connection).

Changed line 216 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes.

Changed line 279 from:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.\\

to:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.\\

Changed lines 376-377 from:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

to:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

Changed lines 387-388 from:

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

to:

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

June 12, 2006, at 02:10 AM by Rob Lockhart -- typo; replace \"brad-band\" with \"broadband\"
Changed lines 110-111 from:

Depending on you network connection this will take at least 50 Minutes (even with brad-band connection).

to:

Depending on you network connection this will take at least 50 Minutes (even with a broadband connection).

June 11, 2006, at 08:16 PM by Hartmut Goebel --
Changed lines 110-111 from:
to:

Depending on you network connection this will take at least 50 Minutes (even with brad-band connection).

June 11, 2006, at 06:02 PM by Hartmut Goebel --
Changed line 105 from:

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap

to:

export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap

June 08, 2006, at 11:22 PM by Ryan Cresawn -- Changed \'-force-depends\' to \'--force-depends\'.
Changed line 354 from:

dpkg -i -force-depends devio_1.2-1_arm.deb

to:

dpkg -i --force-depends devio_1.2-1_arm.deb

June 03, 2006, at 07:28 AM by mayhan --
Changed lines 77-78 from:

xxx.xxx.xxx.xxx nameserver in /etc/hosts.

to:

nameserver xxx.xxx.xxx.xxx in /etc/resolv.conf

May 25, 2006, at 08:00 AM by mayhan -- network config
Changed line 70 from:

Grab the debootstrap .udeb from a debian mirror:

to:

If you're using a static ip address and a router to access the internet, you have also to do.

Changed lines 74-75 from:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb [Didn't work for me, try: wget ftp://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb]

to:

route add default gw xxx.xxx.xxx.xxx

Add the line xxx.xxx.xxx.xxx nameserver in /etc/hosts.

Changed lines 81-82 from:

Extract the debrootstrap udeb:

to:

(Replace xxx.xxx.xxx.xxx with the ip address of your router.)

Grab the debootstrap .udeb from a debian mirror:

Changed lines 87-88 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

to:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb [Didn't work for me, try: wget ftp://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb]

Changed line 92 from:

Run debrootstrap with your choice of debian distro and mirror:

to:

Extract the debrootstrap udeb:

Changed lines 96-98 from:

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/ [mirror didn't work for us: we succesfully used http://ftp.de.debian.org/debian/ instead (hmn,snd)]

to:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

Changed line 101 from:

Copy in some important configuration files:

to:

Run debrootstrap with your choice of debian distro and mirror:

Changed lines 105-108 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

to:

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/ [mirror didn't work for us: we succesfully used http://ftp.de.debian.org/debian/ instead (hmn,snd)]

Changed line 111 from:

Copy in the kernel modules:

to:

Copy in some important configuration files:

Changed lines 115-118 from:

cp -Ra /lib/modules/* lib/modules

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

Changed line 122 from:

Mount the proc filesystem:

to:

Copy in the kernel modules:

Changed line 126 from:

mount -t proc proc /mnt/debinst/proc

to:

cp -Ra /lib/modules/* lib/modules

Changed line 130 from:

Chroot into your new Debian environment:

to:

Mount the proc filesystem:

Changed lines 134-135 from:

cd / chroot /mnt/debinst

to:

mount -t proc proc /mnt/debinst/proc

Changed line 138 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

to:

Chroot into your new Debian environment:

Changed lines 142-145 from:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0

to:

cd / chroot /mnt/debinst

Changed lines 146-148 from:

followed by a ^D (control-D) to get out of cat.

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

Changed lines 151-154 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0

Changed lines 157-159 from:

Edit /etc/network/interfaces.
For DHCP use the following as an example:

to:

followed by a ^D (control-D) to get out of cat.

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

Added lines 163-171:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Edit /etc/network/interfaces.
For DHCP use the following as an example: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

May 19, 2006, at 04:08 PM by Jim Drash --
Changed line 220 from:

and set the root password so you can get in when you SSH into it after reboot, and exit the environment (Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root):

to:

and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed lines 228-229 from:
to:

Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root.

May 19, 2006, at 03:59 PM by Jim Drash --
Changed line 220 from:

and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

and set the root password so you can get in when you SSH into it after reboot, and exit the environment (Make sure you do this or you will not be able to get into your DebianSlug without setting this password for root):

May 06, 2006, at 05:23 AM by rwhitby --
Changed line 273 from:

cp /initrd/sbin/leds /usr/sbin/leds

to:

cp /initrd/sbin/leds /usr/bin/leds

Deleted line 274:

cp /initrd/etc/init.d/zleds /etc/init.d/zleds

May 06, 2006, at 05:18 AM by rwhitby --
Changed line 336 from:

nslu2-utils is not in the stable feed, so get it directly from the pool:

to:

nslu2-utils is not in the stable feed, so get it and it's dependencies directly from the pool:

Changed lines 338-339 from:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

to:

wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/slugimage_0.10+r58-2_all.deb dpkg -i slugimage_0.10+r58-2_all.deb wget http://debian.planetmirror.com/debian/pool/main/d/devio/devio_1.2-1_arm.deb dpkg -i -force-depends devio_1.2-1_arm.deb wget http://debian.planetmirror.com/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10+r58-2_arm.deb dpkg -i nslu2-utils_0.10+r58-2_arm.deb

April 27, 2006, at 12:18 PM by hmn -- minor changes due to download issues
Deleted line 197:

<verbatim>

Changed lines 199-201 from:

</verbatim>(hmn,snd)]

to:

(hmn,snd)]

April 27, 2006, at 12:17 PM by hmn -- minor changes due to download issues
Changed lines 197-199 from:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to deb http://ftp.de.debian.org/debian/ unstable main non-free contrib (hmn,snd)]

to:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to <verbatim> deb http://ftp.de.debian.org/debian/ unstable main non-free contrib </verbatim>(hmn,snd)]

April 27, 2006, at 12:12 PM by hmn -- minor changes due to download issues
Added line 94:

[mirror didn't work for us: we succesfully used http://ftp.de.debian.org/debian/ instead (hmn,snd)]

Added lines 197-199:

[we had problems with apt-get-sources. edit /etc/apt/sources.list to point to deb http://ftp.de.debian.org/debian/ unstable main non-free contrib (hmn,snd)]

March 23, 2006, at 10:28 AM by Paul -- fdisk actions, added swap type
Added lines 39-41:

t #(change type of partition) 2 #(2nd partition) 82 #(change type to 82 - swap)

March 23, 2006, at 10:24 AM by Paul -- Debian Mirror broken? Edit debootstrap-wget
Added line 72:
March 20, 2006, at 11:08 PM by Sinclair73 --
Changed line 203 from:

Create /etc/shadow, and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

Create /etc/shadow with:

Changed lines 207-208 from:

pwconv passwd

to:

touch /etc/shadow

Changed lines 210-213 from:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed lines 214-216 from:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

to:

pwconv passwd

Changed lines 219-221 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 225-227 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd anacron umount /mnt/debinst

Changed lines 231-233 from:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

to:

Make the external drive with Debian on it your boot device:

Changed lines 235-236 from:

apt-get install locales dpkg-reconfigure locales

to:

turnup disk /dev/sda1 -t ext3

Added lines 239-249:

Reboot into Debian.

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps): (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

apt-get install locales
dpkg-reconfigure locales

(:tableend:)

March 11, 2006, at 11:46 AM by jens -- LEDs working!
Changed line 248 from:

This binary seems to be non-functional at the moment (mar 5 2006).

to:

This binary seems to be non-functional at the moment (mar 5 2006). It worked for me after a reboot (mar 10 2006).

March 09, 2006, at 12:46 PM by rwhitby --
Changed line 314 from:

nslu2-utils is not in the stable feed, so get it directly from the pool:

to:

Make sure you install udev:

Changed lines 316-317 from:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

to:

apt-get install udev

Changed lines 319-321 from:

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

to:

nslu2-utils is not in the stable feed, so get it directly from the pool:

Changed lines 321-323 from:

dpkg -P modutils rm /etc/rcS.d/S20modutils apt-get install module-init-tools

to:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

Added lines 324-332:

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 
March 09, 2006, at 12:01 PM by rwhitby --
Changed lines 307-309 from:

Replace "openssh-server" with "ssh".

nslu2-utils is not in the stable feed, so get it directly from the pool:

to:

Don't forget to add the following to /etc/apt/sources.list:

Changed lines 309-310 from:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

to:

deb http://security.debian.org/ sarge/updates main

Changed lines 312-314 from:

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

to:

Replace "openssh-server" with "ssh".

nslu2-utils is not in the stable feed, so get it directly from the pool:

Changed lines 316-318 from:

dpkg -P modutils rm /etc/rcS.d/S20modutils apt-get install module-init-tools

to:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

Added lines 319-327:

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 
March 09, 2006, at 07:44 AM by rwhitby --
Added lines 309-310:

nslu2-utils is not in the stable feed, so get it directly from the pool: [@

Changed lines 313-314 from:
to:

@]

March 09, 2006, at 07:43 AM by rwhitby --
Added lines 309-311:

wget http://ftp.debian.org/debian/pool/main/n/nslu2-utils/nslu2-utils_0.10-3_arm.deb dpkg -i nslu2-utils_0.10-3_arm.deb

March 09, 2006, at 06:26 AM by rwhitby --
Added lines 307-308:

Replace "openssh-server" with "ssh".

March 07, 2006, at 01:00 PM by Patrick Schneider -- Added note about finding out the Slugs IP-address
Added line 4:
Changed lines 11-14 from:

Note The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.

to:

Read first

  • The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.
  • If you're flashing from stock NSLU2 Firmware or Unslung, keep in mind that the IP-address of the slug may not be the same. DebianSlug will attempt to get it's IP-address from a DHCP-server first. Make sure there's a DHCP-server (e.g. your router) connected to your NSLU2. . This does not apply if you're flashing from OpenSlug or OpenDebianSlug. In that case it will use the IP-configuration you've set up in OpenSlug.
March 05, 2006, at 11:15 AM by Miro Dietiker -- confirm actuality
Changed line 245 from:

This binary seems to be non-functional at the moment (mar 9 2006).

to:

This binary seems to be non-functional at the moment (mar 5 2006).

March 05, 2006, at 11:14 AM by Miro Dietiker -- confirm actuality
Changed line 245 from:

This binary seems to be non-functional at the moment (feb 9 2006).

to:

This binary seems to be non-functional at the moment (mar 9 2006).

March 04, 2006, at 10:26 PM by bwalle -- mention root:opeNSLUg
Changed lines 331-332 from:

and then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

to:

Note that the account is root and password is opeNSLUg if the system boots from flash. Then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

March 04, 2006, at 10:19 PM by bwalle -- rm /mnt/debinst/.recovery isn\'t required any more
Deleted line 336:

rm /mnt/debinst/.recovery\\

March 04, 2006, at 10:16 PM by bwalle -- .recovery doesn\'t work
Changed lines 320-321 from:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img :

to:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img just shutdown the system with the halt command and unplug the disk. Then turn it on again. It boots into Slugos. Then:

Changed lines 324-327 from:

touch /.recovery\\

to:

turnup ram
reboot
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img\\

Changed lines 331-332 from:

then once the system boots up in Slugos

to:

and then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

Changed lines 335-336 from:

turnup ram
reboot\\

to:

turnup disk /dev/sda1 -t ext3\\

Changed lines 337-339 from:

reflash -i /mnt/debinst/home/nslu2user/newfirm.img\\

to:

rm /mnt/debinst/.recovery
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst\\

Deleted lines 342-353:

and then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
rm /mnt/debinst/.recovery
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot (:tableend:)

March 01, 2006, at 09:12 PM by Angua --
Added lines 297-298:

(:cellnr:) udev (:cell align=left:) hotplug / udev filesystem

February 26, 2006, at 01:22 PM by Patrick Schneider --
Added line 331:

reboot\\

February 22, 2006, at 07:13 PM by joschkopf --
Changed line 332 from:

reflash -i /mnt/debinst/home/nslu2user/newfirm.img

to:

reflash -i /mnt/debinst/home/nslu2user/newfirm.img\\

February 22, 2006, at 07:12 PM by joschkopf --
Added line 333:

reboot

February 16, 2006, at 09:54 PM by Patrick Schneider -- Added fdisk instructions
Changed lines 19-21 from:

Setup the filesystem and swap:

to:

Partition your harddisk if you haven't done it yet
(Assuming you have a empty (unpartitioned) drive)
To delete partitions, type "d" inside fdisk!

Changed lines 25-28 from:

mke2fs -j /dev/sda1 # ext3 is a safe choice mkswap /dev/sda2 sync; sync; sync swapon /dev/sda2

to:

fdisk /dev/sda n #(add new partition) p #(primary) 1 #(1st partition) 1 #(start sector) +3G #(end sector/partition size; this adds a partion of 3GB size which will be mounted as /) n p 2 #(2nd partition) 1 +512M #(our swap partition (512MB should be enough)) w #(write partition table) q #(quits fdisk)

Changed lines 40-41 from:

Mount the harddrives filesystem:

to:

Adjust the partition size to your needs. You might have to reboot.

Setup the filesystem and swap:

Changed lines 46-49 from:

mkdir /mnt/debinst mount /dev/sda1 /mnt/debinst mkdir /mnt/debinst/work cd /mnt/debinst/work

to:

mke2fs -j /dev/sda1 # ext3 is a safe choice mkswap /dev/sda2 sync; sync; sync swapon /dev/sda2

Changed line 53 from:

Grab the debootstrap .udeb from a debian mirror:

to:

Mount the harddrives filesystem:

Changed lines 57-60 from:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

to:

mkdir /mnt/debinst mount /dev/sda1 /mnt/debinst mkdir /mnt/debinst/work cd /mnt/debinst/work

Changed line 64 from:

Extract the debrootstrap udeb:

to:

Grab the debootstrap .udeb from a debian mirror:

Changed lines 68-69 from:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

to:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

Changed line 72 from:

Run debrootstrap with your choice of debian distro and mirror:

to:

Extract the debrootstrap udeb:

Changed lines 76-77 from:

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:

ar -x debootstrap-udeb_0.3.3_arm.udeb zcat data.tar.gz | tar xv

Changed line 81 from:

Copy in some important configuration files:

to:

Run debrootstrap with your choice of debian distro and mirror:

Changed lines 85-88 from:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

to:

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap ./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

Changed line 90 from:

Copy in the kernel modules:

to:

Copy in some important configuration files:

Changed lines 94-97 from:

cp -Ra /lib/modules/* lib/modules

to:

cd .. cp /etc/resolv.conf etc/resolv.conf cp /etc/hosts etc/hosts cp /etc/hostname etc/hostname

Changed line 101 from:

Mount the proc filesystem:

to:

Copy in the kernel modules:

Changed line 105 from:

mount -t proc proc /mnt/debinst/proc

to:

cp -Ra /lib/modules/* lib/modules

Changed line 109 from:

Chroot into your new Debian environment:

to:

Mount the proc filesystem:

Changed lines 113-114 from:

cd / chroot /mnt/debinst

to:

mount -t proc proc /mnt/debinst/proc

Changed line 117 from:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

to:

Chroot into your new Debian environment:

Changed lines 121-124 from:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0

to:

cd / chroot /mnt/debinst

Changed lines 125-127 from:

followed by a ^D (control-D) to get out of cat.

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

Changed lines 130-133 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0

Changed lines 136-138 from:

Edit /etc/network/interfaces.
For DHCP use the following as an example:

to:

followed by a ^D (control-D) to get out of cat.

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

Added lines 142-150:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Edit /etc/network/interfaces.
For DHCP use the following as an example: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

February 11, 2006, at 03:56 PM by Patrick Schneider --
Changed line 226 from:

(If you installed nslu2-utils before, this will replace the binaries with the scripts used during boot from flash)

to:

(You have to apt-get install nslu2-utils before doing this, this will set up the links in /etc/rc?.d so the scripts will be called during booting)

February 11, 2006, at 01:49 AM by Patrick Schneider -- added reboot after leds/beep copy workaround
Changed lines 236-238 from:
to:

The leds should be operating as expected after rebooting the slug.

February 09, 2006, at 05:22 PM by Patrick Schneider --
Changed lines 221-222 from:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

to:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.
This binary seems to be non-functional at the moment (feb 9 2006).

Changed lines 225-228 from:

If you are in a hurry then you can find the support files in /initrd/. Carefully update Debian by copying /initrd/sbin/leds, /initrd/etc/init.d/zleds and /initrd/etc/default/functions to their Debian root locations. While you're at it /initrd/bin/beep works too.

Kernel modules
Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

to:

To use the leds anyway, execute the following commands: (If you installed nslu2-utils before, this will replace the binaries with the scripts used during boot from flash)

Changed lines 229-234 from:

dpkg --force-architecture -i kernel-module-<module>.ipk

to:
cp /initrd/sbin/leds /usr/sbin/leds
cp /initrd/etc/default/functions /etc/default/functions
cp /initrd/etc/init.d/zleds /etc/init.d/zleds
cp /initrd/bin/beep /bin/beep
Added lines 236-242:

Kernel modules
Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) dpkg --force-architecture -i kernel-module-<module>.ipk (:tableend:)

February 09, 2006, at 04:24 PM by Patrick Schneider -- Changed instructions to make it cleaner
Changed lines 282-283 from:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file ~nslu2user/newfirm.img :

to:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file /home/nslu2user/newfirm.img :

Changed line 286 from:

touch .recovery\\

to:

touch /.recovery\\

February 06, 2006, at 12:22 PM by emm_is --
Changed lines 282-283 from:

It is probably best not to use /initrd/sbin/reflash while running Debian from disk so reboot into Slugos. To reflash an image file ~nslu2user/newfirm.img :

to:

If you prefer to remain seated while upgrading then it is probably best not to use /initrd/sbin/reflash while running Debian from disk, so reboot into Slugos instead. To reflash an image file ~nslu2user/newfirm.img :

February 06, 2006, at 12:20 PM by emm_is -- added an upgrade firmware howto (as well as tip on how to use the leds and buzzer)
Changed lines 8-9 from:
to:
Changed lines 221-222 from:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

to:

The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

If you are in a hurry then you can find the support files in /initrd/. Carefully update Debian by copying /initrd/sbin/leds, /initrd/etc/init.d/zleds and /initrd/etc/default/functions to their Debian root locations. While you're at it /initrd/bin/beep works too.

Added lines 276-310:

Upgrade DebianSlug to newer firmware

BETA INSTRUCTIONS!

It is probably best not to use /initrd/sbin/reflash while running Debian from disk so reboot into Slugos. To reflash an image file ~nslu2user/newfirm.img :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) touch .recovery
reboot (:tableend:)

then once the system boots up in Slugos

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup ram
mount /dev/sda1 /mnt/debinst
reflash -i /mnt/debinst/home/nslu2user/newfirm.img (:tableend:)

and then when the system boots up with new Slugos firmware update the Debian kernel and reboot into Debian :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:) turnup disk /dev/sda1 -t ext3
mount /dev/sda1 /mnt/debinst
rm /mnt/debinst/.recovery
cp -Ra /lib/modules/* /mnt/debinst/lib/modules
umount /mnt/debinst
reboot (:tableend:)

February 01, 2006, at 08:23 AM by SimonJosefsson -- sorry, last change not necessary
Deleted line 80:

mkdir -p lib/modules

February 01, 2006, at 08:08 AM by SimonJosefsson -- lib/modules didn\'t exist for me.
Added line 81:

mkdir -p lib/modules

January 25, 2006, at 02:03 PM by repvik --
Changed line 216 from:

Add your name to the DebianSlugUsers? list.

to:

Add your name to the DebianSlugUsers? list. (And you might wanna rm -rf /work after you've rebooted ;-)

January 25, 2006, at 01:07 AM by Patrick Schneider -- Added some starting packages in the tips-section
Added line 6:
Changed lines 230-231 from:

Chage / etc/shadow problems
If you're getting messages like

to:

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

Changed lines 235-236 from:
chage: the shadow password file is not present@@
@@chage failed with return code 15, shadow not enabled, password aging cannot be set. Continuing.
to:

apt-get install nslu2-utils

Changed lines 237-245 from:

when apt-getting packages, you should run pwconv as root. This worked for me.

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) apt-get install nslu2-utils (:tableend:)

to:

Changed lines 241-258 from:
to:
  • Some packages you might find useful:

(:table border=1 cellspacing=0 width=60%:) (:cellnr:) samba (:cell align=left:) SMB File- & Print-server (:cellnr:) less (:cell align=left:) Program for viewing textfiles (:cellnr:) joe (:cell align=left:) Program for editing textfiles (aiming toward less experienced users) (:cellnr:) psmisc (:cell align=left:) contains killall (:cellnr:) apache (:cell align=left:) Apache 1.3x webserver (:cellnr:) libapache-php4 (:cell align=left:) PHP4 for Apache 1.3x (:cellnr:) proftpd (:cell align=left:) FTP Server (:tableend:)

January 24, 2006, at 07:15 AM by emm_is -- /usr/SHARE/doc/nslu2-utils
Changed lines 246-247 from:
  • When your debian installation has booted, read /usr/doc/nslu2-utils/README.Debian
to:
  • When your debian installation has booted, read /usr/share/doc/nslu2-utils/README.Debian
January 22, 2006, at 06:37 PM by repvik --
Added line 210:

apt-get install locales

January 22, 2006, at 06:33 PM by repvik --
Added lines 244-246:

Tips

  • When your debian installation has booted, read /usr/doc/nslu2-utils/README.Debian
January 22, 2006, at 06:30 PM by repvik --
Changed lines 164-166 from:

NOTE The following step is deprecated. Install nslu2-utils instead. Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root around line 344, there are two and this is the second) and put it after that line:

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes.

Deleted lines 166-172:

rm -f /dev/shm/root <<< this line already exists; next line needs to be added rm -f /.recovery (:tableend:)

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes. (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 237-240 from:

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) :

to:

.rmrecovery problems
If /.rmrecovery isn't removed after a successful boot, do this:

Changed lines 241-245 from:
dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 
to:

apt-get install nslu2-utils

Added lines 244-256:

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 

(:tableend:)

January 22, 2006, at 06:23 PM by repvik --
Changed line 173 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Installing openssh-server takes a couple of minutes.

Changed line 180 from:

apt-get install ssh

to:

apt-get install openssh-server

January 22, 2006, at 05:59 PM by repvik --
Changed line 165 from:
to:

NOTE The following step is deprecated. Install nslu2-utils instead.

Changed line 179 from:

apt-get install anacron popularity-contest

to:

apt-get install anacron popularity-contest nslu2-utils

January 21, 2006, at 10:14 AM by repvik -- Added pwconv into the chain of instructions
Changed line 184 from:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

Create /etc/shadow, and set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Added line 188:

pwconv

January 20, 2006, at 05:07 PM by Patrick Schneider -- Added note about chage/ etc/shadow when apt-getting
Changed lines 236-239 from:

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) :

to:

Chage / etc/shadow problems
If you're getting messages like

Changed lines 240-244 from:
dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 
to:
chage: the shadow password file is not present@@
@@chage failed with return code 15, shadow not enabled, password aging cannot be set. Continuing.
Changed lines 243-257 from:
to:

when apt-getting packages, you should run pwconv as root. This worked for me.

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
rm /etc/rcS.d/S20modutils
apt-get install module-init-tools 

(:tableend:)

January 20, 2006, at 04:29 AM by ajday --
Added line 244:

rm /etc/rcS.d/S20modutils

January 18, 2006, at 06:01 AM by emm_is --
Changed line 229 from:

Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy then to the slug and install them using:

to:

Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy them to the slug and install them using:

January 18, 2006, at 04:51 AM by emm_is -- some more details on installing kernel modules
Changed lines 225-232 from:
  • The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.
  • You might want to install additional modules. Currently there is no debian-specific feed, so you'll have to build your own kernel and copy the relevant ipk files to your slug and install them locally using dpkg. dpkg is able to handle .ipk files.

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) :

to:

Status leds
The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

Kernel modules
Currently there is no debian-specific feed, so you'll have to build your own kernel using the MasterMakefile (if you haven't already) and copy the relevant ipk files to your slug. You can find the kernel modules in debianslug/tmp/deploy/ipk, copy then to the slug and install them using:

Changed lines 232-235 from:
dpkg -P modutils
apt-get install module-init-tools 
to:

dpkg --force-architecture -i kernel-module-<module>.ipk

Changed lines 234-247 from:
to:

This will report an irrelevent dependancy error on 'update-modules', the kernel module should be ready to modprobe etc.

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
apt-get install module-init-tools 

(:tableend:)

January 16, 2006, at 04:40 PM by emm_is -- gateway more likely to be *.254 rather than *.1
Changed lines 159-160 from:
        gateway 192.168.1.1
to:
        gateway 192.168.1.254
January 16, 2006, at 04:13 AM by Patrick Schneider -- Formatting
Changed lines 3-4 from:

The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.

to:

Contents

Note The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.

Changed lines 223-228 from:

NOTE: The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

NOTE2?: You might want to install additional modules. Currently there is no debian-specific feed, so you'll have to build your own kernel and copy the relevant ipk files to your slug and install them locally using dpkg. dpkg is able to handle .ipk files.

to:

Notes

  • The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.
  • You might want to install additional modules. Currently there is no debian-specific feed, so you'll have to build your own kernel and copy the relevant ipk files to your slug and install them locally using dpkg. dpkg is able to handle .ipk files.

January 16, 2006, at 01:46 AM by emm_is --
Changed line 158 from:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 344, there are two and this is the second) and put it after that line:

to:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root around line 344, there are two and this is the second) and put it after that line:

January 16, 2006, at 01:44 AM by emm_is -- the second, not the first rm -f /dev/shm/root needs to be followed by rm /.recovery
Changed line 158 from:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 150) and put it after that line:

to:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 344, there are two and this is the second) and put it after that line:

Changed lines 161-164 from:
rm -f /dev/shm/root  # this line is already existing; next line needs to be added
rm -f /.recovery
to:

rm -f /dev/shm/root <<< this line already exists; next line needs to be added rm -f /.recovery

January 15, 2006, at 11:47 AM by emm_is -- anacron needs to be killed to umount /mnt/debinst
Changed line 193 from:

killall syslogd

to:

killall syslogd anacron

January 15, 2006, at 09:57 AM by eFfeM -- added dpkg info
Changed lines 103-104 from:

followed by a ^D (control-D) to get out of cat.

to:

followed by a ^D (control-D) to get out of cat.

Changed lines 186-187 from:

type ^D (control-D) to drop out of the chroot done a lot earlier.

to:

type ^D (control-D) or exit to drop out of the chroot done a lot earlier.

Added lines 221-222:

NOTE2?: You might want to install additional modules. Currently there is no debian-specific feed, so you'll have to build your own kernel and copy the relevant ipk files to your slug and install them locally using dpkg. dpkg is able to handle .ipk files.

January 15, 2006, at 04:31 AM by emm_is -- exit followed by ctrl-d is two exits
Deleted line 182:

exit

January 14, 2006, at 01:23 PM by repvik --
Added lines 219-221:

NOTE: The status led will continue to flash amber. There is a nslu2-tools debian package under development that will contain a leds binary that will switch it back to green.

January 14, 2006, at 01:16 PM by repvik -- Added blurb about locales
Changed lines 209-213 from:

Add your name to the DebianSlugUsers? list.

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) :

to:

To get rid of the annoying LC_ALL, LANG etc. errors when running perl (and other apps):

Changed lines 213-214 from:

dpkg -P modutils apt-get install module-init-tools

to:

dpkg-reconfigure locales

Added lines 217-229:

Add your name to the DebianSlugUsers? list.

Debootstrapping Sarge

Replace modutils with module-init-tools (being in the chroot) : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
apt-get install module-init-tools 

(:tableend:)

January 14, 2006, at 08:44 AM by eFfeM -- changed order, first reboot to verify work; then add name to users list
Added lines 207-208:

Reboot into Debian.

Deleted lines 210-211:

Reboot into Debian.

January 14, 2006, at 08:38 AM by eFfeM -- added example for static IP
Changed lines 113-114 from:

Edit /etc/network/interfaces and use the following as an example:

to:

Edit /etc/network/interfaces.
For DHCP use the following as an example:

Changed line 133 from:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 150) and put it after that line:

to:

Instead if you want to use a static address (highly recommended) use the following as an example (replacing the address and gateway with the address you want to use).

Changed lines 137-138 from:

rm -f /dev/shm/root # this line is already existing; next line needs to be added rm -f /.recovery

to:
  1. /etc/network/interfaces
  2. configuration file for ifup(8), ifdown(8)
  3. The loopback interface

auto lo iface lo inet loopback

  1. The NSLU2 built-in ethernet

auto eth0 iface eth0 inet static

        pre-up modprobe -f ixp400
        pre-up modprobe -f ixp400_eth
        address 192.168.1.77
        netmask 255.255.255.0
        gateway 192.168.1.1
Changed lines 156-158 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.

to:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 150) and put it after that line:

Changed lines 162-165 from:

apt-get update apt-get dist-upgrade apt-get install anacron popularity-contest apt-get install ssh

to:

rm -f /dev/shm/root # this line is already existing; next line needs to be added rm -f /.recovery

Changed line 167 from:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment:

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.

Changed lines 171-172 from:

passwd exit

to:

apt-get update apt-get dist-upgrade apt-get install anacron popularity-contest apt-get install ssh

Changed lines 178-180 from:

type ^D (control-D) to drop out of the chroot done a lot earlier.

Unmount your filesystems:

to:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed lines 182-184 from:

umount /mnt/debinst/proc killall syslogd umount /mnt/debinst

to:

passwd exit

Changed lines 187-189 from:

Make the external drive with Debian on it your boot device:

to:

type ^D (control-D) to drop out of the chroot done a lot earlier.

Unmount your filesystems:

Changed lines 193-195 from:

turnup disk /dev/sda1 -t ext3

to:

umount /mnt/debinst/proc killall syslogd umount /mnt/debinst

Added lines 199-206:

Make the external drive with Debian on it your boot device: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

turnup disk /dev/sda1 -t ext3 

(:tableend:)

January 13, 2006, at 11:49 AM by eFfeM -- added killall syslogd to the instructions; added ^D to drop from chroot, added ^D to close cat >/etc/fstab
Changed lines 103-104 from:
to:

followed by a ^D (control-D) to get out of cat.

Added lines 161-162:

type ^D (control-D) to drop out of the chroot done a lot earlier.

Added line 168:

killall syslogd

Deleted lines 172-173:

Note: I had to do a killall syslogd before I was able to umount /mnt/debinst

January 13, 2006, at 11:37 AM by eFfeM -- added request to say yes on enabling popularity-contest
Changed line 140 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest.

January 13, 2006, at 11:29 AM by eFfeM -- some small correction for /etc/init.d/checkroot.sh
Changed line 131 from:

Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh):

to:

Update /etc/init.d/checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root (around line 150) and put it after that line:

Changed line 135 from:

rm -f /dev/shm/root

to:

rm -f /dev/shm/root # this line is already existing; next line needs to be added

January 13, 2006, at 11:18 AM by eFfeM -- added initial password
Added lines 7-8:

Boot your just reflashed image and log in using ssh as root. Note that the initial password is opeNSLUg (and not e.g. something like debiaNSLUg). Actually the bootstrap image is a little endian openslug image.

January 12, 2006, at 08:05 AM by Patrick Schneider -- corrected typo, added note about problem umounting target disk
Changed line 163 from:

umount /mnt

to:

umount /mnt/debinst

Added lines 167-168:

Note: I had to do a killall syslogd before I was able to umount /mnt/debinst

January 08, 2006, at 12:50 AM by rwhitby --
Deleted line 98:

usbfs /proc/bus/usb usbfs defaults 0 0

January 08, 2006, at 12:36 AM by rwhitby --
Changed line 51 from:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/debian/

to:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

January 08, 2006, at 12:11 AM by rwhitby --
Changed line 130 from:
  • Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh):
to:

Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh):

January 08, 2006, at 12:11 AM by rwhitby --
Changed lines 1-4 from:

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port.

Debian Bootstrap

to:

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port. Here's how to do it.

The first set of instructions on this page are relevant to the unstable ("Sid") Debian distribution. For the stable Debian distribution, see the last part of this page. Please do not get the two sets of instructions mixed up.

Debian "Sid" (unstable) Bootstrap

January 08, 2006, at 12:04 AM by rwhitby --
Changed line 137 from:

Update the Debian distro and install cron, gpg, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort.

Changed line 143 from:

apt-get install anacron popularity-contest gpg

to:

apt-get install anacron popularity-contest

Changed line 180 from:

Replace modutils with module-init-tool (being in the chroot) :

to:

Replace modutils with module-init-tools (being in the chroot) :

Changed line 185 from:

apt-get install module-init-tool

to:

apt-get install module-init-tools

January 08, 2006, at 12:02 AM by rwhitby --
Changed line 35 from:

Extract the debrootstrap udeb

to:

Extract the debrootstrap udeb:

Changed line 44 from:

Run debrootstrap with your choice of debian distro and mirror.

to:

Run debrootstrap with your choice of debian distro and mirror:

Added line 53:

Copy in some important configuration files:

Changed line 64 from:

Copy the kernel modules

to:

Copy in the kernel modules:

Changed line 72 from:

Mount the proc filesystem

to:

Mount the proc filesystem:

Changed line 80 from:

Chroot into your new Debian environment

to:

Chroot into your new Debian environment:

Changed line 89 from:

Put a working fstab file into place. You may need to tweak this config and add extra partitions depending on your partition layout.

to:

Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):

Changed line 109 from:

Edit /etc/network/interfaces and use the following as an example.

to:

Edit /etc/network/interfaces and use the following as an example:

Deleted lines 121-125:
  1. Automatically generated from /etc/default/sysconf
  2. The pre-up option must always be supplied, regardless
  3. of configuration, to set the hardware correctly.
  4. Severe network problems may result if this option is
  5. removed.
Added line 123:
        pre-up modprobe -f ixp400
Deleted line 124:
        pre-up modprobe -f ixp400
Changed line 128 from:
  • Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh)
to:
  • Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh):
Changed line 137 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. The gpg line adds the 2006 repository key to your keychain so that packages do not give an error about verification on install.

to:

Update the Debian distro and install cron, gpg, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort.

Changed line 148 from:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment.

to:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment:

Changed line 157 from:

Unmount your filesystems.

to:

Unmount your filesystems:

Changed line 166 from:

Make the external drive with Debian on it your boot device.

to:

Make the external drive with Debian on it your boot device:

Changed line 180 from:
  • Replace modutils with module-init-tool (being in the chroot) :
to:

Replace modutils with module-init-tool (being in the chroot) :

January 07, 2006, at 11:57 PM by rwhitby --
Changed line 49 from:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

to:

./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/debian/

Added line 56:

cd ..

Deleted line 59:

cp /etc/defaultdomain etc/defaultdomain

Changed line 63 from:

Mount the proc filesystem

to:

Copy the kernel modules

Changed line 67 from:

mount -t proc proc /mnt/debinst/proc

to:

cp -Ra /lib/modules/* lib/modules

Changed line 71 from:

Chroot into your new Debian environment

to:

Mount the proc filesystem

Changed lines 75-76 from:

cd / chroot /mnt/debinst

to:

mount -t proc proc /mnt/debinst/proc

Changed line 79 from:

Put a working fstab file into place. You may need to tweak this config and add extra partitions depending on your partition layout.

to:

Chroot into your new Debian environment

Changed lines 83-87 from:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs defaults 0 0

to:

cd / chroot /mnt/debinst

Changed line 88 from:

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

to:

Put a working fstab file into place. You may need to tweak this config and add extra partitions depending on your partition layout.

Changed lines 92-96 from:

S0:2345:respawn:/sbin/getty 115200 ttyS0

to:

cat > /etc/fstab /dev/sda1 / ext3 defaults 1 1 /dev/sda2 swap swap defaults 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs defaults 0 0

Changed line 100 from:

Edit /etc/network/interfaces and use the following as an example.

to:

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry:

Added lines 104-111:

S0:2345:respawn:/sbin/getty 115200 ttyS0 @] (:tableend:)

Edit /etc/network/interfaces and use the following as an example. (:table border=0 width=80% bgcolor=#eeffee:) (:cell:) [@

Changed line 132 from:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. The gpg line adds the 2006 repository key to your keychain so that packages do not give an error about verification on install.

to:
  • Update checkroot.sh to have it delete /.recovery on each successful boot (look for the line where it deletes /dev/shm/root and put it after that in /mnt/debinst/etc/init.d/checkroot.sh)
Changed lines 136-141 from:

apt-get update gpg --keyserver subkeys.pgp.net --recv-keys 084750FC01A6D388A643D869010908312D230C5F ; gpg --export 084750FC01A6D388A643D869010908312D230C5F | apt-key add -; apt-get update apt-get dist-upgrade apt-get install anacron popularity-contest gpg apt-get install ssh

to:

rm -f /dev/shm/root rm -f /.recovery

Changed line 141 from:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment.

to:

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. The gpg line adds the 2006 repository key to your keychain so that packages do not give an error about verification on install.

Changed lines 145-146 from:

passwd exit

to:

apt-get update apt-get dist-upgrade apt-get install anacron popularity-contest gpg apt-get install ssh

Changed line 152 from:

Unmount your filesystems.

to:

Set the root password so you can get in when you SSH into it after reboot, and exit the environment.

Changed lines 156-157 from:

umount /mnt/debinst/proc umount /mnt

to:

passwd exit

Changed lines 161-163 from:

Set the sytem clock to the correct time. example: January 4th 2006, 14:55, type

to:

Unmount your filesystems.

Changed lines 165-166 from:

date 010414552006

to:

umount /mnt/debinst/proc umount /mnt

Changed lines 180-181 from:

[jeanfabrice's note] Debootstrapping a Sarge distro, I also had to :

  • Copy the kernel modules (being out of the chroot) :
to:

Reboot into Debian.

Debootstrapping Sarge

  • Replace modutils with module-init-tool (being in the chroot) :
Changed lines 188-189 from:

cp -Ra /lib/modules/* /mnt/debinst/lib/modules

to:

dpkg -P modutils apt-get install module-init-tool

Deleted lines 192-211:
  • Replace modutils with module-init-tool (being in the chroot) :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
apt-get install module-init-tool 

(:tableend:)

  • Update checkroot.sh to have it delete /.recovery on each successfull boot. Here are the last four lines of /mnt/debinst/etc/init.d/checkroot.sh :

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

rm -f /dev/shm/root
rm -f /.recovery

: exit 0

(:tableend:) [end of jeanfabrice's note]

January 07, 2006, at 11:25 PM by rwhitby --
Changed lines 1-2 from:

Now you have a little endian OpenSlug image that can be used to bootstrap the offical Debian arm port.

to:

Now you have a little endian DebianSlug image that can be used to bootstrap the offical Debian arm port.

January 07, 2006, at 11:24 PM by rwhitby --
Changed line 6 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 17 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 28 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 36 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 45 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 53 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 64 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 72 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 81 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 93 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 101 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 125 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 138 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 147 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 158 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 166 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 177 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 185 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

Changed line 194 from:

(:table border=0 width=100% bgcolor=#eeffee:)

to:

(:table border=0 width=80% bgcolor=#eeffee:)

January 07, 2006, at 11:23 PM by rwhitby --
Added lines 1-203:

Now you have a little endian OpenSlug image that can be used to bootstrap the offical Debian arm port.

Debian Bootstrap

Setup the filesystem and swap: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

mke2fs -j /dev/sda1 # ext3 is a safe choice
mkswap /dev/sda2    
sync; sync; sync
swapon /dev/sda2

(:tableend:)

Mount the harddrives filesystem: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

mkdir /mnt/debinst
mount /dev/sda1 /mnt/debinst
mkdir /mnt/debinst/work
cd /mnt/debinst/work

(:tableend:)

Grab the debootstrap .udeb from a debian mirror: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap-udeb_0.3.3_arm.udeb

(:tableend:)

Extract the debrootstrap udeb (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

ar -x debootstrap-udeb_0.3.3_arm.udeb
zcat data.tar.gz | tar xv

(:tableend:)

Run debrootstrap with your choice of debian distro and mirror. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

export DEBOOTSTRAP_DIR=/mnt/debinst/work/usr/lib/debootstrap
./usr/sbin/debootstrap --arch arm sid /mnt/debinst http://ftp.debian.org/

(:tableend:)

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

cp /etc/resolv.conf etc/resolv.conf
cp /etc/hosts etc/hosts
cp /etc/hostname etc/hostname
cp /etc/defaultdomain etc/defaultdomain

(:tableend:)

Mount the proc filesystem (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

mount -t proc proc /mnt/debinst/proc

(:tableend:)

Chroot into your new Debian environment (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

cd /
chroot /mnt/debinst

(:tableend:)

Put a working fstab file into place. You may need to tweak this config and add extra partitions depending on your partition layout. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

cat > /etc/fstab
/dev/sda1       /               ext3    defaults        1  1
/dev/sda2       swap            swap    defaults        0  0
proc            /proc           proc    defaults        0  0
usbfs           /proc/bus/usb   usbfs   defaults        0  0

(:tableend:)

Edit /etc/inittab to disable the tty[1-6] entries and add the following serial console entry: (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

S0:2345:respawn:/sbin/getty 115200 ttyS0

(:tableend:)

Edit /etc/network/interfaces and use the following as an example. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

# /etc/network/interfaces
# configuration file for ifup(8), ifdown(8)
#
# The loopback interface
auto lo
iface lo inet loopback
#
# The NSLU2 built-in ethernet
auto eth0
# Automatically generated from /etc/default/sysconf
# The pre-up option must always be supplied, regardless
# of configuration, to set the hardware correctly.
# Severe network problems may result if this option is
# removed.
iface eth0 inet dhcp
        pre-up modprobe -f ixp400_eth
        pre-up modprobe -f ixp400

(:tableend:)

Update the Debian distro and install cron, ssh and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. The gpg line adds the 2006 repository key to your keychain so that packages do not give an error about verification on install. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

apt-get update
gpg --keyserver subkeys.pgp.net --recv-keys 084750FC01A6D388A643D869010908312D230C5F ; gpg --export 084750FC01A6D388A643D869010908312D230C5F | apt-key add -;
apt-get update
apt-get dist-upgrade
apt-get install anacron popularity-contest gpg
apt-get install ssh 

(:tableend:)

Set the root password so you can get in when you SSH into it after reboot, and exit the environment. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

passwd
exit

(:tableend:)

Unmount your filesystems. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

umount /mnt/debinst/proc
umount /mnt

(:tableend:)

Set the sytem clock to the correct time. example: January 4th 2006, 14:55, type (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

date 010414552006

(:tableend:)

Make the external drive with Debian on it your boot device. (:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

turnup disk /dev/sda1 -t ext3 

(:tableend:)

Add your name to the DebianSlugUsers? list.

[jeanfabrice's note] Debootstrapping a Sarge distro, I also had to :

  • Copy the kernel modules (being out of the chroot) :

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

cp -Ra /lib/modules/* /mnt/debinst/lib/modules 

(:tableend:)

  • Replace modutils with module-init-tool (being in the chroot) :

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

dpkg -P modutils
apt-get install module-init-tool 

(:tableend:)

  • Update checkroot.sh to have it delete /.recovery on each successfull boot. Here are the last four lines of /mnt/debinst/etc/init.d/checkroot.sh :

(:table border=0 width=100% bgcolor=#eeffee:) (:cell:)

rm -f /dev/shm/root
rm -f /.recovery

: exit 0

(:tableend:) [end of jeanfabrice's note]