ProSoft Technology MVI69E-LDM User Manual
Page 37
MVI69E-LDM ♦ "C" Programmable
Contents
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 37 of 130
August 21, 2014
For example, a line to add the LED_Sample application looks like:
Add ../../src/ldm/led_sample/Release/Led_Sample /psft/sample/Led_Sample rwxrwxr-x
Since builds occur in
/home/usr/workspace/mvi69e-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 image contents file.
To create the Install Script:
Before creating the image, you must create and add an install script to the firmware
package. As noted above, the firmware package is downloaded into the
/psfttmp
directory
on the device. The install script copies the files in
/psfttmp
to their final destination on the
target device. You can use the install script 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.
To create the Image:
1 In a Linux shell, change the directory to the ...build/LDM directory.
2 Run python with the following command:
python createimage.py
The python script
createimage.py
reads and acts on the
imagecontents
file and then creates
a new firmware image in the directory
.../build/LDM/firmware
.
Note: The script
build.sh
compiles and links all libs and executables and then invoke python to create the
firmware image.
2.2.5 Downloading the Image with Firmware Update
1 Ensure that the Setup Jumper is on. See Setup Jumper in this manual.
2 Navigate to the module homepage using a Web browser by entering the module's IP
address.