Block numbers of BEB

Ricard Wanderlof ricard.wanderlof at axis.com
Mon Oct 6 01:59:26 PDT 2014


On Mon, 6 Oct 2014, Woody Wu wrote:

> >The information is available to userspace though, so it's fairly easy
> >to 
> >hack together a userspace tool that gets the bad block information via 
> >ioctls.
> 
> Do you know in what kernel .c file that contain the information?  Is it 
> in mtd or ubi?

There is an ioctl called MEMGETBADBLOCK which returns information about 
the bad block status of a given (physical) flash block.

See include/uapi/mtd/mtd-api.h in the kernel for details.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list