mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
Fix: if using crc32 command watchdog timed out
* Fix: if using crc32 command watchdog timed out * change function call crc32(..) to the watchdog-safe variant crc_32_wd(..) to support watchdog reset Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
This commit is contained in:
parent
b038db852b
commit
39c6e039a0
@ -1092,7 +1092,7 @@ int do_mem_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||||||
|
|
||||||
length = simple_strtoul (argv[2], NULL, 16);
|
length = simple_strtoul (argv[2], NULL, 16);
|
||||||
|
|
||||||
crc = crc32 (0, (const uchar *) addr, length);
|
crc = crc32_wd (0, (const uchar *) addr, length, CHUNKSZ_CRC32);
|
||||||
|
|
||||||
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",
|
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",
|
||||||
addr, addr + length - 1, crc);
|
addr, addr + length - 1, crc);
|
||||||
@ -1137,7 +1137,7 @@ usage:
|
|||||||
addr += base_address;
|
addr += base_address;
|
||||||
length = simple_strtoul(*av++, NULL, 16);
|
length = simple_strtoul(*av++, NULL, 16);
|
||||||
|
|
||||||
crc = crc32(0, (const uchar *) addr, length);
|
crc = crc32_wd (0, (const uchar *) addr, length, CHUNKSZ_CRC32);
|
||||||
|
|
||||||
if (!verify) {
|
if (!verify) {
|
||||||
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",
|
printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user