NSLU2 means Network Storage Link for USB 2.0 Disk Drives. Also see here.
The NSLU2 supports different firmwares. The original one is rather outdated. The most used firmwares are:
opkg and ipkg you can install various applications/servicesMy network consists of a WLAN repeater which bridges the network of my neighbor with mine. Access to the Internet is provided by a gateway in my neighbor's network. The NSLU2 device has severe problems downloading files from the Internet. All downloads stall after a few bytes. Some tests showed that my side of the network works fine but everything behind the WLAN bridge is almost unreachable from the NSLU2. All other devices in my network can use the Internet fine.
My current solution is using tcpwatch-httpproxy on my Desktop-PC and a file ~/.wgetrc on my NSLU2 with the contents:
timeout = 10 http_proxy = <my IP>:8080
To make pushing the power button shut down the Slug instead of rebooting it, edit the file /etc/inittab and replace the line
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
by
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now
Afterwards do a
telinit q
Since ARM packages from Debian are not optimized for small memory footprint, you might want to free up some memory by deactivating several services which are not needed.
To save even more memory, you could replace bash by dash in your /etc/passwd file.
Exim4 is a complete mail exchanger. Most people will only need a simple MTA to send some logs to the admin. So remove exim4 and use ssmtp instead.
If you don't have/use the serial console on the NSLU2, you should disable getty. Edit the file /etc/inittab and comment out the following line:
#T0:23:respawn:/sbin/getty -L ttyS0 115200 linux
Afterwards do a
telinit q
If you don't use IPv6, you should blacklist the kernel module to save some more RAM. Add the following line to /etc/modprobe.d/blacklist:
blacklist ipv6
If you don't use sshfs or some other special features of OpenSSH, you could replace it by dropbear.
If your DebianSlug doesn't boot and the root disk is perfectly clean, you might have a firmware problem. To create a working firmware, you'll need the files vmlinuz-2.6.30-2-ixp4xx, initrd.img-2.6.30-2-ixp4xx1) and the di-nslu2.bin (the DebianSlug installer image).
di-nslu2.bin to an empty directory and run this: slugimage -u -i di-nslu2.bin
dd if=vmlinuz-2.6.30-2-ixp4xx of=vmlinuz-2.6.30-2-ixp4xx.padded ibs=1441760 conv=sync devio "<<"vmlinuz-2.6.30-2-ixp4xx.padded > vmlinuz-2.6.30-2-ixp4xx.swapped "xp $,4"
(This will pad the file to 1441760 Bytes and then switch the Endianess of the file.)
dd if=initrd.img-2.6.30-2-ixp4xx of=initrd.img-2.6.30-2-ixp4xx.padded ibs=6291440 conv=sync devio "<<"initrd.img-2.6.30-2-ixp4xx.padded > initrd.img-2.6.30-2-ixp4xx.swapped "xp $,4"
slugimage -p -b RedBoot -s SysConf -L apex.bin -k vmlinuz-2.6.30-2-ixp4xx.swapped -r initrd.img-2.6.30-2-ixp4xx.swapped -t Trailer -o debianslug.bin
Finally you only have to burn the new image to the NSLU2 using upslug2:
upslug2 -i debianslug.bin
If you want to make changes to the initrd, take a look at cyrius.com.
UPDATE: Here is a little script which does the above in a more comfortable way. Just throw it into the directory together with the di-nslu2.bin, the initrd.img-2.xxx and vmlinuz-2.xxx. Download: emergencyfw.sh (1.82 KiB, 38 downloads)
iStat is an app for the iPhone to show performance statistics of different machines. I compiled their iStat Server on my Slug and made a little DEB package.
Download: istatd_0.5.4_armel.deb (410.18 KiB, 54 downloads)
/boot on the root partition of the NSLU2-disk