Skip to content
Commit d09807ad authored by Dario Binacchi's avatar Dario Binacchi
Browse files

cmd: mtd: check if a block has to be skipped or erased

As reported by patch [1], the `mtd erase' command should not erase bad
blocks.
To force bad block erasing you have to use the `mtd erase.dontskipbad'
command.

This patch tries to fix the same issue without modifying code taken
from the linux kernel, in order to make further upgrades easier.

[1] https://lore.kernel.org/all/20221006031501.110290-2-mikhail.kshevetskiy@iopsys.eu/


Suggested-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: default avatarMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: default avatarMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Tested-by: default avatarMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
parent c21b0ca5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment