[U-Boot] [PATCH] pxe: Fix pxe boot with FIT image

york sun york.sun at nxp.com
Fri Aug 5 03:44:39 CEST 2016


Recently I have seen mails not reaching mailing list many times. Not sure if it was our email server issue.

York


-------- Original Message --------
From: Simon Glass <sjg at chromium.org>
Sent: Thursday, August 4, 2016 06:37 PM
To: Wenbin Song <wenbin.song at nxp.com>
Subject: Re: [PATCH] pxe: Fix pxe boot with FIT image
CC: Bin Meng <bmeng.cn at gmail.com>,Heiko Schocher <hs at denx.de>,Przemyslaw Marczak <p.marczak at samsung.com>,Stefan Roese <sr at denx.de>,york sun <york.sun at nxp.com>,U-Boot Mailing List <u-boot at lists.denx.de>,Mingkai Hu <mingkai.hu at nxp.com>,Qianyu Gong <qianyu.gong at nxp.com>,Shaohui Xie <shaohui.xie at nxp.com>,zhiqian.hou at nxp.com,Tom Rini <trini at konsulko.com>


+Tom

On 4 August 2016 at 01:44, Wenbin song <wenbin.song at nxp.com> wrote:
> From: York Sun <york.sun at nxp.com>
>
> When FIT image is used, a single image provides kernel, device
> tree and optionally ramdisk. Argc and argv need to be adjusted
> to support this.
>
> Signed-off-by: York Sun <york.sun at nxp.com>
> ---
>  cmd/pxe.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

I cannot see this patch in patchwork - Tom do you know if there is
anything wrong?

- Simon

>
> diff --git a/cmd/pxe.c b/cmd/pxe.c
> index 9434a18..0a07f14 100644
> --- a/cmd/pxe.c
> +++ b/cmd/pxe.c
> @@ -620,7 +620,7 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
>         char initrd_str[22];
>         char mac_str[29] = "";
>         char ip_str[68] = "";
> -       int bootm_argc = 3;
> +       int bootm_argc = 2;
>         int len = 0;
>         ulong kernel_addr;
>         void *buf;
> @@ -652,8 +652,6 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
>                 strcpy(bootm_argv[2], getenv("ramdisk_addr_r"));
>                 strcat(bootm_argv[2], ":");
>                 strcat(bootm_argv[2], getenv("filesize"));
> -       } else {
> -               bootm_argv[2] = "-";
>         }
>
>         if (get_relfile_envaddr(cmdtp, label->kernel, "kernel_addr_r") < 0) {
> @@ -785,8 +783,11 @@ static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
>         if (!bootm_argv[3])
>                 bootm_argv[3] = getenv("fdt_addr");
>
> -       if (bootm_argv[3])
> +       if (bootm_argv[3]) {
> +               if (!bootm_argv[2])
> +                       bootm_argv[2] = "-";
>                 bootm_argc = 4;
> +       }
>
>         kernel_addr = genimg_get_kernel_addr(bootm_argv[1]);
>         buf = map_sysmem(kernel_addr, 0);
> --
> 2.1.0.27.g96db324
>


More information about the U-Boot mailing list