diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-24 18:00:07 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-26 21:36:22 +0200 |
commit | 1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e (patch) | |
tree | 39bb7db58e2d99c2472a3368c9f32df7d79f6a22 /net/net.c | |
parent | 1aec244acf9daf0d4dad80fe86b2c2b7404251d6 (diff) | |
download | u-boot-imx-1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e.zip u-boot-imx-1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e.tar.gz u-boot-imx-1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e.tar.bz2 |
net: tftpput: implement tftp logic
This adds logic to tftp.c to implement the tftp 'put' command, and
updates the README.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -408,6 +408,9 @@ restart: NetBootFileXferSize = 0; switch (protocol) { case TFTPGET: +#ifdef CONFIG_CMD_TFTPPUT + case TFTPPUT: +#endif /* always use ARP to get server ethernet address */ TftpStart(protocol); break; @@ -1794,6 +1797,7 @@ static int net_check_prereq(enum proto_t protocol) case NFS: #endif case TFTPGET: + case TFTPPUT: if (NetServerIP == 0) { puts("*** ERROR: `serverip' not set\n"); return 1; |