mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
1. support usb recovery
This commit is contained in:
@ -172,6 +172,13 @@ int android_misc_flash_check(void) {
|
|||||||
puts("Recovery detected, will boot recovery\n");
|
puts("Recovery detected, will boot recovery\n");
|
||||||
/* android recovery will clean the misc */
|
/* android recovery will clean the misc */
|
||||||
}
|
}
|
||||||
|
else if(!strcmp(misc_message.command, "usb-recovery")) {
|
||||||
|
/* there is a recovery command */
|
||||||
|
puts("find usb recovery\n");
|
||||||
|
setenv("bootcmd", "run setargs_mmc boot_recovery");
|
||||||
|
puts("Recovery detected, will boot recovery\n");
|
||||||
|
/* android recovery will clean the misc */
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
printf("bootcmd set setargs_mmc\n");
|
printf("bootcmd set setargs_mmc\n");
|
||||||
setenv("bootcmd", "run setargs_mmc boot_normal");
|
setenv("bootcmd", "run setargs_mmc boot_normal");
|
||||||
@ -194,6 +201,13 @@ int android_misc_flash_check(void) {
|
|||||||
puts("Recovery detected, will boot recovery\n");
|
puts("Recovery detected, will boot recovery\n");
|
||||||
/* android recovery will clean the misc */
|
/* android recovery will clean the misc */
|
||||||
}
|
}
|
||||||
|
else if(!strcmp(misc_message.command, "usb-recovery")) {
|
||||||
|
/* there is a recovery command */
|
||||||
|
puts("find usb recovery\n");
|
||||||
|
setenv("bootcmd", "run setargs_nand boot_recovery");
|
||||||
|
puts("Recovery detected, will boot recovery\n");
|
||||||
|
/* android recovery will clean the misc */
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
printf("bootcmd set setargs_nand\n");
|
printf("bootcmd set setargs_nand\n");
|
||||||
setenv("bootcmd", "run setargs_nand boot_normal");
|
setenv("bootcmd", "run setargs_nand boot_normal");
|
||||||
|
Reference in New Issue
Block a user