| Lei YU | d8c9eea | 2021-12-16 16:08:30 +0800 | [diff] [blame] | 1 | [Unit] | 
| Lei YU | 984cef5 | 2021-12-17 11:28:21 +0800 | [diff] [blame] | 2 | Description=Flash image-bmc to the alt chip and reset cs0 | 
| Lei YU | d8c9eea | 2021-12-16 16:08:30 +0800 | [diff] [blame] | 3 |  | 
 | 4 | [Service] | 
 | 5 | Type=oneshot | 
 | 6 | RemainAfterExit=no | 
| Lei YU | b5171ac | 2021-12-16 18:36:27 +0800 | [diff] [blame] | 7 | ExecStartPre=-/bin/systemctl stop xyz.openbmc_project.Software.Sync.service | 
 | 8 | ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rofs-alt | 
 | 9 | ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rwfs-alt | 
| Lei YU | d8c9eea | 2021-12-16 16:08:30 +0800 | [diff] [blame] | 10 | ExecStart=/usr/sbin/flashcp /tmp/images/%i/image-bmc /dev/mtd/alt-bmc | 
| Lei YU | b5171ac | 2021-12-16 18:36:27 +0800 | [diff] [blame] | 11 | ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs squashfs alt-rofs rofs-alt | 
 | 12 | ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs jffs2 alt-rwfs rwfs-alt | 
 | 13 | ExecStartPost=-/bin/systemctl start xyz.openbmc_project.Software.Sync.service | 
| Lei YU | 984cef5 | 2021-12-17 11:28:21 +0800 | [diff] [blame] | 14 | ExecStartPost=-/usr/bin/reset-cs0-aspeed |