OSDN Git Service

ext4_utils: add BoardConfig define to suppress EMMC-corrupting wipe command
authorDavid Ferguson <ferguson.david@gmail.com>
Fri, 8 Jun 2012 01:00:41 +0000 (21:00 -0400)
committerMichael Bestas <mikeioannina@gmail.com>
Sun, 1 Jan 2017 23:30:02 +0000 (01:30 +0200)
commitbc5a34e868f6d3fe04768b021d600996445d907d
tree28a25e5a037de03962ba8e0079bfb1012eaf25dc
parent9c339d72fd3cc86283e66deccf806d8585dceaf3
ext4_utils: add BoardConfig define to suppress EMMC-corrupting wipe command

If BOARD_SUPPRESS_EMMC_WIPE is true, the EMMC wipe command will not be
issued. This works around a bug in some firmware revisions of Samsung EMMC's
that permanently damages the device when the wipe command is issued.

For affected devices with kernel source, MMC_CAP_ERASE should be removed
from the kernel instead.

This is only part of the solution but it does handle the "flashing CM9
for the first time on an unsafe kernel" situation.

Change-Id: Ie4e31f9268a65218e5d344ae3068b021790fc33c
ext4_utils/Android.mk
ext4_utils/wipe.c