X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_ext4.c;h=706fd54a553b9fc394a18c3f4add6027838967c0;hb=67cd4a63487400317f1586b130bc2475767a5315;hp=dcf76a50cde54d103419b0533146dd3f8f96592f;hpb=f9b55e22856a97523074f3dc40ea5d196298756a;p=u-boot diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c index dcf76a50cd..706fd54a55 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", - " [Absolute filename path] [Address] [sizebytes]\n" + " [sizebytes]\n" " - create a file in / directory"); #endif