Block numbers of BEB

Woody Wu narkewoody at gmail.com
Mon Oct 6 04:25:55 PDT 2014



On October 6, 2014 3:59:26 PM GMT+07:00, Ricard Wanderlof <ricard.wanderlof at axis.com> wrote:
>
>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.

Great! Thanks.

>/Ricard

-- 
sent from mobile



More information about the linux-mtd mailing list