FW: Zlib compress
startec at ms11.hinet.net
Thu May 23 01:52:53 EDT 2002
I replace zlib.c and I can read the file now.
I only replace datum = *(__u16*)buf with datum =
get_unaligned((__u16*)buf) in cfi_amdstd_write funtion. Is is enough? I
read the discussion about alignment trap and mtd in armlinux mail list,
and it seems that I should modify more codes.
startec at ms11.hinet.net said:
> I can not use alignment trap with SamsungS3C4510 which is a ARM7TDMI
> processor, because ARM7TDMI does not have coprocessor 15 using in
> alignment trap codes. Now I try to use get_unaligned to fix the
> alignment problem in my platform and I can write the file into the
> flash, but when I read the file, I got decompressing error, then
> unalignment exception. How many codes do I need to modify?
I'm not aware of any related to JFFS2 or MTD other than the ones in the
flash driver. Did you decode the oops you got? Where was it from?
Linux MTD discussion mailing list
More information about the linux-mtd