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

5 May
2006
5 May
'06
8:04 p.m.
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@comcast.net
6941
Age (days ago)
6941
Last active (days ago)
0 comments
1 participants
participants (1)
-
Keith J Outwater