All of lore.kernel.org
 help / color / mirror / Atom feed
* mtd-utils: 'libmtd: error!: ECCGETLAYOUT ioctl request failed' seen after updating to mtd-utils 2.0.2
@ 2018-09-05  8:21 Chris Packham
  0 siblings, 0 replies; only message in thread
From: Chris Packham @ 2018-09-05  8:21 UTC (permalink / raw)
  To: linux-mtd

Hi,

We're running an embedded system with a 4.4 based kernel. As part of our 
startup we use mtdinfo to find out about the mtd devices on the device.

I recently updated our mtd-utils version to 2.0.2 and our mtdinfo usage 
started printing an error message.

   # mtdinfo /dev/mtd0
   libmtd: error!: ECCGETLAYOUT ioctl request failed
           error 95 (Operation not supported)
   libmtd: error!: ECCGETLAYOUT ioctl request failed
           error 95 (Operation not supported)
   mtd0
   Name:                           nvs
   Type:                           ram
   Eraseblock size:                4096 bytes, 4.0 KiB
   Amount of eraseblocks:          128 (524288 bytes, 512.0 KiB)
   Minimum input/output unit size: 1 byte
   Sub-page size:                  1 byte
   Character device major/minor:   90:0
   Bad blocks are allowed:         false
   Device is writable:             true

The error isn't too surprising since a plat-ram device isn't going to 
support ECC.

This error appears to have been introduced by commit a1035358 ("libmtd: 
Add support to access OOB available size"). Is there any way to avoid 
this for devices that we don't expect ECC on.

Thanks,
Chris


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-05  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05  8:21 mtd-utils: 'libmtd: error!: ECCGETLAYOUT ioctl request failed' seen after updating to mtd-utils 2.0.2 Chris Packham

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.