summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-06-19 06:34:51 -0600
committerTom Rini <trini@konsulko.com>2024-06-26 13:17:52 -0600
commitbce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90 (patch)
treeec7da1b299dda939e4e328dafb8b58599875fd80 /cmd
parent6e5e713e8125bbc0efb71cc81e7d68654aff0608 (diff)
downloadu-boot-bce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90.tar.gz
u-boot-bce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90.tar.bz2
u-boot-bce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90.zip
zboot: Add debugging for booting
Show the boot arguments and the state mask, to aid debugging. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/x86/zboot.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/cmd/x86/zboot.c b/cmd/x86/zboot.c
index addf28cb4a..c14219f19e 100644
--- a/cmd/x86/zboot.c
+++ b/cmd/x86/zboot.c
@@ -5,6 +5,8 @@
* Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
*/
+#define LOG_CATEGORY LOGC_BOOT
+
#include <command.h>
#include <mapmem.h>
#include <vsprintf.h>
@@ -14,8 +16,14 @@ static int do_zboot_start(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
ulong bzimage_addr = 0, bzimage_size, initrd_addr, initrd_size;
- ulong base_addr;
const char *s, *cmdline;
+ ulong base_addr;
+ int i;
+
+ log_debug("argc %d:", argc);
+ for (i = 0; i < argc; i++)
+ log_debug(" %s", argv[i]);
+ log_debug("\n");
/* argv[1] holds the address of the bzImage */
s = cmd_arg1(argc, argv) ? : env_get("fileaddr");
@@ -116,6 +124,7 @@ int do_zboot_states(struct cmd_tbl *cmdtp, int flag, int argc,
{
int ret;
+ log_debug("state_mask %x\n", state_mask);
if (flag & ZBOOT_STATE_START)
ret = do_zboot_start(cmdtp, flag, argc, argv);
if (!ret && (flag & ZBOOT_STATE_LOAD))