Ejemplo n.º 1
0
/* export to lib_arm/board.c */
void check_recovery_mode(void)
{
	if (check_key_pressing()) {
		puts("Fastboot: Recovery key pressing got!\n");
		setup_recovery_env();
	} else if (check_recovery_cmd_file()) {
		puts("Fastboot: Recovery command file founded!\n");
		setup_recovery_env();
	} else {
		puts("Fastboot: Normal\n");
	}
}
Ejemplo n.º 2
0
void check_recovery_mode(void)
{
	if (atc260x_pstore_get_noerr(ATC260X_PSTORE_TAG_REBOOT_RECOVERY) != 0) {
		printf("PMU recovery flag founded!\n");
		atc260x_pstore_set(ATC260X_PSTORE_TAG_REBOOT_RECOVERY, 0);
		setup_recovery_env();
	}

	if (check_recovery_cmd_file() == 0) {
		printf("Recovery command file founded!\n");
		setup_recovery_env();
	}

	if (check_update_file() == 0) {
		printf("Update.zip file founded!\n");
		setup_recovery_env();
	}
}