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

Keywords: Match:
A developer's review of Red Hat's Embedded Linux Developer Suite (Part 3)
(continuation)

Building target images for three SBCs

Despite the GUI and documentation provided with ELDS, I did manage to configure and build kernels and root filesystems for the three single-board computers I'm using as test platforms for this series of reviews. The SBCs -- an Ampro Little Board/P5x, a Jumptec-Adastra VNS-786L, and a WinSystems EBC-TXPlus -- are all x86-based, but with disparate peripheral hardware.

At this point, an average user, having a kernel and root filesystem sitting on a development host hard drive, might be wondering how these are going to end up on the target. If you have read the previous reviews in this series, you know that Lineo's Embedix provides numerous well-documented and well-implemented methods of deploying target images; and that MontaVista's Hard Hat Linux provides fewer options, but certainly recognizes the responsibility of an Embedded Linux toolkit vendor to provide some assistance with deployment.

ELDS users, however, are on their own. Documentation is provided for exactly one target: Intel's StrongARM-based Assabet board. x86 users are dismissed with a link to the LILO HOWTO, some uselessly vague (and erroneous) instructions on setting up a boot partition, and a warning that the process is "tricky". Other platforms are essentially not addressed at all.

I find it incredible that Red Hat essentially skipped the important issue of target deployment. But for this series I set out to get images from each toolkit running on the three SBCs, so I'll fill in one way to deploy target images to x86 SBCs.

One especially useful way to develop software in a cross-development environment is to boot from a floppy drive, but mount the root file system using NFS from the development host. Although floppy drives are not particularly common in embedded systems, they can often be added temporarily, especially in the case of x86-based SBCs. The kernel is installed on the floppy, along with instructions on where to get the root file system. You can then write and cross-compile your application software on the cross-development host in the NFS-mounted share. The process can then proceed almost as with native development, requiring no special operations between compiles. When satisfied with the software, you can transfer the kernel and root file system to an appropriate volume on the target, reconfiguring the kernel as appropriate.

How to accomplish this in ELDS is by no means obvious. The cryptic "Meta Configuration" screen, under the equally cryptic submenu "Fstab", contains an option that seems to allow an NFS-mounted root file system to be used. But it contains no supporting documentation, and how to use it is not clear. I therefore chose to use the standard Linux method, described in the Documentation/nfsroot.txt file in the kernel source tree; along with the Syslinux boot loader.

The outline of the process is as follows . . .
  • Configure the kernel. In the "Networking options" menu you must select "IP: kernel level autoconfiguration". In "File Systems", select the "Network File Systems" submenu; select "NFS file system support" and "Root file system on NFS". Build the kernel.

  • After creating the root file system, share it via NFS. Add an entry to the /etc/exports file on your cross-development host. Mine looked like this (for my Ampro SBC build): "/disk2/elds/ampro/target-fs *(rw,no_root_squash)". Restart NFS: "/etc/rc.d/init.d/nfs restart".

  • You have to pass arguments to the kernel command line to tell it to mount the root file system via NFS. To do so you need a bootloader that supports kernel command line arguments. One of the more convenient floppy-oriented x86-based bootloaders is Syslinux, which is provided with many Linux distributions. Basically, you format a floppy as FAT, place the kernel and a configuration file on the floppy, and run 'syslinux' on it to prepare it to boot. On my system, the "syslinux.cfg" file contained (again, for the Ampro example): "append root=/dev/nfs nfsroot=192.168.123.178:/disk2/elds/ampro/target-fs ip=192.168.123.200:192.168.123.178:::::off". This example works for the common case of both target and cross-development host being on the same subnet. Further details can be found in the nfsroot.txt file and in the syslinux.doc file provided with Syslinux.

  • Finally, simply boot the floppy.
Numerous alternatives to and variations on this procedure exist, including the ability to determine the NFS host via DHCP, BOOTP, or RARP. In any case, this is one way to get ELDS running on x86-based SBCs.

--- Continued ---



Story navigation . . .

(Click here for further information)


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...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
(Become a sponsor)
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

• "3G" HP netbook boasts Atom, ExpressCard expansion
• Mini-notebook chips suitable for Linux devices?
• Single-drive NAS runs ARM Linux
• Linux fast-boot add-on reviewed
• Linux NAS/iSCSI server adopts Atom
• Superscalar ARM SoC runs Linux
• "Zubuntu" keeps Zaurus spirit alive
• i.MX515 targets Linux netbooks
• Palm "Nova" Linux set for CES debut?
• German Linux integrator launches workshops
• In memorium: Thiemo Seufer
• Browser for Linux devices hits second alpha
• OpenSUSE changes licenses
• "...and I'm Linux" contest nears
• COM Express module sports Atom


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:
• A peek at Phoenix HyperSpace
• Linux desktop gains kid-friendly browser
• OpenSUSE Community Manager discusses 11.1 release
• "...and I'm Linux" video contest approaches
• OpenSUSE rev's license, build system
• Linux gains fresh "AIR"
• Video-call software boasts HD quality
• Sun rev's "open source" desktop VM manager
• Open source music player rev's up
• Fedora 10 dubbed a "solid" chapeau


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

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.