beautypg.com

ProSoft Technology MVI56E-LDM User Manual

Page 36

background image

Development Environment

ControlLogix Platform ♦ "C" Programmable

Developer's Manual

Linux Application Development Module

Page 30 of 264

ProSoft Technology, Inc.

March 12, 2014

Since builds occur in

/home/usr/workspace/mvi56e-ldm/build/LDM

, source paths

are relative to this directory to simplify moving to a new directory.
Follow the sample provided to create a complete imagecontents file.

Install Script
Before creating the image, an 'install' script must be created and added to the
firmware package. As noted above, the firmware package will be downloaded
into the /psfttmp directory on the device. The 'install' script will copy the files in
psfttmp to their final destination on the target device. The 'install' script can be
used to make backups of the current directory contents before they are
overwritten. The LDM sample install script in build/LDM/scripts illustrates how to
do this.
Creating the Image
In a Linux shell, change the directory to the ...build/LDM directory.
Run python with the following command:

python createimage.py

The python script createimage.py reads and acts on the imagecontents file and
creates a new firmware image in the directory .../build/LDM/firmware.
Note: The script 'build.sh' will compile/link all libs and executables and then
invoke python to create the firmware image.