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

  Home arrow Linux For Devices Articles arrow HowTo: Embedding Red Hat Linux in a DiskOnChip

HowTo: Embedding Red Hat Linux in a DiskOnChip
By Don Davies

Rate This Article: Add This Article To:

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:


Discuss HowTo: Embedding Red Hat Linux in a DiskOnChip
 
>>> Be the FIRST to comment on this article!
 
 
 
>>> More Linux For Devices Articles Articles          >>> More By Don Davies
 



FUEL Database on MontaVista Linux
Whether building a mobile handset, a car navigation system, a package tracking device, or a home entertainment console, developers need capable software systems, including an operating system, development tools, and supporting libraries, to gain maximum benefit from their hardware platform and to meet aggressive time-to-market goals.

Breaking New Ground: The Evolution of Linux Clustering
With a platform comprising a complete Linux distribution, enhanced for clustering, and tailored for HPC, Penguin Computing¿s Scyld Software provides the building blocks for organizations from enterprises to workgroups to deploy, manage, and maintain Linux clusters, regardless of their size.

Data Monitoring with NightStar LX
Unlike ordinary debuggers, NightStar LX doesn¿t leave you stranded in the dark. It¿s more than just a debugger, it¿s a whole suite of integrated diagnostic tools designed for time-critical Linux applications to reduce test time, increase productivity and lower costs. You can debug, monitor, analyze and tune with minimal intrusion, so you see real execution behavior. And that¿s positively illuminating.

Virtualizing Service Provider Networks with Vyatta
This paper highlights Vyatta's unique ability to virtualize networking functions using Vyatta's secure routing software in service provider environments.

High Availability Messaging Solution Using AXIGEN, Heartbeat and DRBD
This white paper discusses a high-availability messaging solution relying on the AXIGEN Mail Server, Heartbeat and DRBD. Solution architecture and implementation, as well as benefits of using AXIGEN for this setup are all presented in detail.

Understanding the Financial Benefits of Open Source
Will open source pay off? Open source is becoming standard within enterprises, often because of cost savings. Find out how much of a financial impact it can have on your organization. Get this methodology and calculator now, compliments of JBoss.

Embedded Hardware and OS Technology Empower PC-Based Platforms
The modern embedded computer is the jack of all trades appearing in many forms.

Data Management for Real-Time Distributed Systems
This paper provides an overview of the network-centric computing model, data distribution services, and distributed data management. It then describes how the SkyBoard integration and synchronization service, coupled with an implementation of the OMG¿s Data Distribution Service (DDS) standard, can be used to create an efficient data distribution, storage, and retrieval system.

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.

Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
PLATINUM SPONSORS

 
 

 
 

 
 

GOLD SPONSORS


(Become a sponsor)

(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

Mobile phones!

MIDs, UMPCs
& tablets

Mobile devices

Other cool
gadgets

Resource Library

• Unix, Linux Uptime and Reliability Increase: Patch Management Woes Plague Windows Yankee Group survey finds IBM AIX Unix is highest in ...
• Scalable, Fault-Tolerant NAS for Oracle - The Next Generation For several years NAS has been evolving as a storage ...
• Managing Software Intellectual Property in an Open Source World This whitepaper draws on the experiences of the Black Duck ...
• Open Source Security Myths Dispelled Is it risky to trust mission-critical infrastructure to open source ...
• Bringing IT Operations Management to Open Source & Beyond Download this IDC analyst report to learn how open source ...


BREAKING NEWS

• NAS system houses 2.5-inch drives for up to 6TB
• Atom SBC boasts special low-power mode
• Android leaps to rugged handheld, and more phones
• Simulator runs Android apps on Ubuntu
• Fanless industrial PC taps Atom
• Router platform runs OpenWRT Linux
• Feature-packed UMPC survives four-foot drops
• UMPC pioneer gives up the ghost
• Biodegradable, solar-powered netbook runs Linux
• Hypervisor rev'd for higher reliability
• Eurotech spins Atom development kits
• Home media server to demo on Intel Atom platform
• Atom boards feature fanless DC operation
• Low-cost pluggable NAS adds Linux support
• Taiwan open source conference sets agenda


Most popular stories -- past 90 days:
• Linux boots in 2.97 seconds
• Tiniest Linux system, yet?
• Linux powers "cloud" gaming console
• Report: T-Mobile sells out first 1.5 million G1s
• Open set-top box ships
• E17 adapted to Linux devices, demo'd on Treo650
• Android debuts
• First ALP Linux smartphone?
• Cortex-A8 gaming handheld runs Linux
• Ubuntu announces ARM port


DesktopLinux headlines:
• Simulator runs Android apps on Ubuntu
• Hypervisor rev'd for higher reliability
• Pluggable NAS now supports Linux desktops
• Moblin v2 beta targets netbooks
• Linux-ready netbook touted as "Student rugged"
• USB display technology heading for Linux
• Ubuntu One takes baby step to the cloud
• Game over for Linux netbooks?
• Linux Foundation relaunches Linux web site
• Dell spins lower-cost netbook


Also visit our sister site:


Sign up for LinuxForDevices.com's...

news feed


Or, follow us on Twitter...