Motorola 6806800C44B manual Building the Sample Application, Running the Sample Application

Models: 6806800C44B

1 54
Download 54 pages 37.4 Kb
Page 37
Image 37

Building the Sample Application

Sample Application

 

 

A.3 Building the Sample Application

On the development host the sample application should be crosscompiled for the target architecture. To build the AvSv sample application, use the following command:

./make_env.sh <target-architecture> avsv_demo

This will generate a sample executable file avsv_demo.out in the bin/<target-

architecture>/ directory.

A.4 Running the Sample Application

To run the sample application on the target architecture:

Procedure

1.Install NCS on the System Manager Node and two payload nodes (safNode=PL_2_3 and safNode=PL_2_4 respectively).

2.Transfer/install the sample application inventory on the target machine as follows. Transfer the sample program executable file (avsv_demo.out) to the payload nodes. Place it in /etc/ncs/ folder.

Transfer the sample program scripts (comp_inst.sh and comp_term.sh) to the payload nodes. Place them in /etc/ncs/ folder.

3.Ensure that the scripts have executable permission. Use the following command: chmod +x comp_inst.sh

chmod +x comp_term.sh

4.Update the BOM on the system manager host. The configuration for the sample application is captured in AppConfig.xml file that is supplied along with the sample applications. They can be found (along with sample program scripts) in the

/opt/motorola/ncs/dev/source/avsv directory on the development host.

5.Copy this BOM to the /etc/ncs folder on the System Manager Node. The sample application specific configuration attributes are commented in the AppConfig.xml. Remove the comments (the commented portions begin with a “<!--” and end with a “-->”).

6.Verify if the /etc/ncs/pssv_spcn_list contains the string PSS. Replace it with an configuration data read from the BOM file.

file on the System Manager Node XML file. This is required to force initial

7.Remove the avsv_demo.log file, if any, from the /ncs/log/stdouts folder on the payload nodes. This file contains the output of the sample application.

Availability Service Programmer’s Reference (6806800C44B)

37

Page 37
Image 37
Motorola 6806800C44B manual Building the Sample Application, Running the Sample Application