2025-05-10 21:49:39 +08:00

42 lines
933 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!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: