Thursday, December 13, 2007

Linux From Scratch

A few years ago, I posted a how-to on building your own bootable Linux flash disk. At the time, I was a little peeved about how much buying a pre-built Linux disk cost and how little it did, so I basically wrote out a recipe to pare down Slackware, swap in BusyBox, and arrive at a ~32MB Linux image.

Overall I've been quite pleased with the results-it's proven to be quite reliable. Unfortunately it's also frozen in time-it's very difficult to add or update system software, or even to update the kernel for that matter. So with that in mind, I started looking at the Linux From Scratch project to really do it right this time around. If you're curious, here's how to do it:

  1. Get yourself an external hard drive, and start reading Linux From Scratch. Do everything on the external hard drive-you're effectively building yourself a development environment for later use.
  2. Get yourself a boot device (Compact Flash card, another hard drive, etc.) that you'll use for your embedded project. Install your newly-minted Linux distribution on it.
  3. Add features and functionality with Beyond Linux From Scratch.
And that's about it-of course I've leaving out steps like shrinking the final image and so on, but this is the general outline of what to do. If you're curious I can post the full recipe.

My end product came out quite nicely-although it's much larger than the original Linux image I made way back when (167 MB compared to 32 MB for a minimal install), it is a much better engineered product and has a lot more functionality. What you end up with is an image to be installed on your embedded device, plus that external hard drive of yours ends up being a portable development environment-you just chroot in from any Linux machine, compile your software, and it'll directly port to your embedded device.

All in all I can definitely recommend LFS as probably the best place to go for the DIY crowd. I'd have to say that it's also given me a deeper appreciation for the reasoning behind the GNU/Linux vs. Linux nomenclature debate. You really begin to realize as you progress through LFS and BLFS that the Linux kernel is really just one part of a much larger system that makes the complete OS. I don't know if I'm ready to adopt the GNU/Linux label just yet, but I do understand now where its proponents are coming from.

Wednesday, December 12, 2007

Workstation Recommendations?

Long time, no write. Among other things, my aging R3000Z has been a huge factor in the lack of posts-it's now to the point where I simply don't trust it for anything more complicated than web surfing. Some days it seems barely capable of that-YouTube videos are a big no-no. As a result most of my work at home has ground to a complete halt, blog included.

Which brings me to today's topic-workstations! I've pretty much come to the conclusion that I'd like to go desktop this time around, but I'm looking for something with a lot of horsepower and a fairly long useful lifetime. Here's my short list of candidates, along with what I'm thinking about them right now.

Dell XPS 420
Strictly speaking, not a workstation, but I think it compares favourably with a nice Quad Core and I'm not enamoured of Dell's workstation line. I've never owned a Dell, and I'm a little leery of the build quality here. I do like the looks of this system (Wow-I never thought I'd say that about a Dell!), and I suppose I can always slap Linux on here alongside Vista.

Sun Ultra 24
This appears to be a fairly new system, or at least I don't remember seeing it until recently. I've been experimenting with an Ultra 60 for a few months now and I've been very impressed with Sun's build quality. Solaris seems to be a rock solid operating system, if a little dated visually; hardware compatibility is possibly an issue here as well. Of course as an x86 machine the Ultra 24 will handle Linux and Vista, but I don't know if I like the video card options here-NVS290 card seems to be a requirement in that you can add another video card but you can't opt for replacing the NVS290 instead.

Apple Mac Pro
I like the expandability and potential for customization here. I've heard the rumours that a refresh of the line is coming down the line in early 2008 (January maybe?), so it might be worth holding out for a while just to see. There is the issue of the "Apple Tax" here, although price-wise it competes favourably with other Xeon dual processor machines I've looked at so far. Video cards seem a little dated, though.

TuxBox FullTails
Boutique sellers like TuxBox offer a lot for the money, and I expect that the build quality here is quite good. I am a little leery of smaller outfits as unknowns in general, and the TuxBox site seems to be unavailable semi-frequently. They're a fairly new outfit I think, so it could just be growing pains for the company.

TuxBox LabCoat
Another nice TuxBox system, although AMD isn't my Number 1 choice for processors right now.

CyberPower
JNCS
Xi Computer
Thinkmate
Just some of the other boutique sellers I've looked at-no particular makes or models in mind.

If you think I should look at another system or run screaming into the hills away from one of the ones I've listed, let me know!