aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_net.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-02-24 02:00:03 +0000
committerwdenk <wdenk>2004-02-24 02:00:03 +0000
commitcbd8a35c6dbaaca35494cbec319960887ad02dcf (patch)
treef3a5f6817a203a6e3a0a0ab7fb9df5b3697c07e3 /common/cmd_net.c
parent074cff0d2863bab21b065cf283eccd728f4fecaa (diff)
downloadu-boot-linaro-natty-cbd8a35c6dbaaca35494cbec319960887ad02dcf.tar.gz
* Patch by Masami Komiy, 22 Feb 2004:
Add support for NFS for file download * Minor code cleanup
Diffstat (limited to 'common/cmd_net.c')
-rw-r--r--common/cmd_net.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/cmd_net.c b/common/cmd_net.c
index e9b54d245..f13e9d493 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -81,6 +81,19 @@ U_BOOT_CMD(
);
#endif /* CFG_CMD_DHCP */
+#if (CONFIG_COMMANDS & CFG_CMD_NFS)
+int do_nfs (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+{
+ return netboot_common(NFS, cmdtp, argc, argv);
+}
+
+U_BOOT_CMD(
+ nfs, 3, 1, do_nfs,
+ "nfs - boot image via network using NFS protocol\n",
+ "[loadAddress] [host ip addr:bootfilename]\n"
+);
+#endif /* CFG_CMD_NFS */
+
static void netboot_update_env(void)
{
char tmp[16] ;