Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum

Keywords: Match:
Hacked $99 NAS gadget runs full Debian Linux
Jul. 19, 2005

A Debian ARM hacker has published a detailed HOWTO on installing Debian Linux on Linksys's NSLU-2 NAS (network-attached storage) gadget. Peter Korsgaard's HOWTO explains some neat tricks in dealing with endian issues on ARM processors, which have both little- and big-endian modes.

The NSLU-2 (Network Storage Link for USB 2.0 Disk Drives) is a low-cost embedded Linux device that turns any USB hard drive into a NAS (network-attached storage) device, by providing various network interfaces. Tom's Hardware published a rave review, saying the device could revolutionize NAS. Several alternative firmware images soon popped up.

Korsgaard says he wanted to be able to run Debian on the device, since as a Debian ARM community member, he was familiar with Debian. Additionally, he wanted a full-featured distribution -- Debian ARM has some 16,000 packages, currently.

In order to port Debian to the NSLU2, Korsgaard had to overcome an issue related to endianness. ARM processors can run in little- or big-endian mode. Debian ARM only supports little-endian, but the device as supplied by Linksys runs in big-endian mode.

To circumvent this problem, Korsgaard constructed a byteswapped kernel that the NSLU2's big-endian Redboot bootloader can deal with. It loads, then throws the CPU into little-endian mode, before launching the rest of the kernel.

Similarly, to install Debian on the NSLU2, Korsgaard uses a byteswapped Debian installer from the LART project. He includes several screenshots of the installer running on the NSLU2, and explains how to use the rootdelay Linux boot parameter to enable the root filesystem be mounted on a partition on a USB storage device.

Device specifics

(Click to enlarge)
The NSLU2 is based on an Intel XScale IXP420 processor, clocked at 133MHz. However, a resistor can reportedly be removed to double the processor's clockspeed. The device has 32MB of SDRAM, 8MB of NOR Flash, built-in 10/100 (not yet supported in litte-endian mode), and dual USB 2.0 ports.

Korsgaard's HOWTO is based on a Linksys NSLU2 with an onboard serial port header converted into an RS-232 port via a voltage converter. Alternatively, a modified USB phone cable can be used. Why do this? According to Korgaard, "The NSLU2 is a cheap (~75 Euros) consumer device, [so] it's a quite cheap way for people to get a non-x86 Debian box."

Korgaard's cool project page can be found here.



Related Stories:


(Click here for further information)


FUEL Database on MontaVista Linux
Whether building a mobile handset, a car navigation system, a package tracking device, or a home entertainment console, developers need capable software systems, including an operating system, development tools, and supporting libraries, to gain maximum benefit from their hardware platform and to meet aggressive time-to-market goals.

Breaking New Ground: The Evolution of Linux Clustering
With a platform comprising a complete Linux distribution, enhanced for clustering, and tailored for HPC, Penguin Computing¿s Scyld Software provides the building blocks for organizations from enterprises to workgroups to deploy, manage, and maintain Linux clusters, regardless of their size.

Data Monitoring with NightStar LX
Unlike ordinary debuggers, NightStar LX doesn¿t leave you stranded in the dark. It¿s more than just a debugger, it¿s a whole suite of integrated diagnostic tools designed for time-critical Linux applications to reduce test time, increase productivity and lower costs. You can debug, monitor, analyze and tune with minimal intrusion, so you see real execution behavior. And that¿s positively illuminating.

Virtualizing Service Provider Networks with Vyatta
This paper highlights Vyatta's unique ability to virtualize networking functions using Vyatta's secure routing software in service provider environments.

High Availability Messaging Solution Using AXIGEN, Heartbeat and DRBD
This white paper discusses a high-availability messaging solution relying on the AXIGEN Mail Server, Heartbeat and DRBD. Solution architecture and implementation, as well as benefits of using AXIGEN for this setup are all presented in detail.

Understanding the Financial Benefits of Open Source
Will open source pay off? Open source is becoming standard within enterprises, often because of cost savings. Find out how much of a financial impact it can have on your organization. Get this methodology and calculator now, compliments of JBoss.

Embedded Hardware and OS Technology Empower PC-Based Platforms
The modern embedded computer is the jack of all trades appearing in many forms.

Data Management for Real-Time Distributed Systems
This paper provides an overview of the network-centric computing model, data distribution services, and distributed data management. It then describes how the SkyBoard integration and synchronization service, coupled with an implementation of the OMG¿s Data Distribution Service (DDS) standard, can be used to create an efficient data distribution, storage, and retrieval system.

7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets



BREAKING NEWS

• FPGAs shrink for mobile devices
• Tiny Bluetooth access point runs Linux
• Appliances use Pentium M SoC
• Laser-guided French robots run Linux
• GPL compliance guide published
• PMPs run Linux on ARM Cortex
• Linux to gain anti-virus software
• Intel aims x86 at digital TVs
• Intel unveils dual-core Atom
• Linux powers MID-like nav device
• Virtualization technology targets MIDs
• Open-source phone getting WiFi sign-on port
• Streaming media player targets netbooks, nettops
• Intel announces high-speed SSDs
• Dell embeds Linux in enterprise laptops


Most popular stories -- past 90 days:
• Open source phone goes mass-market
• Updated! Linux Mobile Phones Showcase
• World's cheapest Linux-based laptop?
• Garmin Nav devices run Gnome Linux
• First Atom-based notebook runs Linux
• ARM9 board boots Debian in 0.69 seconds
• Open source camera records geotagged video to SATA HDD
• Linux-friendly Beagle fetches $150
• "PDA phone" runs Linux
• Intel offers $80 "Little Falls" Atom mobo
• Netflix Player runs Linux


DesktopLinux headlines:
• Linux to gain anti-virus software
• Linux gains backup utility
• Testing Lenny
• HP offers Linux on low-end mini-notes
• Dell shipping five Hardy Heron systems
• IBM pushes "Microsoft-free" desktops
• Unified communications groupware comes to Linux
• Lightweight GNOME alternative emerges
• Freespire lives! Goes back to Debian
• gOS 3.0 goes Gadget crazy


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 
Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.