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)
committerSteve Kondik <steve@cyngn.com>
Thu, 25 Aug 2016 00:31:56 +0000 (17:31 -0700)
commit49fab420846ffce21dd92da72fe09cb71b6ce10a
treee440032da02ed60d8b052d1cb35a59993f58a81b
parentee3f77d72a0abfc6cef05b3153210af507f4fa27
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