From d9201048c487ff528cd1e73583d5105cfa651aab Mon Sep 17 00:00:00 2001 From: Conn O'Griofa Date: Tue, 25 Mar 2014 01:26:49 +0000 Subject: applypatch: add support for BML partitions This actually uses the EMMC partition access code. In order for this to work, the BML partition name is changed back to the block device name (e.g. "boot" -> "/dev/block/bml9"), and the BML_UNLOCK_ALL ioctl is called before writing. Change-Id: I012f1eca0b486b7465ca38b5db1f513ee8a246ea --- bmlutils/bmlutils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bmlutils/bmlutils.h') diff --git a/bmlutils/bmlutils.h b/bmlutils/bmlutils.h index e6ffeee57..1e85f0825 100644 --- a/bmlutils/bmlutils.h +++ b/bmlutils/bmlutils.h @@ -3,4 +3,14 @@ int format_rfs_device (const char *device, const char *path); +#define BML_UNLOCK_ALL 0x8A29 ///< unlock all partition RO -> RW + +#ifndef BOARD_BML_BOOT +#define BOARD_BML_BOOT "/dev/block/bml7" +#endif + +#ifndef BOARD_BML_RECOVERY +#define BOARD_BML_RECOVERY "/dev/block/bml8" +#endif + #endif // BMLUTILS_H_ -- cgit v1.2.3