Lines Matching full:boot
85 * 4. get_args() writes BCB with "boot-recovery" and "--wipe_data"
91 * 8. main() calls reboot() to boot main system
97 * 4. get_args() writes BCB with "boot-recovery" and "--update_package=..."
108 * 8a. m_i_f_u() writes BCB with "boot-recovery" and "--wipe_cache"
114 * 8e. bootloader writes BCB with "boot-recovery" (keeping "--wipe_cache")
119 * 9. main() calls reboot() to boot main system
155 struct bootloader_message boot;
156 memset(&boot, 0, sizeof(boot));
157 get_bootloader_message(&boot); // this may fail, leaving a zeroed structure
159 if (boot.command[0] != 0 && boot.command[0] != 255) {
160 LOGI("Boot command: %.*s\n", sizeof(boot.command), boot.command);
163 if (boot.status[0] != 0 && boot.status[0] != 255) {
164 LOGI("Boot status: %.*s\n", sizeof(boot.status), boot.status);
169 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination
170 const char *arg = strtok(boot.recovery, "\n");
178 LOGI("Got arguments from boot message\n");
179 } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) {
180 LOGE("Bad boot message\n\"%.20s\"\n", boot.recovery);
204 // always boot into recovery after this (until finish_recovery() is called)
205 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
206 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
209 strlcat(boot.recovery, (*argv)[i], sizeof(boot.recovery));
210 strlcat(boot.recovery, "\n", sizeof(boot.recovery));
212 set_bootloader_message(&boot);
217 struct bootloader_message boot;
218 memset(&boot, 0, sizeof(boot));
219 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
220 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
221 set_bootloader_message(&boot);
250 // clear the recovery command and prepare to boot a (hopefully working) system,
276 // Reset to mormal system boot so recovery won't cycle indefinitely.
277 struct bootloader_message boot;
278 memset(&boot, 0, sizeof(boot));
279 set_bootloader_message(&boot);
820 // Otherwise, get ready to boot the main system...