summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-06-19 06:34:50 -0600
committerTom Rini <trini@konsulko.com>2024-06-26 13:17:51 -0600
commit6e5e713e8125bbc0efb71cc81e7d68654aff0608 (patch)
tree4368b98610d83de08d179651bf51222113723be1 /boot
parent04c63f134cf268532f6e499aa2edb4f6f45ecefb (diff)
downloadu-boot-6e5e713e8125bbc0efb71cc81e7d68654aff0608.tar.gz
u-boot-6e5e713e8125bbc0efb71cc81e7d68654aff0608.tar.bz2
u-boot-6e5e713e8125bbc0efb71cc81e7d68654aff0608.zip
pxe: Add debugging for booting
Show which boot protocol is being used. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/pxe_utils.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c
index 4b22bb6f52..53ddb16be7 100644
--- a/boot/pxe_utils.c
+++ b/boot/pxe_utils.c
@@ -4,6 +4,8 @@
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/
+#define LOG_CATEGORY LOGC_BOOT
+
#include <command.h>
#include <dm.h>
#include <env.h>
@@ -762,17 +764,22 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label)
/* Try bootm for legacy and FIT format image */
if (genimg_get_format(buf) != IMAGE_FORMAT_INVALID &&
- IS_ENABLED(CONFIG_CMD_BOOTM))
+ IS_ENABLED(CONFIG_CMD_BOOTM)) {
+ log_debug("using bootm\n");
do_bootm(ctx->cmdtp, 0, bootm_argc, bootm_argv);
/* Try booting an AArch64 Linux kernel image */
- else if (IS_ENABLED(CONFIG_CMD_BOOTI))
+ } else if (IS_ENABLED(CONFIG_CMD_BOOTI)) {
+ log_debug("using booti\n");
do_booti(ctx->cmdtp, 0, bootm_argc, bootm_argv);
/* Try booting a Image */
- else if (IS_ENABLED(CONFIG_CMD_BOOTZ))
+ } else if (IS_ENABLED(CONFIG_CMD_BOOTZ)) {
+ log_debug("using bootz\n");
do_bootz(ctx->cmdtp, 0, bootm_argc, bootm_argv);
/* Try booting an x86_64 Linux kernel image */
- else if (IS_ENABLED(CONFIG_CMD_ZBOOT))
+ } else if (IS_ENABLED(CONFIG_CMD_ZBOOT)) {
+ log_debug("using zboot\n");
do_zboot_parent(ctx->cmdtp, 0, zboot_argc, zboot_argv, NULL);
+ }
unmap_sysmem(buf);