public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] dfu:ext4:fix Fix ext4{read|write} command formatting
@ 2013-06-28 16:41 Lukasz Majewski
  2013-06-28 16:41 ` [U-Boot] [PATCH 2/2] dfu:ext4:fix Fix DFU upload functionality Lukasz Majewski
  2013-07-03 19:33 ` [U-Boot] [U-Boot, 1/2] dfu:ext4:fix Fix ext4{read|write} command formatting Tom Rini
  0 siblings, 2 replies; 14+ messages in thread
From: Lukasz Majewski @ 2013-06-28 16:41 UTC (permalink / raw)
  To: u-boot

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

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: Lukasz Majewski <l.majewski@samsung.com>
Cc: Tom Rini <trini@ti.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Heiko Schocher <hs@denx.de>
---
 drivers/dfu/dfu_mmc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c
index e2f3978..e7ee077 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -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->data.mmc.dev, dfu->data.mmc.part,
 			(unsigned int) buf, dfu->name);
+		if (op == DFU_OP_WRITE)
+			sprintf(cmd_buf + strlen(cmd_buf), " %ld", *len);
 		break;
 	default:
 		printf("%s: Layout (%s) not (yet) supported!\n", __func__,
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-07-08 14:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 16:41 [U-Boot] [PATCH 1/2] dfu:ext4:fix Fix ext4{read|write} command formatting Lukasz Majewski
2013-06-28 16:41 ` [U-Boot] [PATCH 2/2] dfu:ext4:fix Fix DFU upload functionality Lukasz Majewski
2013-07-03 19:33   ` [U-Boot] [U-Boot, " Tom Rini
2013-07-03 21:49     ` Marek Vasut
2013-07-05 12:48       ` Tom Rini
2013-07-05 13:55         ` Marek Vasut
2013-07-05 14:09           ` Tom Rini
2013-07-05 14:32             ` Marek Vasut
2013-07-05 15:25               ` Lukasz Majewski
2013-07-07  6:43                 ` Sumit Gemini
2013-07-08  6:22                   ` Lukasz Majewski
2013-07-08  8:59                     ` Sumit Gemini
2013-07-08 14:16                       ` Tom Rini
2013-07-03 19:33 ` [U-Boot] [U-Boot, 1/2] dfu:ext4:fix Fix ext4{read|write} command formatting Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox