diff options
author | wdenk <wdenk> | 2003-06-29 21:03:46 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-29 21:03:46 +0000 |
commit | b0fce99bfc116c2ddb4506268d6e4a0a7054478d (patch) | |
tree | 6a11d99f1e350d9046c1c0e17298fa2bccd7db3e /common/cmd_fat.c | |
parent | eeacb89cb311fe273fef0f20b2bacf589b36f8f4 (diff) |
Fix some missing commands, cleanup header filesU-Boot-0_4_1
(autoscript, bmp, bsp, fat, mmc, nand, portio, ...)
Diffstat (limited to 'common/cmd_fat.c')
-rw-r--r-- | common/cmd_fat.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/common/cmd_fat.c b/common/cmd_fat.c index 12eb764a9dd..6be55556251 100644 --- a/common/cmd_fat.c +++ b/common/cmd_fat.c @@ -26,7 +26,6 @@ */ #include <common.h> #include <command.h> -#include <cmd_autoscript.h> #include <s_record.h> #include <net.h> #include <ata.h> @@ -63,6 +62,14 @@ int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return size; } +cmd_tbl_t U_BOOT_CMD(FATLOAD) = MK_CMD_ENTRY( + "fatload", 4, 0, do_fat_fsload, + "fatload - load binary file from a dos filesystem\n", + "[ off ] [ filename ]\n" + " - load binary file from dos filesystem\n" + " with offset 'off'\n" +); + int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { char *filename = "/"; @@ -76,6 +83,13 @@ int do_fat_ls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return (ret); } +cmd_tbl_t U_BOOT_CMD(FATLS) = MK_CMD_ENTRY( + "fatls", 2, 1, do_fat_ls, + "fatls - list files in a directory (default /)\n", + "[ directory ]\n" + " - list files in a directory\n" +); + int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { int ret; @@ -87,6 +101,13 @@ int do_fat_fsinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return (ret); } +cmd_tbl_t U_BOOT_CMD(FATINFO) = MK_CMD_ENTRY( + "fatinfo", 1, 1, do_fat_fsinfo, + "fatinfo - print information about filesystem\n", + "\n" + " - print information about filesystem\n" +); + #ifdef NOT_IMPLEMENTED_YET /* find first device whose first partition is a DOS filesystem */ int find_fat_partition (void) |