All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jupiter <jupiter.hce@gmail.com>
To: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Failed to create MTD partitions
Date: Fri, 28 May 2021 21:00:52 +1000	[thread overview]
Message-ID: <CAA=hcWQk84==-Y2yq44M-EL_jwqb2Yg2QKJXY9fNycDfLUGOgA@mail.gmail.com> (raw)

Hello,

I am using MTD in kernel 4.19, I was able to run kernel boot to create
MTD partitions when I used NAND Winbond W29N02GV:

[    7.961966] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
[    7.968545] nand: Winbond W29N02GV
[    7.972267] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz
e: 64
[    7.986814] Bad block table found at page 131008, version 0x01
[    7.994254] Bad block table found at page 130944, version 0x01
[    8.002152] 3 cmdlinepart partitions found on MTD device gpmi-nand
[    8.008479] Creating 3 MTD partitions on "gpmi-nand":
....................

Since we could not get Winbond W29N02GV supply anymore, we changed
Samsung NAND, Both are 3.3V 2Gib devices with the same memory
organization (2k pages +
64b OOB / 128k blocks) so these two parts should be equivalent in
terms of internal organization, but it failed to create MTD partitions
in kernel boot:

[    8.137591] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[    8.144246] nand: Samsung NAND 256MiB 3,3V 8-bit
[    8.148995] nand: 256 MiB, SLC, erase size: 128 KiB, page size:
2048, OOB size: 64
[    8.158330] gpmi-nand 1806000.gpmi-nand: Error setting BCH geometry : -22
[    8.166690] gpmi-nand: probe of 1806000.gpmi-nand failed with error -22

Since it is a new board, I suspect one of following problem might
cause that error:

- HW
- MTD does not support Samsung?
- Need kernel configure?

Appreciate your comments and advice.

Thank you very much.

- jupiter

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

             reply	other threads:[~2021-05-28 11:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 11:00 Jupiter [this message]
2021-05-29  0:08 ` Failed to create MTD partitions Jupiter
2021-05-31 22:48   ` JH

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='CAA=hcWQk84==-Y2yq44M-EL_jwqb2Yg2QKJXY9fNycDfLUGOgA@mail.gmail.com' \
    --to=jupiter.hce@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.