view · edit · print · history

The information on this page is obsolete. It refers to a very old version of Unslung.

If you want to use Unslung, please read the information about the latest version in the Unslung page.

This page needs updating to match the 3.16-beta release

The "standard" variant of Unslung has the following changes from the stock Linksys firmware:

  1. Changed /dev/ram0 to /dev/slug in the kernel command line arguments. This causes the kernel to look for and run a /linuxrc script on boot. In our case, that /linuxrc script works out whether the root filesystem should be loaded from an attached ext3 disk.
  2. Changed the size constant in the Linksys modifications to the USB SCSI scan routines such that "Flash Detection" threshold is 1GB instead of 10GB. This was done to enable the use of Cornice devices as hard drives instead of flash.
  3. Changed the kernel USB detection routines so that when a flash disk is plugged into Disk1, a /proc/hd_conn file is created instead of a /proc/usb_conn file. This fools the Linksys applications into expecting ext3 partitions on that disk (just like a hard disk). Note that your flash disk needs to be 256MB or larger for this to work properly.
  4. Changed the root password to "uNSLUng".
  5. Added /linuxrc, containing sanity checks to activate a hard disk as / only if many conditions are met. If conditions are not met, the NSLU2 will boot from ramdisk.
  6. Added /.unslung, containing version information to support a check in (2).
  7. Added /sbin/unsling, a script to copy the important directories from the ramdisk to the new location of / (/share/hdd/conf or /share/flash/conf).
  8. Added /bin/slingbox (and a number of symbolic links to that executable in /bin and /sbin) to provide the utilities required for the unsling and flashfs scripts. It also provides an upgraded version of /bin/tar which supports gzipped archives.
  9. Modified lines in each of the rc scripts to check for the presence of a diversion script in /unslung.
  10. Added an /etc/rc.d/rc.unslung script to run init files in the /opt/init.d directory (this is where Unslung packages place their startup scripts).
  11. Added /usr/bin/ipkg, /etc/ipkg.conf, and /usr/bin/wget to support the download of packages.
  12. Added /sbin/flashfs to support copying modified files to/from a flash key on Disk 2. This makes it much easier to wipe an Unslung disk, and then reinstall all your local modifications.

Enable /proc/bus/usb

The standard Linksys product only supports USB mass storage devices. In order to communicate with other kinds of USB devices, new drivers must be loaded as kernel modules. Another option is to use a user space program and communicate with the device from user space via entries in /proc/bus/usb.
The Unslung kernel supports usbdevfs and allows the USB device driver to publish the /proc/bus/usb hierarchy, thus allowing user space USB applications to work. The /proc/bus/usb hierarchy is automatically mounted during boot.

Add support for RAID disk configuration.

view · edit · print · history · Last edited by fcarolo.
Based on work by rwhitby, kolla, and tman.
Originally by rwhitby.
Page last modified on November 16, 2006, at 08:08 AM