Add poweroff function to mfgtool

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add poweroff function to mfgtool

719 Views
shaojun_wang
NXP Employee
NXP Employee

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

Labels (2)
Tags (2)
0 Kudos
0 Replies