From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 10 Jan 2018 08:05:27 -0500 Subject: [U-Boot] BugFix: PXE Boot fails on old arm kernel with initrd without FDT In-Reply-To: <1889937.G0aEoS4ujg@neptun.jupiter.dom> References: <1889937.G0aEoS4ujg@neptun.jupiter.dom> Message-ID: <20180110130527.GD2621@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: