
Dear "ffileppo@libero.it",
In message 809266.7065381336839126651.JavaMail.defaultUser@defaultHost you wrote:
for example, I have a block of 8 words, starting at 0x0:
00000000: a b c d 00000010: e f g h
where a is the crc32 computed on b,c,d,e,f,g,h
Within uboot, I would like to compute the crc32 of b,c,d,e,f,g,h and compare it with a.
-- Compute CRC and store at address 20 crc 1 7 20 -- Compare CRCs if itest *0 == *20; then echo CRC ok; else echo CRC bad; fi
Is that correct?
Basicly yes, except that the crc32 command does not operate on 32 bit "words", but on an area of memory (i. e. a number of octets). Depending on your expectations on endianess etc. this may or may bot be the same. The "32" in the crc32 command name is just an indication for the size of the computed checksum.
Best regards,
Wolfgang Denk