Specifications

2
Performing Updates Using rsys_swm
26
Step 6: Define the upgrade campaign configuration file
Beforeyoucanruntheupdateprocess,youmustcreat eanddefineanupgr adecampaign
configurationfile.Thisconfigurationfileis usedbythersys_swmutilityindeterminingwhich
modulesandcomponentsareupdatedandinwhatordertheupdatestak eplace.
Youcangenerateanupgradeconfigurationfromthesampletextfile“config.cfgthatis
availablein/usr/share/rsys_swm/folder.Thefileiscorrectlyformattedandcontainsmostof
thetags,soedititasneeded,andsavethefile withanamethatwillmakeiteasilyidentifiable
astheupgradecampaignfile.Forexample,“upgradecampaign.yml”or“upgradeconfig. yml.
Thefilecanhavea.ymlextensionora.cfgextension.
Thefileincludesthefollowingsections:
•Anintroductorysection,whichdescribesthedifferenttags(orparameters)inthe
document.
•Acampaignsection,whereyouenterthespecificparametersfortheupdate.
Theupgradeconfigurationfilecanbe setuptoruntheupdateprocessonmodules
sequentiallyorinparallel.Whenmodulesareupdatedinparallel,they areinthesamephase.
Seephasetagonpage 28formoreinformationaboutphases.
Figure 2belowshowsthedetailsofthecampaignspecificationsection.Foranexampleofan
upgradeconfigurationfilethatincludesthetagdescriptions,seepage 41.
Figure 2. Upgrade configuration file: campaign section example
# Upgrade campaign example
#
# This le is used for specifying the upgrade campaign.
#
---
campaign:
- releaseuri: le:///mnt/release-4.0.1
- exclude: system-boot, boot-block, legacy-fpga # skip UBoot, BIOS boot-block, &
legacy FPGAs on all modules
- phase: # Phase 0
- step:
- module: board.8 # upgrade the board in slot 8
- exclude: fru-data # skip IPMI fru data
- step:
- module: ATCA-4500.[2,5] # upgrade ATCA-4500s in slots 2 and 5
- os: wr2_32 # Use the update bundle for WR2 32 bit OS
- exclude: ipmc-, fru-data # skip ipmc components and fru data
- phase: # Phase 1
- step:
- module: ATCA-1200 # Upgrade all ATCA-1200s in the shelf
...
Update repository location
Components skipped on all modules
Module in slot 8 and ATCA-4500s in slots 2
& 5 are updated in parallel in the first phase
ATCA-4500s are expected to run the Wind River
Ver 2, 32 bit operating system.
Components skipped on the ATCA-4500s
In second phase, all ATCA-1200s are updated