Lines Matching full:boot
110 * 4. get_args() writes BCB with "boot-recovery" and "--wipe_data"
116 * 8. main() calls reboot() to boot main system
122 * 4. get_args() writes BCB with "boot-recovery" and "--update_package=..."
133 * 8a. m_i_f_u() writes BCB with "boot-recovery" and "--wipe_cache"
139 * 8e. bootloader writes BCB with "boot-recovery" (keeping "--wipe_cache")
144 * 9. main() calls reboot() to boot main system
186 struct bootloader_message boot;
187 memset(&boot, 0, sizeof(boot));
188 get_bootloader_message(&boot); // this may fail, leaving a zeroed structure
189 stage = strndup(boot.stage, sizeof(boot.stage));
191 if (boot.command[0] != 0 && boot.command[0] != 255) {
192 LOGI("Boot command: %.*s\n", (int)sizeof(boot.command), boot.command);
195 if (boot.status[0] != 0 && boot.status[0] != 255) {
196 LOGI("Boot status: %.*s\n", (int)sizeof(boot.status), boot.status);
201 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination
202 const char *arg = strtok(boot.recovery, "\n");
210 LOGI("Got arguments from boot message\n");
211 } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) {
212 LOGE("Bad boot message\n\"%.20s\"\n", boot.recovery);
242 // always boot into recovery after this (until finish_recovery() is called)
243 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
244 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
247 strlcat(boot.recovery, (*argv)[i], sizeof(boot.recovery));
248 strlcat(boot.recovery, "\n", sizeof(boot.recovery));
250 set_bootloader_message(&boot);
255 struct bootloader_message boot;
256 memset(&boot, 0, sizeof(boot));
257 strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
258 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
259 set_bootloader_message(&boot);
316 // clear the recovery command and prepare to boot a (hopefully working) system,
347 // Reset to normal system boot so recovery won't cycle indefinitely.
348 struct bootloader_message boot;
349 memset(&boot, 0, sizeof(boot));
350 set_bootloader_message(&boot);