Add poweroff function to mfgtool

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Add poweroff function to mfgtool

730件の閲覧回数
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 返答(返信)