Add poweroff function to mfgtool

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Add poweroff function to mfgtool

1,096 次查看
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

标签 (2)
标记 (2)
0 项奖励
回复
0 回复数