Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Embedded Systems

Virtualization and Pixelation


Rules of Engagement

At the software level, a DPF should be a classic deeply embedded system: Nobody cares about the computer inside. That rules out user education, detailed instructions, tedious care and feeding, and, in particular, Screens of Death. Basically, you don't want yet another PC administration headache.

I decided my users should transfer pictures using ordinary USB memory sticks, as they can simply drag-and-drop images from one folder to another. Remembering to unmount the stick in Windows may pose a problem, though, as it does for everyone. They then simply pop the stick in the DPF, wait for a reboot, yank out the stick, and that's all it takes.

I've seen Windows-based DPFs, but that OS doesn't make sense for this application even if you ignore the ever-present EULA issues. It's simply too easy to blow away a FAT or NTFS filesystem with an inadvertent powercord tug. WinCE may have its points, but friends don't let friends embed consumer-grade Windows, okay?

So we'll build a Linux-based DPF with some attention to hardening the filesystem. You could use any UNIX OS, but Linux wins hands down for being cheap, readily available, and well supported. I used Slackware for this project because it can have a small footprint and offers straightforward configuration; complex system management scripts just aren't appropriate for this task.

On the hardware side, any x86 laptop built in the current millennium should suffice. I started with an IBM Thinkpad 560Z from eBay (24 bucks, delivered, with no hard drive). It was built in 1998, has some limitations that make for a good story, and is about as ancient as you should get. You don't want a new, big, fast, hot laptop hanging on the wall, so fish in the ultracompact end of the pool. Remember: Power costs two bucks per watt per year, so a 20-W laptop burns $40 every year.

DPFs must not have noisy motors, so I added a 2-GB Compact Flash card ($13 after rebate), a CF-to-IDE adapter ($5, eBay), and a 64-MB DRAM card ($22, eBay). Total cost, delivered, under 70 bucks, but your mileage may vary.

You will, however, need a Linux desktop box for the software development tools. If you don't have one, you should, for all the usual reasons in addition to what you'll see in this column. You can boot a live CD version of a Linux distro to avoid installing it or, worst case, buy the cheap laptop and a small hard drive, install Linux, get the DPF code running, then convert the laptop into the DPF.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.