cmd: fastboot: print mode state
This avoids user misunderstanding the system is hang when enter fastboot mode without any warning message. Change-Id: Ie6238c825342c8e322b2a5be746e4bba020e1ec9 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
3befe43d90
commit
deebadb707
|
|
@ -25,6 +25,8 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
printf("Enter fastboot...");
|
||||
|
||||
if (!strcmp(argv[1], "udp")) {
|
||||
#ifndef CONFIG_UDP_FUNCTION_FASTBOOT
|
||||
pr_err("Fastboot UDP not enabled\n");
|
||||
|
|
@ -41,6 +43,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|||
pr_err("Fastboot USB not enabled\n");
|
||||
return -1;
|
||||
#else
|
||||
|
||||
usb_controller = argv[2];
|
||||
controller_index = simple_strtoul(usb_controller, NULL, 0);
|
||||
|
||||
|
|
@ -62,6 +65,8 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|||
goto exit;
|
||||
}
|
||||
|
||||
printf("OK\n");
|
||||
|
||||
while (1) {
|
||||
if (g_dnl_detach())
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue