Different zlib CRC Algorithms

Joakim Tjernlund joakim.tjernlund at lumentis.se
Tue Feb 4 12:47:28 EST 2003

> > > Why does ppcboot/uboot have two versions of crc32()? What's the
> > > difference between them?
> >
> > The difference is the ^0xffffffff part you decribed above. One is used by
> > uboot for crc'ing images, environment etc. The other for JFFS2 support in
> > uboot.
> So that would confirm my original observation that the kernel does use a 
> slightly different CRC algorithm than userspace zlib.

hmm, does zlib use crc32() at all? I have only seen adler32() in zlib,
I haven't look very hard though.

> It's not a problem - I was just curious to know why.
> Phil

More information about the linux-mtd mailing list