enum {
ZBOOT_STATE_START = BIT(0),
- ZBOOT_STATE_GO = BIT(1),
+ ZBOOT_STATE_INFO = BIT(1),
+ ZBOOT_STATE_GO = BIT(2),
- ZBOOT_STATE_COUNT = 2,
+ ZBOOT_STATE_COUNT = 3,
};
static void build_command_line(char *command_line, int auto_boot)
return 0;
}
+static int do_zboot_info(struct cmd_tbl *cmdtp, int flag, int argc,
+ char *const argv[])
+{
+ printf("Kernel loaded at %08lx, setup_base=%p\n",
+ state.load_address, state.base_ptr);
+
+ return 0;
+}
+
static int do_zboot_go(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
/* Note: This defines the complete_zboot() function */
U_BOOT_SUBCMDS(zboot,
U_BOOT_CMD_MKENT(start, 6, 1, do_zboot_start, "", ""),
+ U_BOOT_CMD_MKENT(info, 1, 1, do_zboot_info, "", ""),
U_BOOT_CMD_MKENT(go, 1, 1, do_zboot_go, "", ""),
)
}
do_zboot_states(cmdtp, flag, argc, argv, ZBOOT_STATE_START |
- ZBOOT_STATE_GO);
+ ZBOOT_STATE_INFO | ZBOOT_STATE_GO);
return CMD_RET_FAILURE;
}
"\n"
"Sub-commands to do part of the zboot sequence:\n"
"\tstart [addr [arg ...]] - specify arguments\n"
+ "\tinfo - show summary info\n"
"\tgo - start OS\n",
complete_zboot
);