Open main menu

DAVE Developer's Wiki β

Deploying Embedded Linux Systems

Revision as of 13:08, 10 May 2012 by SampleUser (talk | contribs) (Moving to the field)

Info Box
Tux.png Applies to Linux


Contents

IntroductionEdit

Deployment of Embedded Linux systems is the typical operation which follows the development phase. When the application is ready and fully tested in the develoment environment, it's time to take the system to the field for the “real work”. This phase brings a lot of concerns to cope with, for example creating a suitable root filesystem, saving the data properly, implement successful on-the-field update strategies. This how-to guide explains how to solve the problems connected to the deployment of an embedded linux system.

The development environmentEdit

The following figure illustrates the typical developing environment for an Embedded Linux system: it is composed by a host machine and a target machine.

 

The host (usually a PC or a virtual machine running the Linux operating system) is used by the developer to (cross-)compile the code that will run on the target, for example a Dave ARM CPU module such as Lizard or Naon. The Linux kernel running on the target is able to mount the root file system from different physical media. During the software development, it is very common to use a directory exported via NFS by the host for this purpose. Moreover, the linux kernel is usually retrieved by a simple network transfer protocol like tftp.

Moving to the fieldEdit

When the system is ready to move to the field, most of the times the particular link between host and target must be removed. In the worst case, the system must run without any NFS filesystem or file transfer services, relying only on its hardware resources (for example, the on-board ram and flash memories). Resources that are obviously limited, due to the nature of the embedded systems. Generally speaking, the procedure used to deploy the system configuration highly depends on the specific application; however, some topics are quite common. The following sections shine a light on these topics.

Root file systemsEdit

StrategiesEdit

Creating the root file systemEdit

Deployng the root file systemEdit

WatchdogEdit

Startup sequenceEdit

Setting the MAC addressEdit

On-the-field software upgradesEdit