[PATCH] sysboot: add zboot support to boot x86 image

Bin Meng bmeng.cn at gmail.com
Tue Dec 22 03:28:32 CET 2020


Hi Kory,

On Fri, Dec 11, 2020 at 1:49 AM Kory Maincent <kory.maincent at bootlin.com> wrote:
>

Please put some commit message here.

> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
> ---
>  cmd/pxe_utils.c   | 4 ++++
>  include/command.h | 2 ++
>  2 files changed, 6 insertions(+)
>
> diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
> index 53af04d7dc..deaedcf347 100644
> --- a/cmd/pxe_utils.c
> +++ b/cmd/pxe_utils.c
> @@ -548,6 +548,10 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
>         /* Try booting a Image */
>         else
>                 do_bootz(cmdtp, 0, bootm_argc, bootm_argv);
> +#elif defined(CONFIG_CMD_ZBOOT)
> +       /* Try booting an x86_64 Image */

What about x86?

> +       else
> +               do_zboot(cmdtp, 0, bootm_argc, bootm_argv);
>  #endif
>         unmap_sysmem(buf);
>
> diff --git a/include/command.h b/include/command.h
> index d1063774ce..57fe65000b 100644
> --- a/include/command.h
> +++ b/include/command.h
> @@ -133,6 +133,8 @@ extern int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
>
>  extern int do_booti(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
>
> +extern int do_zboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
> +
>  extern int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
>                            char *const argv[]);
>

Regards,
Bin


More information about the U-Boot mailing list