public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Steve Tsai" <startec@ms11.hinet.net>
To: "'David Woodhouse'" <dwmw2@infradead.org>
Cc: "Linux MTD mailing list" <linux-mtd@lists.infradead.org>
Subject: RE: FW: Zlib compress
Date: Thu, 23 May 2002 13:52:53 +0800	[thread overview]
Message-ID: <000201c2021e$159843d0$5501a8c0@synso.com.tw> (raw)
In-Reply-To: <30199.1022072805@redhat.com>

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/

      reply	other threads:[~2002-05-23  5:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000201c2021e$159843d0$5501a8c0@synso.com.tw' \
    --to=startec@ms11.hinet.net \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox