android: fix "reboot recovery" command doesn't work
If not find recovery message in misc partition, we try to check kernel reboot command. Change-Id: I25847cb5cc06efc39c419426ab6dbe9acde3797d Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
bad3fe2d02
commit
93d59c05c7
|
|
@ -492,6 +492,12 @@ int android_bootloader_boot_flow(struct blk_desc *dev_desc,
|
|||
#endif
|
||||
|
||||
mode = android_bootloader_load_and_clear_mode(dev_desc, &misc_part_info);
|
||||
#ifdef CONFIG_RKIMG_BOOTLOADER
|
||||
if (mode == ANDROID_BOOT_MODE_NORMAL) {
|
||||
if (rockchip_get_boot_mode() == BOOT_MODE_RECOVERY)
|
||||
mode = ANDROID_BOOT_MODE_RECOVERY;
|
||||
}
|
||||
#endif
|
||||
printf("ANDROID: reboot reason: \"%s\"\n", android_boot_mode_str(mode));
|
||||
|
||||
switch (mode) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue