Slashdot Mirror


Full Debian ARM for Under $200

An anonymous reader writes "With minor elbow grease, you can now set yourself up with a complete Debian ARM Linux box for under $200. This is thanks to Peter Korsgaard, who figured out a cool byteswapped kernel hack for the little $99 Linksys NSLU2. Add a $99 USB harddrive, and the tiny, cute, quiet 'Slug' can run any of about 16,000 Debian ARM packages, 24x7, for pennies per month worth of electricity, since ARM is still orders of magnitude more power-efficient than anything x86. Serve files, music, web pages, printers, backups, kernel images, webcams/motion detection, firewalls/routers, wireless access point... or whatever. Oh, did I mention you can overclock the Slug?"

53 of 233 comments (clear)

  1. Stereo component by Doc+Ruby · · Score: 3, Insightful

    Where's the $100 ARM device for Debian that includes ethernet and stereo audio out (headphones/speakers)? Even used PocketPCs cost $100, plus $50-100 for PCMCIA ethernet/sleeve.

    --

    --
    make install -not war

    1. Re:Stereo component by anthonyclark · · Score: 2, Informative

      usb audio for $30-$50?

      --
      ----- Documentation is worth it just to be able to answer all your mail with 'RTFM' - Alan Cox.
    2. Re:Stereo component by dartboard · · Score: 4, Informative

      http://www.slimdevices.com/

      get of their older devices for cheap on ebay, they rock. i've got 5 of them scattered throughout my house (3 different models, all running off the same server software on my debian box).

    3. Re:Stereo component by pyrrhonist · · Score: 3, Insightful
      so... i guess add another $30 for a USB 10/100 Adapter.

      Or use the Unslung distribution instead, which does support the built-in Ethernet.

      --
      Show me on the doll where his noodly appendage touched you.
    4. Re:Stereo component by Sir_Real · · Score: 2, Informative

      I'll throw in my vote for gumstix.

      http://gumstix.com/spexExpnsion.html

      They're super small, (shuffleish sized), do usb, ethernet, and other stuff. Runs linux out of the box. XScale processors start at 200Mhz. The price is right too.

    5. Re:Stereo component by delirium+of+disorder · · Score: 2, Interesting

      Is wireless ethernet and Linux (but not debian) good enough for you? If so...you can get the ARM based zipit for about $99. It has a normal stereo headphone jack, and what looks like an audio remote jack on it. You have to hack it a bit to actually get it to play mp3's and such, but the manufacture claims it will support streaming audio in the next firmware release.

      http://www.elinux.org/wiki/ZipIt

      --
      ------ Take away the right to say fuck and you take away the right to say fuck the government.
    6. Re:Stereo component by CrazyWingman · · Score: 2, Informative

      Gumstix would be great if they would just add USB host capability. I don't care about controlling it over USB; I want it to read data off of a USB keychain drive. :(

  2. So... the question on everyone's mind is... by Anonymous Coward · · Score: 3, Funny

    Does it run Li...Oh, right... ^_^

  3. It may have... by zegebbers · · Score: 2, Funny
    ARM but does it have a HURD?

    (sorry)

  4. Already hacked by Anonymous Coward · · Score: 5, Informative

    The Linksys NSLU2 has already been hacked so you can run your own applications on it. :-)

    1. Re:Already hacked by jaylee7877 · · Score: 3, Informative

      Yes but having it run Debian opens up a huge number of precompiled applicatons to the NSLU2.

    2. Re:Already hacked by ender- · · Score: 2

      And in case YOU don't know anything about the subject, here's the tip:

      There are precompiled Debian apps for more than just x86.

  5. Fans of this should check out openwrt.org by kaldek · · Score: 5, Informative

    OpenWRT is a similar thing for the Linksys WRT54G and GS wireless routers. Same goes for the Asus WL500 series. Linux forever! heh

    1. Re:Fans of this should check out openwrt.org by raz0 · · Score: 3, Informative

      You can't, however, attach a HDD to the WRT54G(S). I've just ordered myself an Asus WL-500g Deluxe with two USB 2.0 ports. Should be nice for a little web server with OpenWRT, though the performance should be poor. 1.3Mbytes/s I've heard. I guess this Linksys device has better USB performance, it being meant for file sharing, though it's not a guarantee. The WL-HDD (connects a regular IDE HDD) can only transfer 2Mbytes/s.

    2. Re:Fans of this should check out openwrt.org by commanderfoxtrot · · Score: 2, Informative

      I have one of the older Asus WL500G wireless routers. At various times I've had photo printers and USB disks plugged in to it- it's a fantasic piece of kit. You can make it boot off USB and have SSH as well.

      Not blazingly fast, but enough for most of us.

      My Compaq laptop can only do about 1.5MB/sec using SSH anyway. FTP is obviously faster.

      --
      http://blog.grcm.net/
  6. Decent file server... by MindNumbingOblivion · · Score: 5, Funny
    ...that doesn't cost an ARM and a leg.

    Thank you, thank you.

    --
    #define CLUE 0
  7. Getting there, but not yet perfect by glowworm · · Score: 3, Informative

    This is a cool project and Kudos to Linksys for using Linux as a basis for their NAS and Routers.

    But TFA says "built-in 10/100 (not yet supported in litte-endian mode)". If I read this correctly the device works, but the network port doesn't. Hopefully someone can correct me and confirm that the ethernet port does work.

    This would be a perfect low-cost always-on media centre server for Slim Devices Squeezebox Server

    --
    Orationem pulchram non habens, scribo ista linea in lingua Latina
    1. Re:Getting there, but not yet perfect by MindNumbingOblivion · · Score: 3, Informative
      The key there is the "not yet supported in little-endian mode" (emphasis mine). Endianness refers to which end of the data the processor starts chewing on first. Big endian means it reads the most significant bit first, little means it starts from the least sig bit.

      ARM processes things in what is known as a byte-sexual method, ie, either big or little endian. What tfa is saying is that eth0 port should work just fine under Debian ARM in big-endian mode (otherwise having this thing set up as a network storage device is pretty useless unless you're planning on exclusively USB hubbing it).

      --
      #define CLUE 0
    2. Re:Getting there, but not yet perfect by damiangerous · · Score: 3, Informative
      What tfa is saying is that eth0 port should work just fine under Debian ARM in big-endian mode

      What it also says is that Debian ARM only supports little endian mode. I closed the page and now I can't get back to it, so I don't recall if he overcame this problem with the ethernet port.

  8. Re:Linux Sucks! by kaldek · · Score: 3, Insightful
    Let's just do a search and replace on your post here...

    Oh, did I mention, VHS sucks ass? I mean, come on, there's no excuse with Beta around.

    Guess who lost that one! Just because it's the best techology, doesn't mean it's going to get used.

  9. Re:Linux Sucks! by superpulpsicle · · Score: 2, Informative

    It's not our fault you prefer the never-changing BSD and the 1-button MAC mouse. With the second highest install base in the world, you're bound to get breached.

  10. Think again, homies: by zerocool^ · · Score: 2, Interesting


    From TFA:

    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.

    How are you planning on accessing those files? Hopes and dreams? Network Attached Storage with no Network Attached is just a hard drive.

    ~Will

    --
    sig?
    1. Re:Think again, homies: by pyrrhonist · · Score: 4, Informative
      How are you planning on accessing those files? Hopes and dreams? Network Attached Storage with no Network Attached is just a hard drive.

      If you don't need a distro as large as Debian, you can run Unslung, which does support the built-in Ethernet.

      Unslung uses ipkg for package management and has a simple installation using the native firmware. It is very stable, since it has been available almost since the Linksys product was announced. It is actively being developed and you can talk to the developers via IRC at #nslu2-linux on Freenode.

      There is also a Yahoo group for running Linux on the NSLU2.

      --
      Show me on the doll where his noodly appendage touched you.
  11. Re:I've been waiting for this! by FLAGGR · · Score: 2, Interesting

    You do realize that you can install linux on the mac mini, and I'm sure PPC has better support than ARM, or you can just use fink (like bsd ports) to install *nix apps under OSX? Not to mention the mac mini is much more powerfull....

  12. What about... by JeiFuRi · · Score: 2, Funny

    the debian LEG?

  13. Re:Overclock the slug? by jaylee7877 · · Score: 4, Informative

    This is not an overclock. For reasons unknown, Linksys chose to clock the unit at 133mhz. The chip is spec'ed by intel to run at 266mhz w/o cooling. So your not overclocking your un-underclocking :-)

  14. Re:Practically useless by mikefe · · Score: 3, Funny

    In a word...

    Yes!

    And so am I. Please enlighten us as to why people hate ARM now.

    --
    There: Something at a specific location.
    Their: Owned by someone.
    Please make sure your english compiles.
  15. Serve This! by Nom+du+Keyboard · · Score: 3, Funny
    Serve files, music...

    And be served with an RIAA lawsuit!

    --
    "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
  16. Project page slashdotted, but I have questions... by PsychoKiller · · Score: 3, Interesting

    Can it use other USB 2.0 peripherals?

    How much power does it consume? Better than a WRT54G?

    Can it be further underclocked?

  17. Re:I've been waiting for this! by qyiet · · Score: 2, Insightful

    Moreover, I don't have to give the litigious bastards (Apple, of course) any of my dough!
    I thought that was SCO's trademark.

  18. Ethernet not supported by alan_dershowitz · · Score: 2, Informative

    NOTE: First page says that the built-in ethernet isn't working under the Debian install yet. Not thinking this will be useful for most people. I'll be getting one when that's worked out, I need a low-power box to run an HTTP proxy on.

  19. Re:I've been waiting for this! by jizmonkey · · Score: 2, Insightful
    Cheaper, more efficient, faster (Disk I/O wise), more stable, more flexible (apt-get) than the Mac Mini.

    Come again? I'll give you cheaper and more energy efficient but let's not get carried away. I bet you lose the energy efficiency once you plug in an external USB hard drive too.

    --
    With great power comes great fan noise.
  20. Re:Already hacked - Linux Appliance by CaptainStormfield · · Score: 2, Informative

    RTFA. The NSLU has nothing to do with WIFI. Its a NAS device.

    --
    "The dinosaurs died because they didn't have a space program." - Niven
  21. Re:I've been waiting for this! by chrysrobyn · · Score: 3, Informative
    Cheaper, more efficient, faster (Disk I/O wise), more stable, more flexible (apt-get) than the Mac Mini.

    Cheaper? Granted, by at least 5x. More efficient? Less power, certainly, can't attest to what efficiency you're shooting for -- if its CPU cycles per cubic inch, not likely. Faster? If I put an identical IDE drive on a firewire bridge, the MacMini will be faster than some USB implementation.

    Not to mention the ability to hack it when I want (The warranty is already void!).

    Who cares about the warranty when you're doing something like this? With a Mac Mini, you're not voiding the warranty by loading an alternative OS anyway.

    My Linux box is a PowerMac 7600 with a 500MHz G3 upgrade card, running PowerPC Debian. PowerPC doesn't have all the support of the x86 world in Linux (and ARM is even worse), but Debian provides a great platform to provide support for us non-x86 platform users.

  22. Apples to Oranges... by jevvim · · Score: 4, Insightful
    faster (Disk I/O wise)

    Since both the NSLU2 and the Mac Mini support USB2, I don't really understand how one would have faster disk I/O than the other. Now, certainly, there can be questions about file system efficiency, but you could also say that the Mac Mini (for, granted, 5x the price) could have much faster I/O, since you have 256MB of RAM instead of 32MB for things like read-caching.

    more stable

    I'm very interested as to why the NSLU2 would be more stable than a Mac Mini. Personally, I think the short, square design of the Mini is more stable than the tall, tower design of the NSLU2. From a software standpoint, I'd say the two are rather comparable in stability for comparable activities (i.e., no complaining about 3D games crashing on the Mini when the NSLU2 doesn't even have a graphics chip).

    more flexible

    While the Mini's certainly not a flexibility powerhouse, I don't see the NSLU2 beating it out here, either. Software flexibility? Mac OS X has a lot of software available, both commerical and software libre (GPL/BSD). You can also run GNU/Linux on the Mini, including the Debian distribution with apt-get.

    Not to mention the ability to hack it when I want (The warranty is already void!).

    Open your Mini and replace the hard drive. Voila, both can be hacked at will because the warranty is void! ^__^

  23. If you're gonna go there... by Anonymous Coward · · Score: 5, Funny

    Hacking it will require strongarm tactics.

    Buying largue quantities means you're exercising your right to bear ARMs.

    People running to get them are conducting an ARMs race.

    A beowulf cluster of these will be called an ARMy

    Stallman's creating an OS specifically for this called GNU/HARM

    They're marketing it and calling it a Linux-Installed Micro Box System (LIMBS) with a monitor called a Linux-Embedded Graphics Station (LEGS)

    1. Re:If you're gonna go there... by kesuki · · Score: 2, Funny

      Just don't cross your ARMs you'd hate to have them conflicted.

      A black-hat hacker with one of these, can be considered ARMed and Dangerous.

      Someone lend me a hand here, because boy is my ARM tired...

      you can always beat a dead joke, with your ARM.

      $define(funny,%pARM)

      If your box ever gets lost or stolen don't forget to shout "I've lost my ARM"

      If you don't keep debian patched, you're APT to say someone Root-ed around in your ARM.

  24. If you don't want to mod... by pyrrhonist · · Score: 5, Informative
    To install Debian on the NSLU2, you'll need to do a serial port modification. If you aren't comfortable with modifying your NSLU2, than I suggest running Unslung.

    Unslung can be installed without using a serial port modification, because it simply uses the built-in Linksys web administration to upgrade the firmware to the Unslung distribution.

    Once Unslung is installed, it only takes a matter of minutes to have your NSLU2 running Samba, OpenSSH, Apache, Slimserver, and even Asterisk!

    --
    Show me on the doll where his noodly appendage touched you.
  25. "Debian ARM only supports little-endian" ? by GodWasAnAlien · · Score: 2, Insightful

    Sounds like a bug...

    Doesn't Debian run on PPC?

    What exactly are the applications that depend on the backass ints?

  26. Re:Project page slashdotted, but I have questions. by pyrrhonist · · Score: 2, Informative
    Probably about the same, but of course, a external hard drive is going to suck a lot more power...

    Unslung supports USB memory sticks, so you don't actually have to use a HD with it.

    Also, I have a 40 GB Segate attached to mine that is USB powered.

    It still might use more power than the WRT54, but at least you don't need anymore power than is available with the NSLU2's adapter.

    --
    Show me on the doll where his noodly appendage touched you.
  27. Re:More Secure? by blueskies · · Score: 3, Funny

    yeah, without an ethernet it's harder to connect to and pwn.

  28. Re:Read Slashdot post, Read TFA, Order NSLU2. 5 Mi by pyrrhonist · · Score: 3, Informative
    I want to make this a PBX using Asterisk.

    I've tried (Asterisk is already ported for Unslung). Unfortunately, the NSLU2 just isn't powerful enough for that.
    You can get one side of a conversation at most, and it's really jittery.

    Try it out anyway - it's an easy install with Unslung!

    --
    Show me on the doll where his noodly appendage touched you.
  29. Re:Overclock the slug? by tang · · Score: 4, Interesting

    Just to note, I just performed the operation and de-neutered my NSLU to full speed. I went the non-soldering route and just used a boxcutter to cut the resistor in half, then scrapped it carefully off the board. From booting down the slug , till the time it was back and operational was 5 minutes. Very easy procedure, even if you don't have a soldering iron or soldering skills.

  30. Re:More Secure? by SA+Stevens · · Score: 2, Informative

    Yes, but often the 'exploits' people make use of in, say, Samba, involves injecting a little bit of binary code into the stream that runs and gives the cracker root. On a non-x86 platform, the cracker would have to keep around different 'little bits of binary code' to inject. And it's safe to say that script kiddies won't do that. They'll move along to the next box they've found somewhere else to crack.

  31. New uses by JanneM · · Score: 4, Interesting

    [Note: I wrote about this just a day ago here; I'm paraphrasing and shortening it below]

    I just bought myself a wireless router, for the price of 5100 yen (about $45). Of course, it's a real, full single-board computer that happens to have excellent connectivity to everything. Add storage ability and interfaces through USB2 and you can start thinking up some really interesting uses for this kind of gear.

    With the kind of price we're starting to see, there's no reason to have only one. How about having two, three or more of them at home, in different rooms to get good wireless coverage anywhere? They could present themselves as being one single friendly system to its users, transparently talking to each other wirelessly and move data to where it's needed.

    The units with hard disks could be hidden away in closets or workrooms where the noise doesn't bother anyone, while the ones out in the livingroom or bedrooms would would be small and quiet and have extra communications abilities like being able to play music or show movies stored anywhere in the home network. They would act as an external redundant storage (more convenient and much safer than backing up on CD:s or DVD:s), as backup, as household web, mail and IP telephone server, climate controller and general communications forwarder (whether you are at home, using your cellphone, or being on some conference trip halfway around the world, you can get to your email, voice mail and IM in the same way).

    You need more storage or some new hardware functionality? Just get another unit. When powered on it'll join the rest of them and suddenly your home has a bit of added capacity it didn't have before.

    When highly capable hardware like this is coming down into the sub-10000yen range, a whole new range of uses is becoming feasible.

    --
    Trust the Computer. The Computer is your friend.
  32. x86 power consumption by slashdot.org · · Score: 2, Informative

    since ARM is still orders of magnitude more power-efficient than anything x86

    This is utter bullshit.

    On this page it says that at 133MHz, idle, the board consumes 8.6W. There are plenty of embedded x86 boards that run lower power and/or higher clock frequency.

    For example, here's a board that runs at 133MHz, 5 Watt at 100% CPU load.

    1. Re:x86 power consumption by renoX · · Score: 2, Insightful

      I noticed that the x86 board you refer to has half the DRAM,no 10/100 Ethernet interface, maybe this help for the power consumption? (it probably doesn't explain the whole difference)

      What would be interesting also is comparing the SpecInt (and also SpecFP for fun) of these two processors..
      Clock speed isn't a good performance indicator: traditionnaly RISCs have been more powerful than x86 at a given clockspeed, but I don't know if this is the case here.

  33. Re:Performance? by apa666 · · Score: 2, Interesting

    Well, your P-75 probably has the advantage of virtual memory. Embedded devices usually don't.

  34. Re:Practically useless by Anonymous Coward · · Score: 2, Informative

    The ARM610 (1993ish vintage) was regarded as more powerful than a 486DX - a contemporary chip. ARM CPU designs do get more powerful, though there are also lower power devices in the current range, but the prices are nowhere near 1998 desktop prices. Look at the Philips LPC2000 series - under $10 for an ARM7 microcontroller with decent memory, flash and I/O.

    I don't see why the inability for some people to program the device should reflect on it's capability (and I wouldn't call VoIP trivial)

  35. Re:Stereo component with HDTV and digital audio by Anonymous Coward · · Score: 2, Interesting

    The Roku PhotoBridge ( http://rokulabs.com/products/photobridge/index.php ) has a 300MHz MIPS processor, high-definition video output, and digital audio out, all for under $300. Plus Linux is already preloaded, it couldn't be easier. Just plug it in and log on. There is even an SDK and active developer forums at http://rokulabs.com/forums/

  36. Full Debian SH for Under $200 in Japan by kinneko · · Score: 4, Interesting

    See this one.
    You can buy it with $160.
    http://supertank.iodata.jp/products/sotohdlwu/

    CPU: SH-4/266MHz
    DRAM: 64MB
    NIC: 100BASE-TX (Realtek)
    USB: 2.0 x2 (NEC)
    SerialConsoleCable: (not include. extention$33)
    HDD: 3.5 ATA HDD x2 (not include)
    OS: Debian GNU/Linux SH (iohack version)
    kernel: 2.4.21
    daemons: mt-daapd, akaDAV, vsftpd, wizd,
    mdnsresopnder, telnetd

    Web reviews (Japanese)
    http://pcweb.mycom.co.jp/column/jisakuparts/023/
    http://bb.watch.impress.co.jp/cda/special/10056.ht ml
    http://bb.watch.impress.co.jp/cda/special/10074.ht ml

  37. Limited memory :-( by Mark+Gillespie · · Score: 4, Informative

    The crippling factor on the NSLU2 is the limited memory. Fine for what it's intended to do, but they to expand it's capabilities, and you hit the wall. Many people have this problem when trying to use it as a UPnP Mediaserver (using Twonkyvision). The hardware is simply not powerfull enough, or enough memory to cope with large scale media databases and heavy network media streaming.

  38. Re:yes.. by ajs318 · · Score: 2, Interesting

    If you can get hold of a copy of the Windows source code, I'm sure you could compile it to run on this device. Of course it's possible that Windows also has endian issues of its own. But that's because those stupid people at Motorola decided to put the "units" last instead of first. Human beings tend to write numbers that way, because it makes for easier magnitude comparison; but when doing mathematics you have to work backwards: units, tens,hundreds ..... so processor manufacturers such as Intel and MOS Technologies figured to put the units first and the 256es second. 8080 code took up more space than 6502 code so Intel soon found themselves having to put the 65536es third and the 16777216es fourth, but that's by the by. Meanwhile Motorola stuck with their arse-about-face numbers.

    The original ARM1 was a pure 32-bit processor, with a 32-bit-wide word and no inbuilt concept of "byte order" as such. Its instruction set was inspired by the 6502, which powered the venerable BBC microcomputer; but with every instruction conditional. The ARM1 had no NOP instruction as such, but there was a "never" condition {the better for writing automutative code, since one need only alter the condition bits in an instruction to block its execution, but preserve the order bits. A simple loop can "comment out" a vast swathe of program; and, thanks to fully conditional execution, the same code can be used later to restore it by using a processor flag to signal "enable" or "disable"} but this rather wasteful {for the time; memory was expensive in those days} setup was eventually abandoned, and most of the "do something never" instruction codes were reused in later ARM revisions for extended instructions.

    There is only one branch instruction in ARM1 assembly, BL. It makes the jump and stores the address that would have been next in a register. If you know that your subroutine is not re-entrant and you don't need that register for anything else, you don't need to worry about a stack. If you don't care about returning you can just ignore it.

    --
    Je fume. Tu fumes. Nous fûmes!