Emerson 4620 manual Developing Applications, Building the Application, Directory Content

Page 21

Developing Applications

3

3.1Overview

This chapter describes how to develop applications that make use of the HPI-B library.

Depending on the CPU architecture of the target system where you want to run your HPI-B application and on the operating system, different RPM files are delivered which contain include files and static libraries needed for the application development. The naming scheme used for these files is as follows: bbs-hpib-devel-<version>-1.<architecture>-<distribution>-<os>.rpm

In order to run your HPI-B clients, you furthermore need to install the HPI-B client base package applicable to the blade where the client is running. See Setting Up HPI Clients on page 19.

The HPI-B client base package contains compiled example applications which illustrate the use of HPI-B controls. For these example applications the source codes and an example make file are available as well. You may want to use the source code and the make file as a starting point for developing your own applications. For further details refer to Appendix A, Example Applications, on page 39.

3.2Building the Application

If your development system is based on the same operating system/CPU architecture environment as the target system, then you can simply install the RPM files on the target system. If the development system is based on another operating system/CPU architecture environment and you consequently intend to do cross-compilation, then the RPM files should be converted to the cpio format and then extracted, using the standard Linux rpm2cpio tool.

In order to do this, you would for example enter the following at the command prompt:

1.cd <working directory>

2.rpm2cpio <rpm file> cpio -id

After extracting the RPM or CPIO files, you obtain the following directories with the following contents.

Table 3-1 Development RPMs - Directory Structure

Directory

Content

 

 

/opt/motorola/include/bbs-hpib

Include files

opt/motorola//lib or

Static libraries

opt/motorola//lib64

 

System Management Interface Based on HPI-B (Centellis 4620) User’s Guide (6806800D85A)

21

Image 21
Contents System Management Interface Based on HPI-B Centellis Contact Address Contents Related Documentation ContentsDefinition of Domain Management Resource List of TablesPage List of Figures Page Overview of Contents About this ManualAbbreviations About this Manual Abbreviation Description ConventionsNotation Description BoldSummary of Changes Comments and SuggestionsAbout this Manual Notation Description Page Introduction System Management Interfaces OverviewStandard Compliances ArchitectureSystem Management Interfaces Overview HPI Library HPI LibraryHigh Availability HPI DaemonHPI Daemon Page Installing and Configuring the HPI-B Daemon Software Installation and ConfigurationOverview RPM Files for HPI-B Clients and DaemonsConfiguring an HPI Daemon Installing an HPI-B DaemonOverview of HPI-B Directories and Files on ATCA-F120 Directory DescriptionSetting Up HPI Clients Installing HPI ClientsOverview of HPI-B Directories and Files on Node Blades Multishelf Library Configuration File HPI Daemon Entries Configuring HPI ClientsIP Addresses/Ports of HPI Daemons in a Centellis 4620 Shelf Entry DescriptionDeveloping Applications Directory ContentBuilding the Application Development RPMs Directory StructurePage Using HPI-B Limitations with Respect to HPI-B Base SpecificationLimitations Overview Working with the Multishelf LibraryAccessing HPI Domains Using HPI-B Accessing HPI DomainsHow Domains and Shelves are Represented Using HPI-B How Domains and Shelves are RepresentedHow Domains and Shelves are Represented Using HPI-B Domain Management Control RDR Definition of Domain Management ResourceSaHpiRptEntryT Value SaHpiRdrT ValueDomain Management Control Domain Management Control StateShelf Management Resource Connection State RDR Using HPI-BHow Domains and Shelves are RepresentedDomain Connection Sensor Discovering Shelves and DomainsDomain Connection Sensor Reading Domain Connection Sensor EventsUsing HPI-B Adding and Removing Shelves and Domains Adding and Removing Shelves and DomainsParameter Value Emerson Extensions Emerson Extensions Using HPI-B10 Boot Option RDR Ipmi System Boot Options Support11 Boot Option Control Using HPI-B HPI Controls for Domain and Shelf ManagementIpmi System Boot Options SupportUsing HPI-B 12 Boot Option StateGet operations Set operationsHPI Logging Support Post Type Control13 Post Type HPI Control RDR 14 Post Type HPI Control Sate ValuesHPI Logging Support Using HPI-B 15 Log RDR16 Log Control 17 Log Control State Using HPI-BHPI Logging SupportExample Applications Example Application Source FilesList of Supported Example Applications Example Applications List of Supported Example Applications List of Supported Example ApplicationsExample Applications Display everything #------------------------------hpifumi #------------------------------ hpihotswap String Example Applications List of Supported Example Applications Option #------------------------------ hpishelf Value Display sensors Related Specifications Emerson Network Power Embedded Computing DocumentsTable B-2 Related Specifications Related Documentation