Hi, Iam not sure if I understood your requirement correctly, but I suggest you to do the following to integrate your hardware with OpenSAF PLM (using HPI entity information).
May be you want to try bringing up OpenSAF without PLM/HPI support on your board, but do the following if you want to enable PLM and HPI in OpenSAF 1) build opensaf as below (see also osaf/services/saf/plmsv/README) $ HPI_CFLAGS="-I/path/to/openhpi headers" $ HPI_LIBS="-L/path/to/openhpi/lib -lopenhpimarshal -lopenhpiutils -lopenhpi" $ ./configure CFLAGS="<your options" --enable-ais-plm --enable-hpi --with-openhpi --with-hpi-interface=B03 $ make rpm 2) install opensaf rpms (and hpi rpms ofcourse) 3) Create an .xml file with objects defined for your hardware, say for eg:- osaf_bcm_config.xml Define the HE (Hardware entity) objects information based on the HPI enums defined for your hadware. You can refer to osaf/services/saf/plmsv/config/plmsv_objects.xml.atca OR osaf/services/saf/plmsv/config/plmsv_objects.xml.hp These files contain examples of how to model(add objects) an ATCA chassis/blade OR a HP hardware/blade to the OpenSAF information model. You would similairly model your board as HE and EE in your osaf_bcm_config.xml See also README in osaf/services/saf/plmsv/config directory. 4) Once you are done adding your objects in the osaf_bcm_config.xml $/usr/share/opensaf/immxml/immxml-merge /etc/opensaf/imm.xml /my_dir/osaf_bcm_config.xml -o /etc/opensaf/new_imm.xml $cp /etc/opensaf/new_imm.xml /etc/opensaf/imm.xml 5) start opensaf on your board. If there are problems in starting, uncomment the following line in /etc/opensaf/plmd.conf, try starting opensaf again and share the /var/log/opensaf/osafplmd file and the syslog $immfind | grep -i plm Thanks, Mathi. > -----Original Message----- > From: Idan Migemi [mailto:[email protected]] > Sent: Thursday, October 22, 2015 4:04 PM > To: [email protected] > Cc: Haymi Shalom > Subject: [users] Hardware configuration using OpenSAF > > Hi, > > We wish to integrate OpenSAF HA platform in our new line of Metro-Core > products . > Our first goal is to go through a basic Proof Of Concept based on OpenSAF > and a Broadcom evaluation board. > > Create a basic tunnel object via ImmCfg and download this configuration into > the BCM board. > > We managed to define a class with the relevant configuration attributes, set > the implementer as an external applier (a simple main we created) and wish > to use the HPI interface to configure the actual HW. > > Should we use our applier as implementer or the PLM? > What is the proper way? > > And anyhow how do I call the relevant HW api (Broadcom SDK) using the HPI > interface? > > > > Idan Migemi > > Embedded Software Team Leader > > PTT - Embedded Software > Global Technology Division > > > phone/fax: > > +972.3.926.6112 > > E-mail: > > [email protected]<mailto:[email protected]> > > > > www.ecitele.com<http://www.ecitele.com/> > > [cid:[email protected]] > > > ------------------------------------------------------------------------------ _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users
