Shaojun Wang

Add poweroff function to mfgtool

Discussion created by Shaojun Wang Employee on Jul 25, 2013

Some customer want to power off machine from mfgtool, after finish the image programming.

This function can be done by change uu.c.

 

1. uu.c patch: 0001-add-power-off-function.patch.

 

2. Apply uu.c patch, build out initramfs.cpio.gz.uboot.

 

3. Add below red code to ucl2.xml, to power off the system.

    <CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD>

  <!-- The below commands will trigger poweroff  -->

    <CMD state="Updater" type="push" body="!4">Poweroff</CMD>

<CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD>

Original Attachment has been moved to: 0001-add-power-off-function.patch.zip

Original Attachment has been moved to: initramfs.cpio.gz.uboot.zip

Outcomes