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

Keywords: Match:
A developer's review of MontaVista's Hard Hat Linux SDK (Part 3)
(continuation)

Cross-development

So unless you are willing to go to considerable trouble, realistic software development under Hard Hat consists of using the cross-development model from beginning to end. This process is fairly well documented for supported SBCs, though it involves quite a few steps.

For the Ampro board (my one supported board), this consisted of . . .
  • Create a boot floppy disk by dd'ing a prebuilt boot image specific to the board onto a floppy disk.

  • Installing xinitd and dhcp onto my cross-development host from the Red Hat distribution disks. Other distributions require other packages.

  • Set up the DHCP daemon on the host to respond to a BOOTP request from the target and download its boot image. This is well documented if somewhat tedious, involving typing in the entire /etc/dhcpd.conf file and running chkconfig to get the daemon started on every bootup. (Handling this detail automatically for the user on installing the LSP would be an easy and welcome enhancement for MontaVista to add to the installation process.)

  • Similarly for setting up NFS. You edit /etc/exports and run chkconfig. (Again, I see no reason this tediousness could not be performed by the installation process.)
At this point, the target can be booted from the floppy created in the first step, after connecting the host and target with an Ethernet connection. The target boots from the kernel on the boot floppy, then mounts the root filesystem on your development host over NFS.

Booting and configuring the target

Target deployment is perhaps the weakest area of Hard Hat, having the poorest documentation. Support for target deployment consists of the following statement in the manual: "You can now use fdisk, mke2fs, and lilo to format and install the target environment on a hard disk attached to the target." Clear enough for an experienced Linux user, perhaps, but a novice will need a bit more detail. And no mention is made of alternative means of deployment, such as creating an ISO image of the system for booting from CD-ROM, or creating a set of floppy disks to be loaded onto the target system.

Like deployment, target configuration under Hard Hat is simple enough if you are already experienced with Linux. Otherwise you will have to crack open some Linux system administration books, because Hard Hat provides scant help for you. The init system is the arcane SysVinit familiar to most desktop Linux users, complete with multiple runlevels, though these are seldom needed in embedded systems. BusyBox, which provides a simple init system as well as replacements for a multitude of Unix-oriented utilities, is available but barely documented and not enabled by default. This is surprising, since BusyBox has become nearly a standard for use in embedded Linux systems.

The rest of configuration is in a similar vein. If you are already well familiar with Linux, you should have no problem. But then, old-timers may not have much need for a commercial toolkit in the first place -- building and using the GNU tools and the Linux kernel is not that difficult for them. But for Linux non-specialists looking for a toolkit to handle the environment so they can concentrate on their applications, Hard Hat may prove to be more effort than they bargained for.

The help provided for configuring and building LSPs for non-supported SBCs is similarly sparse. Experienced Linux users can probably guess that they should start with a kernel for a similar but supported board, reconfigure it for the board's peripherals, build it, and load it onto a floppy as in the earlier described procedure. This procedure worked fine for building LSPs for the other two boards I used for this review, namely the Jumptec/Adastra VNS-786L and the WinSystems EBC-TXPlus. Both booted, connected to my DHCP server, mounted the proper filesystem over NFS, and functioned perfectly after I configured their respective kernels with the proper Ethernet driver. But one could not gather any of this from Hard Hat's documentation.

--- 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
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets



BREAKING NEWS

• Hacker-friendly karaoke PMP runs Linux
• Maemo gains KOffice port
• OLPC partners with Amazon, ITU
• "cJTAG" debuts
• First $100 laptop runs Linux
• First Linux on Everest
• Dell ships Ubuntu- and Atom-based netbook
• Smallest x86 board ever?
• MontaVista Vision gains focus
• "Olympics" phone runs Linux
• Android Challenge winners push location awareness
• Atmel-based industrial SBC runs Linux
• Atom squeezes onto Pico-ITX board
• Via frees Chrome graphics driver source
• Webinar dissects Linux multicore migration


Most popular stories -- past 90 days:
• Open source phone goes mass-market
• Updated! Linux Mobile Phones Showcase
• World's cheapest Linux-based laptop?
• Garmin Nav devices run Gnome Linux
• First Atom-based notebook runs Linux
• ARM9 board boots Debian in 0.69 seconds
• Open source camera records geotagged video to SATA HDD
• Linux-friendly Beagle fetches $150
• "PDA phone" runs Linux
• Intel offers $80 "Little Falls" Atom mobo
• Netflix Player runs Linux


DesktopLinux headlines:
• OSCON 2008 presentations, videos posted
• Debian distro named for little green man
• Google spins web browser
• Summit debuts for Linux end users
• "UbuntuLite" reviewed
• Linux in the SME
• Linux: not yet photo-friendly
• Linux to gain anti-virus software
• Linux gains backup utility
• Testing Lenny


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.