Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
Hi, Tom Yes, I have tested all kinds of cases. Best Regards Wenbin Song > -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, August 30, 2016 8:22 AM > To: Wenbin Song <wenbin.s...@nxp.com> > Cc: s...@chromium.org; bmeng...@gmail.com; h...@denx.de; > p.marc...@samsung.com; s...@denx.de; york sun <york@nxp.com>; u- > b...@lists.denx.de; Mingkai Hu <mingkai...@nxp.com>; Qianyu Gong > <qianyu.g...@nxp.com>; Shaohui Xie <shaohui....@nxp.com>; > zhiqian....@nxp.com > Subject: Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image > > On Thu, Aug 04, 2016 at 03:44:50PM +0800, Wenbin song wrote: > > > From: York Sun <york@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@nxp.com> > > --- > > cmd/pxe.c | 9 + > > 1 file changed, 5 insertions(+), 4 deletions(-) > > Can you please confirm you tested the other common cases of PXE booting still > work with this change? Thanks! > > -- > Tom ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
On Thu, Aug 04, 2016 at 03:44:50PM +0800, Wenbin song wrote: > From: York Sun> > 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 > --- > cmd/pxe.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) Can you please confirm you tested the other common cases of PXE booting still work with this change? Thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
On 08/28/2016 08:20 PM, Wenbin Song wrote: > Hi, > > What would you advise? > Resend if necessary. In the mean time, get the msg id and open an internal ticket for mail team to track down the log. I did it before and I found the mail wasn't even delivered to the mailing list. But they were not able to find out why. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
Hi, What would you advise? Thanks. Best Regards Wenbin Song > -Original Message- > From: Wenbin song [mailto:wenbin.s...@nxp.com] > Sent: Thursday, August 04, 2016 3:45 PM > To: s...@chromium.org; bmeng...@gmail.com; h...@denx.de; > p.marc...@samsung.com; s...@denx.de; york sun; u- > b...@lists.denx.de; Mingkai Hu ; Wenbin Song > ; Qianyu Gong ; Shaohui Xie > ; zhiqian@nxp.com > Subject: [PATCH] pxe: Fix pxe boot with FIT image > > From: York Sun > > 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 > --- > cmd/pxe.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > 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 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
From: York SunWhen 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 --- cmd/pxe.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) 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 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
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 GlassSent: Thursday, August 4, 2016 06:37 PM To: Wenbin Song Subject: Re: [PATCH] pxe: Fix pxe boot with FIT image CC: Bin Meng ,Heiko Schocher ,Przemyslaw Marczak ,Stefan Roese ,york sun ,U-Boot Mailing List ,Mingkai Hu ,Qianyu Gong ,Shaohui Xie ,zhiqian@nxp.com,Tom Rini +Tom On 4 August 2016 at 01:44, Wenbin song wrote: > From: York Sun > > 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 > --- > 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 > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image
+Tom On 4 August 2016 at 01:44, Wenbin songwrote: > From: York Sun > > 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 > --- > 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 > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot