Skip to contentSkip to conversation

Fix: watchdog timed out, if using md5 command

PATCH New Jens Scharsig 2 participants 3 messages Jul 18, 2011 – Jul 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix: watchdog timed out, if using md5 command

* Fix: if using md5 command watchdog timed out
* change function call md5(..) to the watchdog-safe variant md5_wd(..) to support watchdog reset

---
 common/cmd_md5sum.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_md5sum.c +0 -0
index d6ebb80..629a74d 100644
@@ -37,7 +37,7 @@ static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int

argc, char * const argv[])
addr = simple_strtoul(argv[1], NULL, 16);
len = simple_strtoul(argv[2], NULL, 16);

- md5((unsigned char *) addr, len, output);
+ md5_wd((unsigned char *) addr, len, output, CHUNKSZ_MD5);
printf("md5 for %08lx ... %08lx ==> ", addr, addr + len - 1); for (i = 0; i < 16; i++)
printf("%02x", output[i]);

Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Fix: watchdog timed out, if using md5 command

Dear Jens Scharsig,

Quoted 15 lines · In message <[email protected]> you wrote:

* Fix: if using md5 command watchdog timed out
* change function call md5(..) to the watchdog-safe variant md5_wd(..) to support watchdog reset

---
 common/cmd_md5sum.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_md5sum.c +0 -0
index d6ebb80..629a74d 100644

common/cmd_md5sum.c static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int · line 37

Quoted 1 line
common/cmd_md5sum.c +0 -0
@@ -37,7 +37,7 @@ static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int
 argc, char * const argv[])

Arghhh. Line wrapped, too.

This is the last time I'm gonna fix your patches. PLEASE fix your mailer!

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Good morning. This is the telephone company. Due  to  repairs,  we're
giving  you  advance notice that your service will be cut off indefi-
nitely at ten o'clock. That's two minutes from now.
#2 lore raw

PATCH 1/1 Fix: watchdog timed out, if using md5 command

Dear Wolfgang Denk:

Quoted 7 lines

Dear Jens Scharsig,

Arghhh. Line wrapped, too.

This is the last time I'm gonna fix your patches. PLEASE fix your mailer!

Sorry about the trouble.
I have many times the word wrap will be deactivated. Our admin will reset this option on each update.

On future patches i will watch this and use git to send mail.

Best regards

Jens Scharsig