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.
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.
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).
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.
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.
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.
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: