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 3 - Adding an iTunes server
How To:Hacking the Linksys NSLU2 - Part 3 - Adding an iTunes server Print E-mail
Jim Buzbee   
August 24, 2004

Gathering the sources

I'm assuming that you've followed my previous article and have installed the tool-chain we'll be using to build our server. I'll also be writing this assuming bash syntax. If you use a different shell, you'll have to adjust. As in my last article, I'll be doing the build from a Mandrake machine. But this time I'll be NFS mounting my NSLU2 disk so that my build will automatically end up where I need to run it.

The first step in this process is to create a work area for the packages that we're going to build. I created a directory called iTunes under my home directory on the NSLU2. Next we'll need to get all of the various source packages required. We'll naturally start with the mt-daapd source from here.

A glance at the documentation shows that we'll need libid3tag, the library used for ID3 tag reading and gdbm, the GUN database manager. A quick test I did showed that we will also need the zlib compression library. I fetched libid3tag from here, gdbm from here and zlib from here. I placed all of the required packages in my iTunes directory. After un-tarring them, you'll end up with a gdbm-1.8.3 directory, a libid3tag-0.15.1b directory, a mt-daapd-0.2.0 directory and a zlib-1.2.1 directory.

Before we start the build, we'll set up some common environment variables that will be used during the cross-compile . All of the packages in this build are configured using the same mechanism, the GNU Autoconf package. This package can look at specific environment variables in order to tell it where to find the compiler, linker, include files, etc.

I created a setup.sh file with the following definitions :

export BASE=/mnt/nslu2/data/jim/iTunes/
export LINUX=$HOME/snapgear/linux-2.4.x/include/
export TOOLSBASE=$HOME/gpl_code_2.03/usr/
local/openrg/armsaeb/bin/armv4b-hardhat-linux export CC=$TOOLSBASE-gcc export STRIP=$TOOLSBASE-strip export RANLIB=$TOOLSBASE-ranlib export LDFLAGS=-L$BASE/lib export CFLAGS="-I$BASE/include/ -I$LINUX"

(Note that in the setup.sh file the line starting with "export TOOLSBASE" and the next indented line are entered as one line with no space between them.)

BASE is defined to be the top level of my working area while LINUX points to the snapgear Linux source tree. TOOLSBASE is where my cross-compilation tools live and CC, STRIP and RANLIB end up being the full path name of their executables. LDFLAGS and CFLAGS will be used during our builds and just point into our build area and the Linux source tree. Create your version of the above file using your specific paths. Then "dot" the file, i.e. . setup.sh so that the variables get into your environment. Now we're ready to do our first build.



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

Related Articles:

How To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS
How To: Hacking the Linksys NSLU2 - Part 5- Moving to Unslung
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
Hacking the Linksys NSLU2 Part VI - Installing a Media Server
How To: Hacking the Linksys NSLU2 - Part 1
 

Most Read

 
 

Over At The Forums

Any Drobo Review Coming?
Tim last time ( in May?? ) you said you were in queue for Drobo Review unit, Have you have any response from them yet?

Qnap 209 Pro II, very slow transfer, advice welcome
Hello I have a Qnap 209 Pro II, I get a very slow file transfer rate. I think (hope) I have something wrong with either my...

For sale brand new original unlocked BlackBerry Storm 9500 $300
Welcome to Phonesstockcity Ltd in United State, We deal with All Electronics Product it is All Brand New with the complete accessories and come with...

Brand New Unlocked Apple Iphone 3G 16GB For Sale at just $350USD
We offer 10% discount for any series of Nokia samsung apple iphone you purchase with Free Shipping.and we are in promo now if buy three...

breaking the magic 100MB/s
Hi, Been following your articles on really fast NAS, and sorry, I think I may of just done it :) I have two p5w64's linked via a...

Slideshows

Western Digital ShareSpace 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 More

Win This!

Enter to Win!

You could win a Promise NetStor NS2300N NAS.

Learn How!

 

Ldr:0.00172209739685, Rct:0.0424489974976, Sky:0.0462441444397, Tlink:0.125283002853, TopPG:0.125357151031, GQV:0.125494003296 seconds to load.