On Mon, Oct 30, 2017 at 02:37:17PM +0100, Sven Glodowski wrote:

> Hello,
> 
> PXE/Extlinux boot fails on old Kernel which requires initrd but doesn't have 
> FDT!
> 
> sysboot loads initrd loaded into RAM, but system boots without initrd and 
> hangs.
> 
> Kernel:
>   Linux odroid 3.8.13.30 #1 SMP PREEMPT Wed Feb 1 20:17:12 CET 2017 armv7l 
> armv7l armv7l GNU/Linux
> 
> Looking into [master]u-boot/cmd/pxe.c, 
>   function  label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label)
> 
> Number of boot parameter initializing with 2
>  622:         int bootm_argc = 2;
> 
> Before calling boot_m / boot_z, 
> number of boot parameters updated only if FTD is used!
> 
>  783  if (!bootm_argv[3])
>  784          bootm_argv[3] = getenv("fdt_addr");
>  785
>  786         if (bootm_argv[3]) {
>  787                 if (!bootm_argv[2])
>  788                         bootm_argv[2] = "-";
>  789                 bootm_argc = 4;
> 
> Applying this patch, Number of boot parameters set to 3 if initrd loaded 
> before.
> 

This looks like a reasonable bugfix, thanks.  But first, you forgot your
Signed-off-by line.  And second, can you please condense your commit
message a bit?  Thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to