[U-Boot] BugFix: PXE Boot fails on old arm kernel with initrd without FDT

Tom Rini trini at konsulko.com
Wed Jan 10 13:05:27 UTC 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180110/25747914/attachment.sig>


More information about the U-Boot mailing list