public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] distro_bootcmd: do not try to fetch unused bootfile for PXE
@ 2015-12-02 23:15 Stefan Brüns
  2015-12-03 17:09 ` Stephen Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Brüns @ 2015-12-02 23:15 UTC (permalink / raw)
  To: u-boot

pxe get derives the pxelinux config file name from the bootfile name,
but the bootfile itself is never used and might not even exist.
Disable bootfile autoload to avoid the delay.

Signed-off-by: Stefan Br?ns <stefan.bruens@rwth-aachen.de>
---
 include/config_distro_bootcmd.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 66264ce..c9d4b25 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -176,7 +176,9 @@
 #define BOOTENV_DEV_PXE(devtypeu, devtypel, instance) \
 	"bootcmd_pxe=" \
 		BOOTENV_RUN_USB_INIT \
-		"dhcp; " \
+		"env exists autoload && setenv autoload_save ${autoload}; " \
+			"setenv autoload no; dhcp; " \
+		"env exists autoload_save && setenv autoload ${autoload_save}; " \
 		"if pxe get; then " \
 			"pxe boot; " \
 		"fi\0"
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-03 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 23:15 [U-Boot] [PATCH] distro_bootcmd: do not try to fetch unused bootfile for PXE Stefan Brüns
2015-12-03 17:09 ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox