From 9d1960bad5c58c0f67137575fcba24a2b2e9b004 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Sat, 12 Jul 2014 14:26:48 -0500 Subject: [PATCH] Specify write-offset for bootloader msg in /misc HTC stores more than just a bootloader message in /misc. The bootloader message is offset to byte 0x800 (2048), verified by choosing "factory reset" from hboot, finding where "recovery --wipe_data" was written to /misc and then backing up 64bytes, in accordance with struct bootloader_message. Requires the following commits to recovery: Do not wipe block misc on bootloader msg update I2d2fbdf067282744864a19d404ca7dc12f688a98 Allow custom bootloader msg offset in block misc Id13a23dd41bb7d907b96d657b8e21eb839dfeaa9 Change-Id: I1b088f1819ae27cc48ec571047d0f851a68eb425 --- BoardConfig.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 266a4a7..3844123 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -69,3 +69,4 @@ TW_NO_SCREEN_BLANK := true TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness" TW_HTC_LED := true TW_NO_LEGACY_PROPS := true +BOARD_RECOVERY_BLDRMSG_OFFSET := 2048