common: rkflash: add update option
Change-Id: I34c4e2557f1c15690b3620904c7e3b6a6fde7dd5 Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user