summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@comelit.it>2011-05-17 00:03:40 +0000
committerWolfgang Denk <wd@denx.de>2011-05-19 21:38:32 +0200
commit7a83af07aef3c924cfb2d36e68eea8b86d22f2a1 (patch)
tree695b7755a149f98ace4097f4a48762f258614d35 /net/net.c
parente59e35620af0d57de75cddb9ec3f19449b998868 (diff)
downloadu-boot-imx-7a83af07aef3c924cfb2d36e68eea8b86d22f2a1.zip
u-boot-imx-7a83af07aef3c924cfb2d36e68eea8b86d22f2a1.tar.gz
u-boot-imx-7a83af07aef3c924cfb2d36e68eea8b86d22f2a1.tar.bz2
TFTP: add tftpsrv command
Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 2abf879..7a93542 100644
--- a/net/net.c
+++ b/net/net.c
@@ -423,7 +423,11 @@ restart:
/* always use ARP to get server ethernet address */
TftpStart();
break;
-
+#ifdef CONFIG_CMD_TFTPSRV
+ case TFTPSRV:
+ TftpStartServer();
+ break;
+#endif
#if defined(CONFIG_CMD_DHCP)
case DHCP:
BootpTry = 0;
@@ -1791,6 +1795,7 @@ common:
/* Fall through */
case NETCONS:
+ case TFTPSRV:
if (NetOurIP == 0) {
puts("*** ERROR: `ipaddr' not set\n");
return 1;