1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
933 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!enable_script
# 在升级时显示提示信息
print "\nPlease KEEP your USB cable or DC-in connected\n"
print "Do NOT remove SD card form the device\n\n"
# 升级kernel
write_image PACKAGE:kernel KERNEL:
check_image PACKAGE:kernel KERNEL:
# 升级boot
write_image PACKAGE:boot BOOT:
check_image PACKAGE:boot BOOT:
# 升级recovery
write_image PACKAGE:recovery RECOVERY:
check_image PACKAGE:recovery RECOVERY:
# 升级system
write_image PACKAGE:system SYSTEM:
check_image PACKAGE:system SYSTEM:
# 升级backup
write_image PACKAGE:backup BACKUP:
check_image PACKAGE:backup BACKUP:
# 升级parameter
write_image PACKAGE:parameter PARAMETER:
check_image PACKAGE:parameter PARAMETER:
# 格式化数据分区
format DATA:
format CACHE:
# 写入命令在bootloader启动时升级bootloader
write_blcmd update-bootloader
# 将bootloader存放到MISC分区
write_loader PACKAGE:bootloader MISC: 0xC000
# 删除升级包
delete PACKAGE: