Lines Matching +full:mode +full:- +full:recovery
8 * http://www.apache.org/licenses/LICENSE-2.0
60 int slot = -1; in MiscUpdate()
64 return -1; in MiscUpdate()
69 if (slot == -1) { in MiscUpdate()
70 // recovery mdoe in MiscUpdate()
71 // u-boot/trust/boot/recovery/boot/rootfs/oem in MiscUpdate()
91 // If it's recovery mode, upgrade recovery in normal system. in MiscUpdate()
92 if (slot == -1 && !is_sdboot && !is_usbboot) { in MiscUpdate()
94 LOGI("update recovery in normal system.\n"); in MiscUpdate()
100 return -1; in MiscUpdate()
104 return -1; in MiscUpdate()
110 char recovery_str[] = "recovery\n--update_package="; in MiscUpdate()
111 strcpy(msg.command, "boot-recovery"); in MiscUpdate()
112 sprintf(msg.recovery, "%s%s\n", recovery_str, savepath); in MiscUpdate()
115 strcat(msg.recovery, "--rkdebug\n"); in MiscUpdate()
118 strcat(msg.recovery, "--ui_rotation="); in MiscUpdate()
119 strcat(msg.recovery, ui_rotation); in MiscUpdate()
120 msg.recovery[strlen(msg.recovery)] = '\n'; in MiscUpdate()
135 return -1; in MiscUpdate()
139 return -1; in MiscUpdate()
147 LOGI("--misc=now Linux A/B mode: Setting the current partition to bootable.\n"); in display()
148 LOGI("--misc=other Linux A/B mode: Setting another partition to bootable.\n"); in display()
149 LOGI("--misc=update Recovery mode: Setting the partition to be upgraded.\n"); in display()
150 LOGI("--misc=display Display misc info.\n"); in display()
151 LOGI("--misc=wipe_userdata Format data partition.\n"); in display()
152 LOGI("--misc_custom= < op > Operation on misc for custom cmdline"); in display()
156 LOGI("--update Upgrade mode.\n"); in display()
157 …LOGI("--partition=0x3FFC00 Set the partition to be upgraded.(NOTICE: OTA not support upgrade loa… in display()
159 LOGI(" uboot trust boot recovery rootfs oem\n"); in display()
166 LOGI(" 000001000000000000000000: Upgrade recovery\n"); in display()
177 LOGI("--reboot Restart the machine at the end of the program.\n"); in display()
178 LOGI("--version_url=url The path to the file of version.\n"); in display()
179 LOGI("--image_url=url Path to upgrade firmware.\n"); in display()
180 LOGI("--savepath=url save the update.img to url.\n"); in display()
181 LOGI("--version the version of updateEngine\n"); in display()
182 LOGI("--rkdebug Log output to serial port\n"); in display()
183 LOGI("--ui_rotation UI rotation,has 4 angles(0-3).\n"); in display()
217 int pipefd = -1; in main()
219 while ((arg = getopt_long(argc, argv, "", engine_options, NULL)) != -1) { in main()
241 if (pipefd != -1) { in main()
255 LOGI("%s-%d: is %s update.\n", __func__, __LINE__, is_usbboot ? "usbboot" : "sdboot"); in main()
262 return -1; in main()
268 return -1; in main()
274 LOGI("%s-%d: is ota update\n", __func__, __LINE__); in main()
305 return -1; in main()
308 return -1; in main()
311 return -1; in main()
322 if (system(" echo b > /proc/sysrq-trigger ") == -1) in main()
323 return -1; in main()