Fix: watchdog timed out, if using sha1 command
PATCH 1/1 Fix: watchdog timed out, if using sha1 command
* Fix: if using sha1 command watchdog timed out
* change function call sha1_csum(..) to the watchdog-safe variant sha1_csum_wd(..) to support watchdog reset
--- common/cmd_sha1sum.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_sha1sum.c +0 -0
@@ -37,7 +37,7 @@ static int do_sha1sum(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);
- sha1_csum((unsigned char *) addr, len, output);
+ sha1_csum_wd((unsigned char *) addr, len, output, CHUNKSZ_SHA1);
printf("SHA1 for %08lx ... %08lx ==> ", addr, addr + len - 1); for (i = 0; i < 20; i++)
printf("%02x", output[i]);
Signature · 1 line
1.7.3.4
Wolfgang Denk
AppliedPATCH 1/1 Fix: watchdog timed out, if using sha1 command
Dear Jens Scharsig,
Quoted 15 lines · In message <[email protected]> you wrote:
* Fix: if using sha1 command watchdog timed out
* change function callsha1_csum(..)to the watchdog-safe variantsha1_csum_wd(..)to support watchdog resetSigned-off-by Jens Scharsig <[email protected]>--- common/cmd_sha1sum.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)common/cmd_sha1sum.c +0
-0
common/cmd_sha1sum.c static int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int · line 37
Quoted 1 line
common/cmd_sha1sum.c +0
-0@@ -37,7 +37,7 @@ static int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Please fix your mailer (or rather use "git send-email to submit patches). This patch is line-wrapped, I had to fix it manually.
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 If the car industry behaved like the computer industry over the last 30 years, a Rolls-Royce would cost $5, get 300 miles per gallon, and blow up once a year killing all passengers inside.