Motorola 6806800C08B User Manual

Page of 52
NetPlane Core Services Overview  User’s Guide (6806800C08B)
NCS Toolkit
Running the Sample programs
48
   
z
mds_demo
Builds the MDS sample program
z
mbcsv_demo
Builds the Message-based Checkpointing Service sample program
z
srmsv_demo
Builds the System Resource Monitoring Service sample program
Example
To  build the LEAP sample application for a PowerPC target, run the following command: 
./make_env.sh  mvl-ppc  leaptest_demo
A.5
Running the Sample programs
This sections describes the steps to run the sample programs.
A.5.1
Target Prerequisites
The sample programs can only be run on the target architecture they have been built for. 
Therefore, a sample program first needs to be built based on the target’s architecture. Refer to 
 for steps to cross-compile a sample program for a target. 
The target could be a system manager host or a payload node, based on the design of the 
sample program. 
After building the sample programs, executable (binaries) are created in the 
$TOOLKIT_HOME/source/common/bin/<target-architecture>
 directory. Copy them 
from the development host to the target where they are intended to run. The target directory 
can be of your choice, however, we recommend 
/opt/motorola/ncs/scxb/sample_programs or 
/opt/motorola/ncs/pld/sample_programs
Make sure that NCS software for a particular target is installed on the target machine. The 
configuration files should be edited to run the NCS software correctly. Most of the samples 
require the NCS services to be running on the target. The existence of a  
/opt/motorola/ncs/scxb
 indicates that the target is a system manager host and the 
existence of a /opt/motorola/ncs/pld indicates that target is a payload node.
If the target for the sample program is a payload node, the system manager host software 
should also be running on a connected node.
Sample program may need additional files to be copied onto the target. Please refer to 
the respective user’s guides for them.