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 How To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS
How To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS Print E-mail
Jim Buzbee   
August 10, 2004
Slashdot
Digg
Technorati
Delicious
Stumble

Introduction

In my previous article, I showed how to get a command prompt on the NSLU2 by using a hidden option and editing the password file in an external system. In this article, we'll continue exploring the box with the goal of adding new functions to make it even more useful.

Since the box runs a version of Linux, there are a whole host of software packages that one could install on the system. One could envision expanding the web server on the box for custom applications, or perhaps installing a ftp server or a secure shell server to replace the telnet server. My first goal was to install a different network file system.

As delivered by Linksys, the only support provided is for SMB - the network file system protocol that is native to Microsoft Windows. Since my home network is mostly composed of UNIX-based machines such as Apple's Mac OS X and Linux, a natural extension for me is NFS, the network file system native to most UNIX systems.

But before we can start installing new packages, there are a few difficulties to overcome. The first thing we'll have to do is set up a development environment, since we'll be building the required packages. The rest of this article assumes that you have followed the previous article and have enabled telnet on your NSLU2.

NOTE!Disclaimer: It goes without saying, but I'll say it anyway. Exploring the NSLU2 by looking at its internal file structures using any method that doesn't modify its code should leave your warranty intact. But modifying the NSLU2 in any way will void your warranty.

TomsNetworking, Tom's Guides Publishing and I are not responsible for any damage that the information in this article may cause to your NSLU2 or any data it manages.

So download a copy of the current firmware before you start, and don't go trying to get help from Linksys if you break it.

Determining the Target Processor

Linux is the most natural environment for developing software for another Linux system so I'll do this from my Mandrake development box. Unlike most Linux development systems, the NSLU2 is not x86 based, so we'll have to install a cross-compilation toolchain.

The first step in setting up a cross-compilation toolchain is determining the target processor. Reviews I had read indicated that the processor was an Intel IXP420 Network Processor. But to tell you the truth, that didn't mean much to me, since it sounded more like a marketing term.

Since we can now log into the box, we can poke around and see what Linux thinks the processor is. The /proc filesytem is invaluable for this. One file of interest is /proc/cpuinfo. Reading it is easy :

# cat /proc/cpuinfo Processor : XScale-IXP425/IXC1100 rev 1 (v5b) BogoMIPS : 131.48 Features : swp half thumb fastmult edsp Hardware : Intel IXDP425 Development Platform Revision : 0000 Serial : 0000000000000000

That didn't tell us much more than we already knew, but it does validate previous reports regarding the IXP425. To get further, we'll have to take a different tack. A handy utility on most UNIX systems is file, which examines a file and tells you what kind of file it is based on the initial data in the file.

The NSLU2 doesn't include the file program, but it does include ftp. So using ftp, we can move an executable over to our development platform. Try moving over our favorite little program, telnet.cgi from the directory /home/httpd/html/Management. Once this is on your development system run file on it to see what it thinks:

# file telnet.cgi telnet.cgi: ELF 32-bit MSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped

That's better. Now we know we're dealing with an ARM CPU so we'll have to install an ARM cross compilation toolchain.



Comments (0)Add Comment

Write comment

busy

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

Related Articles:

How To:Hacking the Linksys NSLU2 - Part 3 - Adding an iTunes server
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
How To: Hacking the Linksys NSLU2 - Part 5- Moving to Unslung
Hacking the Linksys NSLU2 Part VI - Installing a Media Server
How To: Hacking the Linksys NSLU2 - Part 1
 

Top NAS Products

MediaSmart Server EX470
Lowest Price: $ 511.98

ReadyNAS Duo 500GB Network Attached Storage
Lowest Price: $ 352.06

LinkStation Pro Duo 1TB Network Attached Storage
Lowest Price: $ 265.00

EX475 MediaSmart Server
Lowest Price: $ 655.50

SC101 Storage Central
Lowest Price: $ 26.96

Most Read

 
 

Over at the Forums

Gigabit CAT6 Kit for Installing & Testing: Terminiation, Crimping etc.
Gigabit CAT6 Kit for Installing & Testing: Terminiation, Crimping etc. ---Quote--- The cable infrastructure is the most often overlooked and most...

Building a HTPC cloud for home
As a HTPC enthusiast, I have a bunch of PCs, NASes & networking gears in my home. My current project is to upgrade the connection speed between my...

DIR-615 REVB2 with F/W 2.25 and DES-1105 Switch
I have a D-Link DIR-615 REVB2 Wireless Draft 2.0 802.11n router with F/W 2.25 and have enabled the QoS engine on the router and I am planning on...

NAS = High Margin?
It seems NAS are generally using Open Source OS and some cheap components. While the software may not be totally free. It still much cheaper then...

HTPC or Set Top Box
There doesn't seem to be any really good choices, or maybe there's too many, because I can't decide how I want to handle streaming from the Internet...

Slideshows

Thecus N3200 RAID 5 NAS D-Link DIR-628 RangeBooster N Dual Band Router Adtran NetVanta 3120 Buffalo LinkStation Mini Intel Entry Storage System SS4200-E D-Link DAP-1522 Xtreme N Duo Wireless Bridge / Access Point More

Win This!

You could win this D-Link Xtreme N Duo Wireless Bridge / Access Point

Learn How!

 
Go Shopping with PriceGrabber

Get Email Updates

Enter your email address:

Delivered by FeedBurner once a day

 


This page took 0.346055030823 seconds to load.