[U-Boot-Users] [PATCH 6/11] Add last filename transferred using net commands to environment

Keith J Outwater kjoutwater at raytheon.com
Fri May 5 20:04:40 CEST 2006


This patch adds the name of the last file transferred via tftp to the 
environment.

diff --git a/net/net.c b/net/net.c
index 1d1c98f..649b336 100644
--- a/net/net.c
+++ b/net/net.c
@@ -546,6 +546,9 @@ #endif
 
                                sprintf(buf, "%lX", (unsigned 
long)load_addr);
                                setenv("fileaddr", buf);
+
+                               sprintf(buf, "%s", BootFile);
+                               setenv("filename", buf);
                        }
                        eth_halt();
                        return NetBootFileXferSize;

Signed-off-by: Keith Outwater <outwater4 at comcast.net>




More information about the U-Boot mailing list