Pass -EUCLEN to userspace?

Sascha Hauer s.hauer at pengutronix.de
Wed Apr 20 06:25:16 PDT 2016


Hi All,

I am currently working on a program similar to ubihealthd, just for raw
mtd pages, not UBI. Basically I want to find out in userspace if my Nand needs
scrubbing. Is it possible somehow to get this information in userspace?

So far I can count the number of bitflips corrected using the
ECCGETSTATS ioctl. Also I can read the bitflip_threshold from
/sys/class/mtdx/bitflip_threshold. The problem is now that I can only
read full pages, but the bitflip threshold is per ecc_step_size. Simply
dividing by the number of ecc_steps is not accurate. Any way to solve
this?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-mtd mailing list