Search by Tags

Production Programming for Linux

 

Article updated at 27 Aug 2019
Subscribe for this article updates

Introduction

Toradex provides several ways of installing Embedded Linux on a module. There are methods better suited for development and production. This article intends to point to every available method and explain their differences.

Toradex Easy Installer

The most straight-forward way to install any OS or distro on a Toradex module is through the Toradex Easy Installer platform. It comes pre-installed with new modules and is very intuitive to use. There are a few caveats when dealing with production programming which will be explained.

Note: Please note that not every module is compatible with the Toradex Easy Installer. A list of compatible modules can be found on its article.

Flashing the image

  • A complete overview on how to use the Toradex Easy Installer can be found on its detailed manual.

  • There are two different approaches to load Toradex Easy Installer on a module: loading from a USB drive or SD card; or through the USB OTG port. Both are described on the Load Toradex Easy Installer tab.

  • To flash the module, it's possible to either use one of Toradex's available images (from our OS and Demo Images) or use your own build provided by a USB drive, SD card or a local server (as explained in this section).

Extra tools for production

There are a few extra tools that the Toradex Easy Installer provides to aid production programming. Namely:

  • Auto install: It is possible to pre-select which image will be installed without choosing it manually. The auto-installation section provides instructions on how to set this up, on the Toradex Easy Installer article.

  • Unattended Flashing over Ethernet: As an additional tool for auto installing images, it is possible to provide the image, from the host PC, through a web server (e.g. nginx) along with a DNS server. Together with the auto-install feature, the image is flashed as soon as the module connects to the internet. For instructions, visit the Unattended Flashing over Ethernet section at the Toradex Easy Installer article.

  • For more information visit the Toradex Easy Installer article, more specifically the Detailed Manual, Configuration Files, Custom Boot, and Create Image tabs.

Legacy Methods

Using the Toradex Easy Installer is the most straight-forward way to flash an image to a module, in development or production. However, if your module doesn't support it, the Legacy Method must be used instead.

Note: Legacy flashing method does not imply that the embedded Linux image is legacy. Warning: If possible you should use Toradex Easy Installer and not this legacy methods. In newer images, the legacy methods won't be available anymore.

It is possible to flash either through Ethernet or from a SD Card/USB Drive. The following methods are suited for both development and production.

TFTP/NFS for automated flashing over Ethernet

  • An important article to read beforehand is How to Setup Networking for Embedded Linux Application Development. It explains the general concept, as well as sets up the TFTP/NFS server on your host computer to serve the client (module).

  • On a development environment, the Boot From a TFTP/NFS server article provides detailed information on how to setup U-Boot to boot from a server hosted on your development PC for rapid and dynamic prototyping.

  • Then, on production environment, the Flashing Linux Over Ethernet article provides information on how to flash images from a TFTP server running on your local machine.

Using SD Card/USB Drive

This method uses bash script to flash the image from a USB drive or SD Card to a module. Instructions are specific to each SoC, the following links provide more information regarding each one: