[U-Boot] [PATCH] distro_bootcmd: do not try to fetch unused bootfile for PXE

Stefan Brüns stefan.bruens at rwth-aachen.de
Thu Dec 3 00:15:37 CET 2015


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 at 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



More information about the U-Boot mailing list