public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Dan Post <postster@gmail.com>
To: Olav Kongas <ok@artecdesign.ee>
Cc: linux-mtd@lists.infradead.org
Subject: Re: 2.6.10, Intel chip, incorrect numparts detection
Date: Thu, 6 Jan 2005 10:00:22 -0800	[thread overview]
Message-ID: <9f920bdf0501061000699d8d77@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0501061248210.5515-100000@pcx>

On Thu, 6 Jan 2005 13:18:17 +0200 (EET), Olav Kongas <ok@artecdesign.ee> wrote:
> On 2.6.10, the detected hw partition number seems to be
> insane. All is ok on 2.6.9. I added few printk's to the
> cfi_intelext_partition_fixup() in 2.6.10 hoping that this
> will provide some more useful info (probably not).  Below I
> give the code fragment sprinkled with my printk's and both
> unsuccessful 2.6.10 and successful 2.6.9 boot dumps.

Olav,

What flash chip are you using, e.g. model, density, etc?
I see you're using a x16 buswidth, not a x32 pair.  That could be
related to the problem--e.g. one small piece of code not taking into
account the interleave--but I'm just making a wild stab in the dark,
which could be utterly wrong.  Latest MTD code works for me on L18,
32MiB (28F256L18), albeit on a 2.4 kernel (I have yet to try 2.6.10).

As you can tell, 2.6.9 uses a constant number for the partshift, which
was wrong.  On 8 and 16MiB L18, the partshift should be 20 (1MiB); on
32MiB L18, it should be 21, and it gets more complicated from there.
K3 and J3 don't have hardware partitions, so the partition fixup code
shouldn't be activated.

Later MTD code, including that in 2.6.10, actually looks at the CFI,
and in a rather nice manner (thanks Nicolas), but sounds like it has
some missing cases...

Also, on L18, numregions should be 2.  You're getting 1.

Are you, by chance, using W18?  I've never tested it there, and there
may be subtle CFI differences.

Dan

  reply	other threads:[~2005-01-06 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-06 11:18 2.6.10, Intel chip, incorrect numparts detection Olav Kongas
2005-01-06 18:00 ` Dan Post [this message]
2005-01-07  8:22   ` 2.6.10, Sharp chip, incorrect numparts (was: Intel chip) Olav Kongas
2005-01-26 11:34     ` Olav Kongas

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=9f920bdf0501061000699d8d77@mail.gmail.com \
    --to=postster@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ok@artecdesign.ee \
    /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