public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ralph Siemsen <ralphs@netwinder.org>
To: linux-mtd@lists.infradead.org
Subject: Autodetection problems
Date: Thu, 10 Mar 2005 18:37:06 -0500	[thread overview]
Message-ID: <4230DA22.8070305@netwinder.org> (raw)

I'm using kernel 2.6.10 on a PPC440GX with TWO 32MiB Intel J-series 
Strataflash.  These are x16 devices and they are arranged in parallel 
across the 32-bit data bus (interleave=2).  They share a common chip 
select and are mapped at the top of the address space.

With mostly default options to the kernel, the MTD autodetection logic 
performs two calls to do_cfi_probe() at offset 0x000000 and 0x2000000, 
and then proclaims, erroneously:
    Found 1 x32 devices at 0x0 in 32-bit bank
Attempts to use the flash in this state fail miserably (tons of block 
bitmap errors, cannot access beyond 32MiB, etc).

Thanks to suggestion by ThomasG, I switched on the advanced options, 
selected _only_ 32-bit buswidth, and _only_ interleave of 2.  Now the 
kernel reports what I expected:
    Found 2 x16 devices at 0x0 in 32-bit bank
and everything works like it a charm.

Though I'd mention this in case anyone encounters similar situation. 
I'm not sure if the autodetection code is meant to work in my situation...

PS. I also learned that having jffs2 debug level set at 2 causes 
considerably slowdown - doing an "ls" was taking 11 seconds.  Putting 
debug back to 0 makes everything work quickly as you'd expect.

I'm currently not subscribed to the list, please cc: any replies!
-Ralph

                 reply	other threads:[~2005-03-10 23:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4230DA22.8070305@netwinder.org \
    --to=ralphs@netwinder.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