RadiSys ATCA-4616 Specifications Page 79

  • Download
  • Add to my manuals
  • Print
  • Page
    / 146
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 78
4
Changing Shelf Settings Using HPI
79
How configuration files are created for a new resource
DuringHPIinitialization(whenresourcesarebeingcreatedfortheshelf,slots,andFRUs),
initialdefaultconfigurationfilesareautomaticallycreatedifnonearefoundin
/tmp/shmgr/hpi.Ifnocorrespondingsavedconfigurationfileisfoundfortheresourcein
/var/lib/shmgr,theinitialdefaultconfigurationfi leiscopiedastheinitialsavedconfiguration
file(withthe.hcf.savedsuffix).Youcanlateroverwritetheinitialsavedconfigurationfilein
/var/lib/shmgrtocreateacustomdefaultconfiguration.
Foryourconvenience,theShelfManagermodule’ssoftwareimagealsocomeswithsample
defaultconfigurationfilesforsomeoftheknownFRUsinthesystem,theslotresourcesand
theshelfresource.Thesesampledefaultconfigurationfilesresideinthe/var/lib/shmgr
directoryofthemodule’ssoftwareimage.Notethatthesampledefa ultconfigurationfilefor
slotresources,SLOTS.hcf.deflt,iscopiedasthedefaultconfigurationfileforallslotresources
thefirsttimeaShelfManagermoduleisinitialized.Themoduledoesnothaveany
configurationfilespriortofirstinitialization.
Creating a default configuration file for a new resource
IfanewFRUisinsertedintheshelfandnosampledefaultconfigurationexists(forexample,in
theunlikelyscenariothatdefaultconfigurationfilecreationfailedduringresourcecreation),
thefollowingprocedurecanbe usedtocreateone:
1. InserttheFRUintheshelfandchecktheHPIRPTforitsresource.Thiscanbedoneusing
anHPI1.1compliantuserapplication.
2. BeforeanychangesaremadetotheFRU,usethesaHpiParmControl()functionwith:
ResourceId=ResourceIdofthenewlycreatedresource
ParmAction=SAHPI_SAVE_PARM.
Iftheparametercontroloperationsucceeds,a newsavedconfigurationfilewillhavebeen
crea tedin/tmp/shmgr/hpi.Forexample,forresource0xB0090,asavedconfigurationfile
named000B0090.hcf.savedwillbecreated.
3. Renamethe%08X.hcf.savedfileto%08X.hcf.deflt.
Forexample,forresource0xB0090,thesavedconfigurationfile000B0090.hcf.saved
shouldberenamed
ormovedto000B0090.hcf.deflt.ThisnowbecomesthedefaultHPI
configurationfileforthenewresourceandwillbeloadedwhentheparametercontrol
actionSAHPI_DEFAULT_PARMisinvokedontheresourcebytheHPIapplication.
Page view 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 145 146

Comments to this Manuals

No comments