linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: <Tudor.Ambarus@microchip.com>
To: <sr@denx.de>, <linux-mtd@lists.infradead.org>,
	<miquel.raynal@bootlin.com>
Subject: Re: MT25Q Advanced Sector Protection support
Date: Thu, 15 Apr 2021 09:40:05 +0000	[thread overview]
Message-ID: <72427f10-4a3a-a0a4-f429-6638f9d428d0@microchip.com> (raw)
In-Reply-To: <f59dc821-22fe-27cf-b93d-147709d64983@denx.de>

On 4/15/21 12:20 PM, Stefan Roese wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hi,

Hi,

> 
> I'm right now working on a board equipped with an MT25QU128ABA1ESE.
> And after doing some intensive QSPI NOR tests, one sector (at 0x40000)
> seems to be permanently locked. The normal unlocking does not seem to
> help:
> 
> # flash_eraseall -u /dev/mtd0

have you tried to unlock it before erasing? You can use flash_unlock.

> flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please
> use it
> Erasing 64 Kibyte @ 40000 -- 22 % complete libmtd: error!: MEMERASE64
> ioctl failed for eraseblock 4 (mtd0)
>         error 5 (Input/output error)
> flash_erase: error!: /dev/mtd0: MTD Erase failure
>              error 5 (Input/output error)
> Erasing 64 Kibyte @ 110000 -- 100 % complete
> 
> My best guess right now is that somehow the nonvolatile locking via the
> advanced sector protection is active and locking this sector.
> 
> Does anyone have some ideas on how to continue here? Is there some

If it's indeed about the individual block protection, you'll have to
read the register that describes which registers are locked.

> ongoing work to support the Micron advanced sector protection in Linux?

I'm adding support for individual block protection on sst26 flashes,
which should be similar.

Cheers,
ta

> Or did I miss something trivial perhaps?
> 
> Thanks,
> Stefan

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

  reply	other threads:[~2021-04-15  9:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15  9:20 MT25Q Advanced Sector Protection support Stefan Roese
2021-04-15  9:40 ` Tudor.Ambarus [this message]
2021-04-15  9:44   ` Stefan Roese
2021-04-15 10:05     ` Tudor.Ambarus

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=72427f10-4a3a-a0a4-f429-6638f9d428d0@microchip.com \
    --to=tudor.ambarus@microchip.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=sr@denx.de \
    /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;
as well as URLs for NNTP newsgroup(s).