summaryrefslogtreecommitdiffstats
path: root/commands/net.c
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2007-11-09 14:06:57 +0100
committerJuergen Beisert <j.beisert@pengutronix.de>2007-11-09 14:06:57 +0100
commit9b07bdbbdcd99ba75d24bddb2be7fe4141e10541 (patch)
tree8766a75a0a0af3de81da92503c379c0747fa4e52 /commands/net.c
parent4719b0bd55d14eca1b323f3dba5d70a0e8a02de0 (diff)
parent3ff14ef200fc6f69b6237fffabbad796aa463cfb (diff)
downloadbarebox-9b07bdbbdcd99ba75d24bddb2be7fe4141e10541.tar.gz
barebox-9b07bdbbdcd99ba75d24bddb2be7fe4141e10541.tar.xz
Merge branch 'docu'
Diffstat (limited to 'commands/net.c')
-rw-r--r--commands/net.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/commands/net.c b/commands/net.c
index 25115e4f42..faf87d6ec6 100644
--- a/commands/net.c
+++ b/commands/net.c
@@ -1,6 +1,4 @@
/*
- * tftp, rarpboot, dhcp, nfs, cdp - Boot support
- *
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
@@ -23,6 +21,11 @@
* MA 02111-1307 USA
*/
+/**
+ * @file
+ * @brief tftp, rarpboot, dhcp, nfs, cdp - Boot support
+ */
+
#include <common.h>
#include <command.h>
#include <environment.h>
@@ -102,6 +105,22 @@ U_BOOT_CMD_START(tftp)
U_BOOT_CMD_HELP(cmd_tftp_help)
U_BOOT_CMD_END
+/**
+ * @page tftp_command tftp
+ *
+ * Usage is: tftp \<filename\> [\<localfilename\>]
+ *
+ * Load a file via network using BootP/TFTP protocol. The loaded file you
+ * can find after download in you current ramdisk. Refer \b ls command.
+ *
+ * \<localfile> can be the local filename only, or also a device name. In the
+ * case of a device name, the will gets stored there. This works also for
+ * partitions of flash memory. Refer \b erase, \b unprotect for flash
+ * preparation.
+ *
+ * Note: This command is available only, if enabled in the menuconfig.
+ */
+
#ifdef CONFIG_NET_RARP
static int do_rarpb (cmd_tbl_t *cmdtp, int argc, char *argv[])
{
@@ -116,6 +135,16 @@ U_BOOT_CMD_START(rarpboot)
U_BOOT_CMD_END
#endif /* CONFIG_NET_RARP */
+/**
+ * @page rarp_command rarp
+ *
+ * Usage is: FIXME
+ *
+ * Load a file via network using rarp/tftp protocol. FIXME: Where to find it
+ * after loading?
+ * @note This command is available only, if enabled in the menuconfig.
+ */
+
#ifdef CONFIG_NET_DHCP
static int do_dhcp (cmd_tbl_t *cmdtp, int argc, char *argv[])
{