S A N K H Y A Copyright (c) 2002 Sankhya Technologies Private Limited. All rights reserved. SANKHYA Varadhi: Development Notes for using SANKHYA Varadhi for Hard Hat Linux =============================================================================== SANKHYA Varadhi has been ported to MontaVista's Hard Hat Linux 2.0 real time operating system. Applications can be developed using SANKHYA Varadhi for Hard Hat Linux using g++ 2.95.2. Sankhya Varadhi supports Hard Hat linux cross-hosted development environment for PowerPC and MIPS targets. The development tools are not yet available for Hard Hat Linux native. SANKHYA Varadhi applications for Hard Hat Linux targets are built on the host system (Red Hat Linux) and executed on Hard Hat Linux target OS. Pre-requisites Hard Hat Linux 2.0 Development tools environment should be setup before using SANKHYA Varadhi. a. Hard Hat Linux for PowerPC Host : x86 PC Host OS : RedHat Linux 6.2/7.0 Target : PPC 4xx Target OS : Hard Hat Linux 2.0 Tools : g++ 2.95.2 b. Hard Hat Linux for MIPS Host : x86 PC Host OS : RedHat Linux 6.2/7.0 Target : MIPS 4KC (Little Endian) Target OS : Hard Hat Linux 2.0 Tools : g++ 2.95.2 Using Varadhi for MontaVista's Hard Hat Linux: Refer to the main samples README in $VARADHI/samples directory to setup Varadhi Target Platform, to build and execute the demos. The steps mentioned in the README file are same for Hard Hat Linux except step (3) "Create a Varadhi Target Platform" and step (7) "Running the demo program". Refer below for creating a Varadhi Target Platform for Hard Hat Linux and to run demo program under Hard Hat Linux. 1. Create a Varadhi Target Platform for Hard Hat Linux PowerPC Target. Varadhi can be customized for a particular target configuration using vconf. Varadhi configuration files are provided under $VARADHI/etc/config directory to create various Varadhi Target Platforms. For example, to create a default platform on Linux host for Hard Hat PowerPC target, that supports C++ Exception, use the following. 1.a Change directory to your workspace. In csh % cd $WORK_DIR 1.b Invoke vconf with three config files, one providing configuration options for the ORB, another one specifying the target platform (Hard Hat PowerPC using GNU g++) and another one for licensing. In csh % vconf defaults ppc-gcc-mvlinux license The configuration that is built with 'defaults' configuration file enables C++ Exception support. Note: To create a platform for MIPS target, use mips-gcc-mvlinux instead of ppc-gcc-mvlinux. The vconf variable "target_cpu" specifies the Target CPU for which the Varadhi Platform should be created. 2. Running the demo program Copy the executables (for e.g., 'server' and 'client' for adder demo) to an NFS mounted directory on target (Hard Hat Linux Cross-hosted Development environment). Load and boot the target. You can now run the application programs on the target. For example, to run the adder demo, start the 'server' application and then run the 'client' application. a. Start the Server Application In sh % ./server & b. Run the Client Application In sh % ./client To run other demo programs, follow the steps mentioned in the README files in the individual demo directory. The README files in the individual demo directory uses 'csh' as example. Applications can be invoked similarly in Hard Hat shell. Note: 'server' and 'client' are not required to be run on the same host. If different hosts are used, copy the IOR files created by the server applications to the client host under the same demo location. Limitations: * Due to limitations in MIPS g++ 2.95.2, C++ exceptions will not work in Varadhi for Hard Hat Linux for MIPS target. So C++ exceptions should be disabled while creating a Varadhi plaform for MIPS Hard Hat Linux. This is done by changing the value of the configuration variable "enable_cpp_exceptions" in the configuration file (e.g. defaults.cfg) to "no". * Events Demo shipped with the product ($VARADHI/samples/events) will not work in Varadhi for Hard Hat Linux for MIPS target.