All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: David Schaefer <david.tillmann.schaefer@gmail.com>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: linux-mtd@lists.infradead.org, Miquel Raynal <miquel.raynal@bootlin.com>
Subject: Re: WD MyCloud Ex, Armada-370, pxa3xx-nand, marvell-nfc
Date: Mon, 14 Dec 2020 15:58:49 +0100	[thread overview]
Message-ID: <CAK+FTGjg1sMtE0Vk=mztO6_HP0VJ=mYy1b0nAEXDw6Dtx6AtUw@mail.gmail.com> (raw)
In-Reply-To: <CAFLxGvyNtHOQZ1OnSsh=Md9Lx7e8j307uRCNvS_qvNp6FW1_pg@mail.gmail.com>

Hi Richard,

Am Mo., 14. Dez. 2020 um 14:36 Uhr schrieb Richard Weinberger
<richard.weinberger@gmail.com>:
>
> David,
>
> On Mon, Dec 14, 2020 at 9:08 AM David Schaefer
> <david.tillmann.schaefer@gmail.com> wrote:
> >
> > Hi,
> >
> > I am trying to upgrade to a more recent kernel. I face the issue that
> > I am missing the /dev/mtdblock1-6 devices. I have tracked down that
> > issue shows up the first time with 4.16.1 and does not exist with
> > 4.15.18.
> >
> > Also I have this initalization during 4.15.18:
> >
> > > f10d0000.nand: This platform can't do DMA on this device
> > > nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
> > > nand: Hynix H27U2G8F2CTR-BC
> > > nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
> > > pxa3xx-nand f10d0000.nand: ECC strength 16, ECC step size 2048
> > > Bad block table found at page 131008, version 0x01
> > > Bad block table found at page 130944, version 0x01
> > > nand_read_bbt: bad block at 0x00000e7c0000
> > > 7 ofpart partitions found on MTD device pxa3xx_nand-0
> > > Creating 7 MTD partitions on "pxa3xpxa3xx-nand x_nand-0":
> > > 0x000000000000-0x000000500000 : "u-Boot"
> > > 0x000000500000-0x000000a00000 : "uImage"
> > > 0x000000a00000-0x000000f00000 : "ramdisk"
> > > 0x000000f00000-0x00000d800000 : "image.cfs"
> > > 0x00000dd00000-0x00000ec00000 : "rescue firmware"
> > > 0x00000ec00000-0x000010000000 : "config"
> > > 0x00000d800000-0x00000dd00000 : "reserve"
> >
> > and this with 4.16.1:
> >
> > > nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
> > > nand: Hynix H27U2G8F2CTR-BC
> > > nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
> > > marvell-nfc f10d0000.nand: Timeout on CMDD (NDSR: 0x00000080)
> > > marvell-nfc f10d0000.nand: Timeout on CMDD (NDSR: 0x00000280)
> > > Bad block table not found for chip 0
> > > Bad block table not found for chip 0
> > > Scanning device for bad blocks
> > > Bad eraseblock 1854 at 0x00000e7c0000
> >
> > I have tried 4.19.161 and 5.4.83 as well but my /dev/mtdblock1-6
> > devices keep being missing.
> >
> > What do I have to do to turn them back on? Do I have to modify my dts
> > file for the new driver marvell_nand?
> > https://fox-exe.ru/WDMyCloud/WDMyCloud-Mirror/Developing/kernel-4.15.0-rc6/armada-370-wdmc-mirror-gen1.dts
>
> Enabling CONFIG_MTD_NAND_MARVELL should give you the new marvell driver.
> IIRC no changes to the dts are needed. Though, there have been some
> fixes such as:
> f6997bec6af4 ("mtd: rawnand: marvell: fix the chip-select DT parsing logic")
>
> Do you see this failure with both the old and the new marvell drivers?
>
> Maybe Miquel has an idea too.

I have checked the kernel configuration. For 4.15.18 I have these settings:
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_PXA3xx=y

and for 4.16.1

CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_MARVELL=y

I actually copied the working configuration from 4.15.18 to 4.16.1,
did make oldconfig, and compiled it the same way as 4.15.18. Like I
said above, 4.15 works, 4.16 does not.
I hope this answers your question whether I see the issue with the new
and the old marvell drivers because I am not 100% sure what you refer
to here (I guess you mean PXA3XX vs NAND).

Kind regards
David

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

  reply	other threads:[~2020-12-14 15:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14  8:03 WD MyCloud Ex, Armada-370, pxa3xx-nand, marvell-nfc David Schaefer
2020-12-14 13:36 ` Richard Weinberger
2020-12-14 14:58   ` David Schaefer [this message]
2020-12-14 15:20     ` Richard Weinberger
2020-12-14 17:16       ` David Schaefer
2020-12-14 21:24         ` Richard Weinberger
2020-12-14 23:03           ` Miquel Raynal
2020-12-15 10:14             ` David Schaefer
2020-12-15 15:50         ` David Schaefer
2020-12-15 15:56           ` Miquel Raynal
2020-12-15 16:34             ` David Schaefer
2020-12-15 16:46               ` Miquel Raynal
2020-12-15 21:20                 ` David Schaefer
2020-12-15 22:04                   ` David Schaefer
2020-12-16  7:51                     ` Miquel Raynal
2020-12-17 20:15                       ` David Schaefer

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='CAK+FTGjg1sMtE0Vk=mztO6_HP0VJ=mYy1b0nAEXDw6Dtx6AtUw@mail.gmail.com' \
    --to=david.tillmann.schaefer@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard.weinberger@gmail.com \
    /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.