Lost Password? No account yet? Sign up! Why bother?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size

SmallNetBuilder - Small Network Help

  
Home arrow NAS arrow NAS How To arrow Hacking the Linksys NSLU2 - Debian and more
Hacking the Linksys NSLU2 - Debian and more Print E-mail
Jim Buzbee   
December 18, 2006

Installing Debian

The last time I installed an alternate firmware onto my NSLU2 was quite a while back. At the time, the alternatives were few, so I went with the current Unslung firmware installed to 512 MB memory stick. This combination has been up for over a year now and is happily running a LAMP stack supporting one of my web sites. But as mentioned above, the Unslung firmware has some tradeoffs. When you would log into the device some things were not quite the same as a standard Linux system. Making changes would require tweaks, or maybe an obscure package was not available. Sometimes the busybox version of utilities used had slight differences from the standard equivalent, or maybe the filesystem layout was different than expected. Everything just felt a little "off".

So to check out the bleeding-edge development status of the NSLU2 project, I picked up a new NSLU2 from my local big-box retailer and proceeded to install the official Debian firmware. There's a nice installation guide here, but in the following sections, I'll show the steps I went through and the results I achieved.

I'll skip the standard NSLU2 setup you'd do to install the of-the-shelf device. But note that you'll need to have your NSLU2 fully working before you proceed to install Debian. Also note that Debian is designed to be installed on a hard drive so I wouldn't recommend trying to use a flash drive unless you're willing to tweak it afterward to avoid excessive writes that could burnout a flash drive over time.

The first step in loading Debian onto your NSLU2 is to acquire and install the debian-installer that is specifically built for the NSLU2. Debian-installer is the program that's responsible for bootstrapping and installing a standard Debian system on both PCs and devices like the NSLU2. The basic idea with the NSLU2 is that you burn the debian-installer as a new flash image, and then upon reboot, log in remotely using ssh and walk through a standard debian installation that downloads everything it needs across the Internet.

If everything were right with the world, you'd get the debian-installer image from the Debian site, but there are some complications. Intel wrote the Ethernet driver used on the NSLU2, and they add some license restrictions that prevent it from being included inside the official debian-installer. A free open-source replacement driver is in the works, but until it's ready, you'll have to pick up an unofficial debian-installer firmware here.

Once you have the image, there are a couple of different ways to install it. I chose to install the image using the standard Linksys firmware installation procedure. Figure 2 shows the NSLU2 upgrade screen where I have selected the debian-installer as the firmware to upgrade with.

Firmware Upgrade

Figure 2: Firmware Upgrade

At this screen, you select your image and hit the "Start Upgrade" button and wait for the completion message. But once again, things are sometimes more difficult than you'd like. Linksys has a long-standing bug where they miscalculate the available memory and issue an error as seen in Figure 3.

Firmware Upgrade Failure

Figure 3: Firmware Upgrade Failure

Depending on your situation, you may or may not see the same error. If you check out the Linksys support site, you'll see that they recommend running an "EraseAll" program to clear out flash when this error occurs, but the NSLU2 developers strongly advise against it because it has the potential to completely destroy your box. The easy solution, at least for me, was to disconnect my external drive, reboot and start the upgrade over. After I had done this, the flash upgrade went smoothly.



Tags: BYOD, How To, Linksys, NAS, NSLU2,

Related Articles:

How To: Hacking the Linksys NSLU2 - Part 5- Moving to Unslung
Revolution by Buffalo Kuro Box
Hacking the Linksys NSLU2 Part VI - Installing a Media Server
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
How To: Hacking the Linksys NSLU2 - Part 1
 

Most Read

 
 

Over At The Forums

Basic Router Recommendations
I have searched the net far and wide, and this site seems the most useful source of information, but even here, reviews aren't really oriented...

Thoughts on the state of Wireless LANs
Reality Bytes Most homes have G clients. For many people, it is not cost-effective to upgrade them all to N (especially draft N). So,...

Need advice which Router/AP I should use (newbe)
I am completely new to WLAN and would appreciate some help. I would like to expand my pure wire-LAN for the use with some WLAN-devices. This...

Problem with RDP over VPN
New to the SmallNetBuilder world but I like what I see. I was looking to get some suggestions to a current problem I am having...

Fios Router P2P issue? Or throttling?
Hi everyone. I am new here and have a nagging issue I hope to get resolved. I am very happy with the new 10mbps/2mbps Fios...

Slideshows

QNAP TS-509 Pro D-Link DNS-343 4-Bay Network Storage Enclosure Thecus N3200 RAID 5 NAS D-Link DIR-628 RangeBooster N Dual Band Router Adtran NetVanta 3120 Buffalo LinkStation Mini More

Win This!

Enter to Win!

You could win a Trendnet TE100-MP2U 2-Port Multi-Function Print Server and IOGEAR GUIP201 USB Net ShareStation

Learn How!

 

Ldr:0.00176596641541, Rct:0.00594902038574, Sky:0.00803995132446, Tlink:0.449309825897, TopPG:0.449395895004, GQV:0.449570894241 seconds to load.