Commit 051f9a3e authored by Łukasz Majewski's avatar Łukasz Majewski Committed by Tom Rini

dfu:ext4:fix Fix ext4{read|write} command formatting

In the following commit:
"dfu: Support larger than memory transfers."
SHA1: ea2453d5

The ext4{read|write} command formatting has been changed. It removed
a write mandatory [sizebytes] parameter.

It extents DFU_FS_EXT4 case at mmc_file_op to provide mandatory
parameter for DFU write.
Signed-off-by: default avatarLukasz Majewski <>
Cc: Tom Rini <>
Cc: Pantelis Antoniou <>
Cc: Marek Vasut <>
Cc: Heiko Schocher <>
parent 36f05e60
......@@ -98,6 +98,8 @@ static int mmc_file_op(enum dfu_mmc_op op, struct dfu_entity *dfu,
op == DFU_OP_READ ? "load" : "write",
dfu->, dfu->data.mmc.part,
(unsigned int) buf, dfu->name);
if (op == DFU_OP_WRITE)
sprintf(cmd_buf + strlen(cmd_buf), " %ld", *len);
printf("%s: Layout (%s) not (yet) supported!\n", __func__,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment