I picked up a small form factor Mini-Box M200-LCD Barebone System. It is a nice small embedded systems unit with a backlit LCD and front panel buttons. I chose a unit with a 1GHz processor, 512MB of memory, and a 40GB harddrive. The unit does not have a floppy drive or a CDROM drive. It does come with ample USB slots. It also has a Compact Flash slot hidden behind a door on the front.
With a little bit of fiddling, I was able to Debian installed and running on the unit.
Here is what I did to get it up and running.
The Compact Flash is configured as a Master device on the second IDE channel.
I chose to use a USB Key to boot strap the unit into network mode to get the full Debian
distribution installed.
The USB key needs to be created on another Linux system, in this case I used a VMWare'd
version on an XP box, . (WinImage
was suggested to me, but I could never get it to work according to what little instruction I
could find). In VMWare, I needed to associate the USB controller to the VMWare session.
Windows saw the USB drive disappear as a result. When I inserted the USB Key into USB slot,
the Linux console indicated the drive name to be used. In this case, it was /dev/sdc.
I downloaded the netinst iso image from the Debian package site. I also obtained the boot.img.gz boot image for the distribution. Pascal Le Bail has a web
page called Installing Debian Sarge
from a USB memory stick (USB key) where he explains the simple process. The
instructions have been incorporated into the Debian
Installation Manual.
Once the files are available, a short series of commands makes the key bootable:
zcat boot.img.gz >/dev/sdc1
gets the image onto the USB Key.
mount /dev/sdc1 /mnt
cp netinst.iso /mnt
gets the iso installed on to the key.
The USB key can then be plugged into a USB slot on the Mini-Box and the power turned on.
In the bios, the secret is to:
- set USB ZIP as the first boot device
- in the USB settings, turn on USB legacy mode
The Mini-Box will boot in to the Debian installer and allow a network
download/configuration of a Debian installation.
The interesting part of the Mini-Box is it's LCD/Button front panel. A sample program
and SDK have been made available.
There is a demo program called usblcd available to show how things are done. The source and SDK can be
downloaded and built.
Assuming Debian's build tools have not been installed, here are the build steps:
apt-get install autoconf
apt-get install gcc-4.1-base
apt-get install gcc-4.1
apt-get install gcc
apt-get install automake
apt-get install binutils
apt-get install binutils-dev
apt-get install libtool
apt-get install libusb-dev
apt-get install libhid-dev
./autogen.sh
make
make install
You can then use commands like:
usblcd backlight 1
usblcd backlight 0
usblcd backlight 1
usblcd led 2 1
usblcd led 2 0
usblcd clear