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

Keywords: Match:
HowTo: Embedding Red Hat Linux in a DiskOnChip
by Don Davies (Dec. 5, 2003)

Foreword: The following detailed technical whitepaper was written by Don Davies, who developed it in the course of his work with the PROTOR, a distributed vibration monitoring system. Below is an excerpt, followed by a link for downloading the complete 24-page whitepaper.



Embedding Red Hat Linux in a DiskOnChip
by Don Davies

This note describes the setup and configuration of a development system for a suitable single board computer which supports the solid-state DiskOnChip device from MSystems Inc. The note also shows how to access the DiskOnChip from within a Linux environment and how to make the system bootable from DiskOnChip so that no hard disk is required. In order to run Linux from a DiskOnChip device some details are provided on the essential files needed from a standard Red Hat Linux distribution, together with some useful utilities which allow a fully functional, small-footprint Linux system to be stored and run from a 32MB DiskOnChip device.

PROTOR is the setup and configuration of an embedded single board computer for remote monitoring applications. The embedded processor sits within a special purpose chassis along with data acquisition and conditioning modules. External communication is via Ethernet and internal via both PC/104 and USB. These units may be installed in potentially harsh environments and so a system which supports solid-state storage rather than a mechanical device is required. These units also run Linux as this provides the most reliable, best cost-performance platform for a remote monitoring applications.

1.1 Hardware Details

The single board computer chosen as the embedded processor for these units is the Nova 7892 card by ICP Electronics Inc (www.icpacquire.com ). This card meets all the general requirements of an SBC for use within PROTOR. Other cards with similar facilities are available from other manufacturers.
  • Footprint -- 146 x 203 mm ( 5.25-inch footprint)
  • CPU -- Supports Socket 370 Celeron and Pentium III CPUs
  • Memory -- Supports one 168-pin DIMM socket ( upto 256Mbytes)
  • Ethernet -- On-board Intel 82559 10/100 Mbps interface with RJ45 connector
  • PC-104 -- Supports PC-104 expansion
  • USB -- Supports 2 USB Ports
  • Solid-state storage -- Supports M-System DiskOnChip
For the PROTOR application the NOVA-7892 card has been populated with an 866MHz Pentium III CPU and 64MB of memory. For initial development a standard IDE hard disk is used. The eventual embedded application code is to run under Linux from DiskOnChip.

A general development system for the embedded system was assembled which consisted of:
  • Nova 7892 SBC
  • Pentium III CPU
  • 64MB memory
  • 4GB IDE Disk
  • 32MB DiskOnChip
  • 1.4MB floppy drive
  • CD-ROM drive
1.2 System Configuration

In order for the DiskOnChip device to be recognised by the system BIOS and therefore useable within this environment it must firstly be initialised and formatted. Unfortunately the tools necessary to perform this action are DOS based. Therefore, for this development environment, the hard disk for the system is best partitioned with a small 32Mbyte partition was reserved at the beginning of the disk for DOS. The rest of the disk was reserved for the Linux system and Linux swap partition. example configuration. The following is an example configuration:
Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 5 495 3911827+ 83 Linux
/dev/hda2 * 1 4 32098+ 4 FAT16 32M
/dev/hda3 496 524 265072+ 82 Linux swap
The system was initially booted from a standard DOS boot floppy. The hard disk partitioned and the initial DOS partition (C:\) formatted and made bootable.

2.0 DOS Development Environment

As mentioned in the previous section a simple DOS development environment is required for the initialisation and formatting of the DiskOnChip device. This environment is only required for the initial setup of the device. Once the DiskOnChip has been formatted, Linux loaded and made bootable then DOS is no longer required. The following describes the tools needed for the DOS environment in order to simplify the DiskOnChip development . . .



Read full whitepaper here:

Embedding Red Hat Linux in a DiskOnChip
(59K PDF download)



About the Author: -- Don Davies graduated from Southampton's Institue of Sound and Vibration Research in 1979 and is now a director of Prosig Ltd. Don has been involved in recent years in the development of PROTOR - a remote, distributed vibration monitoring system for the power generation industry.


The above text and the full downloadable whitepaper are copyright © 2003 Don Davies. All rights reserved. Reproduced by LinuxDevices.com with permission.



Related stories:

(Click here for further information)


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.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


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
HOWTOs: from DevShed & IBM DeveloperWorks:



BREAKING NEWS

• Balanced XIP and the AXFS filesystem
• ARM-based controller has StackableUSB expansion
• Intel multi-core threading library supports Sun Studio
• Multi-protocol wireless mesh gateway runs Debian
• Embedded Linux is doomed. DOOOMED!
• Article explores Linux hot-patching utility
• Sun demo's RIA tools on Android
• Panel PCs support PoE, Linux
• New Palms on horizon?
• Embedded track added to Linux conference
• Ubuntu ported to a PDA
• Linux-friendly SBC hosts dual quad-core Xeons
• Embedded Linux SQL database adds Java, C# bindings
• Lightweight, embedded graphics framework rev'd
• Shock resistant automation computer runs Linux


Most popular stories -- past 30 days:
• Ubuntu ported to ARM
• Linux still top embedded OS
• Linux gains new architecture support
• Linux 2.6.25 release bolsters ARM
• Linux-based diskless notebook costs under $300
• Low-cost MP3 player gains fancy Linux port
• Dutch UMPC runs Ubuntu Linux
• Mini-notebook boasts Linux, near-fullsize keyboard
• PC/104 module runs x86 Linux on 1.85 Watts
• Low-cost Linux-based NAS device supports RAID 1
• Free router distro gains wild WiFi features


Linux-Watch headlines:
• Running a small business on desktop Linux
• Sun launches OpenSolaris
• Via tiptoes toward openness
• Linux certification comes to Italy
• Installing Ubuntu Hardy Heron as a web hosting server
• Black Duck Buys Koders
• Open source conference co-locates with Ubuntu show
• Ubuntu 8.04 ready to challenge Windows
• KDE Linux reaches 52 million Brazilian kids
• Free x86-based Linux router distro rev'd


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.