summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Hobbs <jason.hobbs@calxeda.com>2011-08-31 10:37:30 -0500
committerWolfgang Denk <wd@denx.de>2011-10-17 22:25:35 +0200
commit06283a6401f652e709b7b27d02238d0c6f92cb0c (patch)
treec3c841d8d464533e85674b41601fcb0a61e5ed47 /include
parente11938eabc17de35822de1a0a1102213c326f788 (diff)
downloadu-boot-imx-06283a6401f652e709b7b27d02238d0c6f92cb0c.zip
u-boot-imx-06283a6401f652e709b7b27d02238d0c6f92cb0c.tar.gz
u-boot-imx-06283a6401f652e709b7b27d02238d0c6f92cb0c.tar.bz2
Add pxe command
Add pxe command, which is intended to mimic PXELINUX functionality. 'pxe get' uses tftp to retrieve a file based on UUID, MAC address or IP address. 'pxe boot' interprets the contents of PXELINUX config like file to boot using a specific initrd, kernel and kernel command line. This patch also adds a README.pxe file - see it for more details on the pxe command. Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 7950c8b..77a29c8 100644
--- a/include/common.h
+++ b/include/common.h
@@ -255,6 +255,9 @@ int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
/* common/main.c */
void main_loop (void);
int run_command (const char *cmd, int flag);
+#ifdef CONFIG_CMD_PXE
+int run_command2(const char *cmd, int flag);
+#endif
int readline (const char *const prompt);
int readline_into_buffer (const char *const prompt, char * buffer);
int parse_line (char *, char *[]);
@@ -285,6 +288,9 @@ extern ulong load_addr; /* Default Load Address */
/* common/cmd_doc.c */
void doc_probe(unsigned long physadr);
+/* common/cmd_net.c */
+int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+
/* common/cmd_nvedit.c */
int env_init (void);
void env_relocate (void);