diff options
author | Jason Hobbs <jason.hobbs@calxeda.com> | 2011-08-31 10:37:30 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-17 22:25:35 +0200 |
commit | 06283a6401f652e709b7b27d02238d0c6f92cb0c (patch) | |
tree | c3c841d8d464533e85674b41601fcb0a61e5ed47 /include/common.h | |
parent | e11938eabc17de35822de1a0a1102213c326f788 (diff) | |
download | u-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/common.h')
-rw-r--r-- | include/common.h | 6 |
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); |