NSLU2 SlugOS/BE 4.8 beta setup
An overview about the different OS is at http://www.nslu2-linux.org/wiki/FAQ/FirmwareMatrix
Quote Rod Whitby from http://tech.groups.yahoo.com/group/nslu2-linux/message/20476 about SlugOS:
SlugOS has about 5000 packages to choose from - 4000 from OpenEmbedded, which have been specifically compiled mainly for handheld, limited memory devices, and 1000 from Optware (as per Unslung). SlugOS is available in either big-endian or little-endian modes, and uses a 126.96.36.199 kernel and a recent version of glibc. SlugOS does not have a web user interface. There is a small amount of room left in internal flash after installation (enough to run some small server applications), but installation of large packages will require an external storage device. If the external device fails, SlugOS falls back to running from internal flash.
My way of setting SlugOS/BE 4.8 beta up
Download and flash the binary image from http://www.slug-firmware.net (file: slugosbe-4.8-beta-nslu2.bin, 8 MB).
UsingTheBinary is quickest, most reliable and easiest to understand, however it limits you to installing pre-built packages. If you want a small quiet server and the available packages offer the services you need then it just works, there's no need for anything else. In this respect it's like the stock Linksys NSLU2 and Unslung, but it's much more minimal (i.e. it does next to nothing unless you install extra stuff!)
Please note: Make sure you configure your Slug's satic IP address BEFORE you load in the firmware. Please do not use DHCP. I have confirmed on two separate instances that replacing the default firmware on an NSLU2 right out of the box without FIRST configuring it using the Linksys tools will cause the NSLU2 to hang on reboot. (Specifically, it keeps looping on the Redboot sequence every 10 seconds. I have not had a chance to hack in a serial port to find the specific reason why yet. This is confirmed using the OpenSlug-3.10-beta.bin binary --ptan). If you do end up accidentally flashing the openslug-3.10-beta.bin firmware without first configuring the nslu2, you will have to reflash the unslung-6.8-beta.bin firmware using the Redboot process. This will recover your nslu2.
EDIT: I could not login to the NSLU2 after flashing SlugOSBE 4.8 when using the default static ip address 192.168.1.77 (no response on the network) so I had to reflash to unslung firmware and set a static IP address other than the default address via the web interface and then after flashing slugOS firmware I could login with ssh with the new ip address. So for me it did not work to use linksys configuration tools first without changing the ip address to something else than default (by ronnylov 2008-10-08).
Under Windows XP you Install Sercomm's Win32 Update Utility.
- This tool can locate the slug on the network even if it isn't on the same subnet, and even when the Linksys tool cannot locate the slug.
Download http://www.everbesthk.com/8-download/sercomm/firmware/NU54/Upgrade_207_XP.zip (verified - Nov. 1, 2008)
It will install a folder Ugutil and a program Upgrade.exe
If you are running Windows XP or Vista, make sure your Windows Firewall is offFirst of all, make sure that you run the program using an user account with Administrator privileges. Also, in Windows Vista you will need to use Windows XP (Service Pack 2) Compatibility mode. Right click on the exe file, go to Properties, select Compatibility tab, check "Run this program in compatibility mode for", and then select Windows XP (Service Pack 2).
Put the NSLU2 into Upgrade Mode:
- Disconnect any disks and/or devices from the USB ports.
- Power off the NSLU2.
- Press and hold the reset button (accessible through the small hole on the back just above the power input).
- Press and release the power button to power on the NSLU2.
Wait for 10 seconds watching the ready/status LED. After 10 seconds it will change from amber to red. Immediately release the reset button.
- The NSLU2 ready/status LED will flash alternately red/green (there is a 1 second delay before the first green).
- Start the Upgrade Utility. If you have more than one network card in your PC, it will show a list of interfaces and ask you to select one. Choose the Ethernet card that is connected to the same network as the slug.
- Open the Browse menu and select Browse Targets..., it will go look for a slug on the local subnet.
- Select your slug in the Devices List box, then click on the Files button.
- Select the firmware file to be loaded. After you select a file and click Open, the program will show a window with some extra information about the file, simply click Ok to confirm.
- Click the Upgrade button. This will start the upgrade process.
- During the upgrade, the program will show some progress messages, as it erases the flash, uploads the new firmware and verifies it. When finished, the program will show a success message and reboot the slug. After that, you can close the program and proceed with the configuration of the new firmware.
Install an SSH client, such as PuTTY.
Under Linux you install UpSlug2 using a package for your distro.
The UpSlug2 page has more information about available binary packages and setup instructions.
- Make sure your distribution has an SSH client, such as OpenSS.
- Now login with PUTTY to your NSLU2 box and accept the SSH key.
The user is root, the initial password opeNSLUg.
Change your password with turnup init. The other questions should be answered with the default, just hit ENTER.
In order to have a most reliable system, use a USB-stick (>= 1GB) on port Disk1.
It make sense to partition the USB-stick on another Linux system with gparted. See also InitializingDisks
- Partition 1 (format ext3) should be 512 MB and will hold later the Linux system.
- Partition 2 (format swap) could be 128 MB, but may be not needed.
Partition 3 (format ext3) should have the rest and will mount as /home and will hold the privat data. If you setup a new OS, this data will be kept.
Plug it in when SlugOS is running. The boot phase has finished, when you hear a double beep.
On the command line type (as root) turnup memstick -i /dev/sda1 -t ext3.
- This will copy the basic Linux system to the USB-stick and takes care via links, that the USB-stick is not so easy worn out.
For example the /var/log/ folder will be in a RAM-disk.
The main logging will be done in a RAM-buffer and can be read via dmesg for the kernel logging.
The syslog can be read via logread`.
- mount sda3 to /home by editing /etc/fstab:
append the line with TAB's /dev/sda3 /home ext3 defaults 1 1
- reboot, to take effect
After the initialization you can use ipkg and ipkg-opt to download and install software NSLU2InstallSoftware.