common: rkflash: add update option

Change-Id: I34c4e2557f1c15690b3620904c7e3b6a6fde7dd5
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
This commit is contained in:
Leo Wen
2019-03-13 20:39:46 +08:00
parent 3d15f80757
commit 31d03abfec

View File

@ -19,6 +19,7 @@ OEM=$ROCKDEV_DIR/oem.img
MISC=$ROCKDEV_DIR/misc.img
ROOTFS=$ROCKDEV_DIR/rootfs.img
USERDATA=$ROCKDEV_DIR/userdata.img
UPDATE=$ROCKDEV_DIR/update.img
if [ ! -n "$1" ]
then
@ -93,6 +94,11 @@ then
$UPGRADETOOL di -rootfs $ROOTFS
fi
if [ $FLASH_TYPE = update ]
then
$UPGRADETOOL uf $UPDATE
fi
if [ $FLASH_TYPE = rd ]
then
$UPGRADETOOL rd