The Linksys NSLU2 (a.k.a. SLUG) is a network attached storage device based on the IXP42x processor clocked at 133/266MHz. Is provided with a 2.0A 5V power supply.
|Version/Model||Launch Date||S/N||OpenWrt Version Supported||Model Specific Notes|
|vx||2006-07||-||Kamikaze 7.06||133MHz; can be easily "de-underclocked"|
Please check out the article Flash Layout. It contains an example and a couple of explanations.
The NSLU2 has an active user community around it at http://www.nslu2-linux.org. It is based upon Debian with all the bloat. The developers there "bless" OpenWrt as the firmware of choice for people who want to run all their applications from the internal flash memory only (i.e. with no external storage at all). Actually there are several popular firmware distros available; most contrast OpenWrt's minimalist philosophy. OpenWrt is for people who would rather spend their time adding the wanted features than deleting unwanted ones.
In case of problems, things to look out for are:
You can download the image from the OpenWrt 'Kamikaze' 7.06 dir http://downloads.openwrt.org/kamikaze/7.06/ixp4xx-2.6/openwrt-nslu2-2.6-squashfs.bin. Then install the upslug2 utility. Many distributions already include it in their package management. You will find more information on the topic on the excellect NSLU2-Linux wiki http://www.nslu2-linux.org/, specific information on upslug2 is at http://www.nslu2-linux.org/wiki/Main/UpSlug. Then set the NSLU2 into upgrade mode. To do this, make sure the NSLU2 is turned off. Then press the reset button with a paper clip or small screwdriver and keep it pressed. Turn the NSLU2 on. The "Ready/Status" led will be yellow. When it changes to a reddish amber shade, immediately release the reset button. If it flashes an alternating amber and green, you have succeded (if not, unplug and try again). Now upslug2 should find the nslu2 over the LAN and display the information. Install the image with upslug2 -i filename. It will flash and verify the upload and then reboot automatically - this is what I call a comfortable firmware interface :)
The NSLU2 will take a few minutes to initialize the JFFS2 partition, don't reboot if you cannot access it immediately. It will start up using the network parameters that are stored in the NVRAM partition, so it will default to DHCP (I think) if not setup differently. If you have set a fixed IP address under the original firmware or a previous Linux distribution, OpenWrt will retain this. Try telnet and ping to access it. Then follow the standard Kamikaze installation procedures.
After flashing the device was reachable under 192.168.1.1.
Since this part is identical for all devices, see Basic configuration.
To connect stuff to the USB port, please see Connect stuff to the USB port.
For system that will interact with the other OS, it might be worth it to install samba3 instead of samba-server. Sample smb.conf for samba3 (please modify to fit your security needs and system requirements):
[global] netbios name = OpenWrt workgroup = WORKGROUP server string = NSLU2 OpenWrt Samba Server syslog = 10 encrypt passwords = true passdb backend = smbpasswd obey pam restrictions = yes socket options = TCP_NODELAY unix charset = ISO-8859-1 preferred master = yes os level = 20 security = share guest account = root invalid users = guest smb passwd file = /etc/samba/smbpasswd [HDD_1_1_1] comment = NSLU2 OpenWRT HD 1 available = yes browseable = yes public = yes writeable = yes create mask = 0777 path = /mnt/drive1 read only = no guest ok = yes
Backfire 10.03 has most of the lights turned off (except for Ethernet) so use either the Luci web management (Administration→System→LED Configuration) feature (works quite well) or edit the /etc/config/system. GPIO Connections: http://www.nslu2-linux.org/wiki/Info/GPIOConnections has some information to help with the setup. Sample /etc/config/system entry:
config 'led' option 'name' 'GPIO2' option 'sysfs' 'nslu2:green:disk-2' option 'default' '1' option 'trigger' 'default-on'Where additional choices for sysfs are 'nslu2:green:disk-1', 'nslu2:green:ready', and 'nslu2:red:status'.