blob: d50745519bed0653f5345868710b3eeb0e3192cb [file] [log] [blame]
Lei YUd8c9eea2021-12-16 16:08:30 +08001[Unit]
Lei YU984cef52021-12-17 11:28:21 +08002Description=Flash image-bmc to the alt chip and reset cs0
Lei YUd8c9eea2021-12-16 16:08:30 +08003
4[Service]
5Type=oneshot
6RemainAfterExit=no
Lei YUb5171ac2021-12-16 18:36:27 +08007ExecStartPre=-/bin/systemctl stop xyz.openbmc_project.Software.Sync.service
8ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rofs-alt
9ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rwfs-alt
Lei YUd8c9eea2021-12-16 16:08:30 +080010ExecStart=/usr/sbin/flashcp /tmp/images/%i/image-bmc /dev/mtd/alt-bmc
Lei YUb5171ac2021-12-16 18:36:27 +080011ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs squashfs alt-rofs rofs-alt
12ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs jffs2 alt-rwfs rwfs-alt
13ExecStartPost=-/bin/systemctl start xyz.openbmc_project.Software.Sync.service
Lei YU984cef52021-12-17 11:28:21 +080014ExecStartPost=-/usr/bin/reset-cs0-aspeed