ProSoft Technology MVI69E-LDM User Manual

Page 36

Advertising
background image

Contents

MVI69E-LDM ♦ "C" Programmable

Developer's Manual

Linux Application Development Module

Page 36 of 130

ProSoft Technology, Inc.

August 21, 2014

2.2.3 Downloading the Application with FTP

To transfer the application using FTP Transfer, use any FTP transfer program such as
FileZilla (

https://filezilla-project.org/

) from the Windows environment.

Use FileZilla to connect to the target by specifying the IP address of the MVI69E-LDM's IP.

Download the application image to the desired directory on the LDM using the FTP transfer
program.

Since Windows does not have the same detailed permissions as Linux, you must change
the file permissions on the application once in the module. Use the command

chmod a+x

filename

to add the execute attribute to the application.

You can also download the application by creating an image and using Firmware update.
See Creating an Application Image.

2.2.4 Creating an Application Image

An image contains all of the application-specific components required for your application.
This includes the executable(s), application-specific shared libraries, scripts, web pages,
and data files. It does not contain the operating system or common components that are
already on the target device.

The image is a compressed tar file of the application components. Once created, use the
device's web page to download the firmware upgrade. The tar file name is specified in
I

MAGE

C

ONTENTS

. In the sample image, the firmware file is 'firmware/mvi69e-ldm.firmware

revision date'. This firmware file is downloaded to the directory

/psfttmp

on the target

device. Upon system restart, the system startup scripts unpack the tar file into the psfttmp
directory. The script

/psfttmp/install

is executed to move the component files into their

final destination.

A sample install file is included with the sample applications. The steps are:

1 Create all of the components that are part of the system. This mainly involves compiling

and linking executables and shared libraries.

2 Create the install script.
3 Modify any web pages and data files that will be needed.
4 Last, update the install script.

To create the Image Contents:

Each component file to be included in the image is listed in the file

imagecontents

in the

build directory structure for the specific application. This file contains header information
about the image and a list of entries describing the files to be added to the image. The
format of the entry is:
Add source destination file permissions


Where:
 The source file is the path to the file to be included.
 The destination file is the full path name of the file on the destination on the target

device.

 The permissions are the Linux style permissions of the file on the destination.

Advertising