xref: /openbmc/phosphor-bmc-code-mgmt/bmc/static/obmc-flash-bmc-alt@.service.in (revision cab87e9cdeeb3e166d6d577511f6be4dc7721aca)
1*cab87e9cSJagpal Singh Gill[Unit]
2*cab87e9cSJagpal Singh GillDescription=Flash image-bmc to the alt chip and reset cs0
3*cab87e9cSJagpal Singh Gill
4*cab87e9cSJagpal Singh Gill[Service]
5*cab87e9cSJagpal Singh GillType=oneshot
6*cab87e9cSJagpal Singh GillRemainAfterExit=no
7*cab87e9cSJagpal Singh GillExecStartPre=-/bin/systemctl stop xyz.openbmc_project.Software.Sync.service
8*cab87e9cSJagpal Singh GillExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rofs-alt
9*cab87e9cSJagpal Singh GillExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rwfs-alt
10*cab87e9cSJagpal Singh GillExecStart=/usr/sbin/flashcp /tmp/images/%i/image-bmc /dev/mtd/alt-bmc
11*cab87e9cSJagpal Singh GillExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs squashfs alt-rofs rofs-alt
12*cab87e9cSJagpal Singh GillExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs jffs2 alt-rwfs rwfs-alt
13*cab87e9cSJagpal Singh GillExecStartPost=-/bin/systemctl start xyz.openbmc_project.Software.Sync.service
14*cab87e9cSJagpal Singh GillExecStartPost=-/usr/bin/reset-cs0-aspeed
15