summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-03-20 04:21:38 +0000
committerTom Rini <trini@ti.com>2013-03-27 15:30:11 -0400
commit0171d52c410cbaa9290b1b214e695697c835bfe5 (patch)
tree527005296ec34f72922380f1a01c003c8704493c /common
parent1d766c419e6666d2e06c3b419b65c98fbc621a09 (diff)
downloadu-boot-imx-0171d52c410cbaa9290b1b214e695697c835bfe5.zip
u-boot-imx-0171d52c410cbaa9290b1b214e695697c835bfe5.tar.gz
u-boot-imx-0171d52c410cbaa9290b1b214e695697c835bfe5.tar.bz2
cmd_ext4: BREAK and correct ext4write parameter order
The ext4write command was taking the in-memory address and filename path in reverse order from the rest of the filesystem read and write commands. This corrects the order to be the same as fatload, etc. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ext4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c
index dcf76a5..706fd54 100644
--- a/common/cmd_ext4.c
+++ b/common/cmd_ext4.c
@@ -88,10 +88,10 @@ int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc,
dev = dev_desc->dev;
/* get the filename */
- filename = argv[3];
+ filename = argv[4];
/* get the address in hexadecimal format (string to int) */
- ram_address = simple_strtoul(argv[4], NULL, 16);
+ ram_address = simple_strtoul(argv[3], NULL, 16);
/* get the filesize in base 10 format */
file_size = simple_strtoul(argv[5], NULL, 10);
@@ -122,7 +122,7 @@ fail:
U_BOOT_CMD(ext4write, 6, 1, do_ext4_write,
"create a file in the root directory",
- "<interface> <dev[:part]> [Absolute filename path] [Address] [sizebytes]\n"
+ "<interface> <dev[:part]> <addr> <absolute filename path> [sizebytes]\n"
" - create a file in / directory");
#endif