public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* RE: FW: Zlib compress
       [not found] <23111.1021290954@redhat.com>
@ 2002-05-22 10:28 ` Steve Tsai
  2002-05-22 13:06   ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Tsai @ 2002-05-22 10:28 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: Linux MTD mailing list

David,

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?  


inflate returned -5
Unhandled fault: alignment exception (13) at 0x00000001
fault-common.c 96
Internal error: Oops: 0
CPU: 0
pc : [<00028ad0>]    lr : [<00053c7c>]    Not tainted
sp : 002a5b3c  ip : 001e7a88  fp : 002a5b54
r10: 003bd000  r9 : 00373000  r8 : 003bd000
r7 : 00373000  r6 : 00001000  r5 : 002a5bc8  r4 : 002399e8
r3 : 00000239  r2 : 00239a00  r1 : 00239a00  r0 : 00008e40
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 0
Process telnet (pid: 19, stackpage=002a5000)
Stack:
002a5b20:                            00053c7c  00028ad0 20000013
ffffffff 002399

Steve Tsai

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FW: Zlib compress
  2002-05-22 10:28 ` FW: Zlib compress Steve Tsai
@ 2002-05-22 13:06   ` David Woodhouse
  2002-05-23  5:52     ` Steve Tsai
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2002-05-22 13:06 UTC (permalink / raw)
  To: Steve Tsai; +Cc: Linux MTD mailing list

startec@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?

--
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: FW: Zlib compress
  2002-05-22 13:06   ` David Woodhouse
@ 2002-05-23  5:52     ` Steve Tsai
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Tsai @ 2002-05-23  5:52 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: Linux MTD mailing list

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. 

Steve Tsai



startec@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?

--
dwmw2



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-23  5:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <23111.1021290954@redhat.com>
2002-05-22 10:28 ` FW: Zlib compress Steve Tsai
2002-05-22 13:06   ` David Woodhouse
2002-05-23  5:52     ` Steve Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox