All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/3] sysboot: add zboot support to boot x86 Linux kernel image
@ 2021-02-02 11:56 Kory Maincent
  2021-02-02 11:56 ` [PATCH v4 2/3] command.h: Clean-up patch, remove extern from the header Kory Maincent
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kory Maincent @ 2021-02-02 11:56 UTC (permalink / raw)
  To: u-boot

Add "zboot" command to the list of supported boot in the label_boot
function.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Change since v1:
 - Modify comment.

Change since v2:
 - Update do_zboot to do_zboot_parent function to follow the patch:
   5588e776b0

Change since v3:
 - Follow review from Simon Glass
 - Add clean-up paches

 cmd/pxe_utils.c   | 4 ++++
 include/command.h | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index 3526a651d7..b788ee9576 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -657,6 +657,10 @@ static int label_boot(struct cmd_tbl *cmdtp, struct pxe_label *label)
 	/* Try booting a Image */
 	else
 		do_bootz(cmdtp, 0, bootm_argc, bootm_argv);
+#elif IS_ENABLED(CONFIG_CMD_ZBOOT)
+	/* Try booting an x86_64 Linux kernel image */
+	else
+		do_zboot_parent(cmdtp, 0, bootm_argc, bootm_argv, NULL);
 #endif
 	unmap_sysmem(buf);
 
diff --git a/include/command.h b/include/command.h
index e229bf2825..45d59f92d2 100644
--- a/include/command.h
+++ b/include/command.h
@@ -165,6 +165,9 @@ extern int do_bootz(struct cmd_tbl *cmdtp, int flag, int argc,
 extern int do_booti(struct cmd_tbl *cmdtp, int flag, int argc,
 		    char *const argv[]);
 
+int do_zboot_parent(struct cmd_tbl *cmdtp, int flag, int argc,
+		    char *const argv[], int *repeatable);
+
 extern int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
 			   char *const argv[]);
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-02 13:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 11:56 [PATCH v4 1/3] sysboot: add zboot support to boot x86 Linux kernel image Kory Maincent
2021-02-02 11:56 ` [PATCH v4 2/3] command.h: Clean-up patch, remove extern from the header Kory Maincent
2021-02-02 13:21   ` Bin Meng
2021-02-02 11:56 ` [PATCH v4 3/3] pxe_utils: clean-up, replace ifdef by IS_ENABLED Kory Maincent
2021-02-02 13:22   ` Bin Meng
2021-02-02 13:19 ` [PATCH v4 1/3] sysboot: add zboot support to boot x86 Linux kernel image Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.