Skip to content

Commit

Permalink
hercules: use GB kernel for recovery to avoid eMMC corruption bug
Browse files Browse the repository at this point in the history
  * Added GB kernel for recovery: 2.6.35.11-T989UVKID-CL594724
  * Removed extraneous kernel copies from device.mk
  * Removed comically large recovery font that crept in from Note
  * Set BOARD_SUPPRESS_EMMC_WIPE to avoid issuing the dangerous
    wipe command in the first place.

Since the act of testing this may brick your device, I HAVE NOT
TESTED THIS! Without this patch though, the bad ICS leak kernel
is used and it is sure to brick phones.

Change-Id: I01113db11a6d31b671f1558b779702d92aea365c
  • Loading branch information
dferg committed Jun 10, 2012
1 parent 04d95a5 commit 9af4a3b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
15 changes: 10 additions & 5 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ TARGET_BOOTLOADER_BOARD_NAME := hercules
TARGET_OTA_ASSERT_DEVICE := SGH-T989,hercules

# Kernel
TARGET_PREBUILT_KERNEL := device/samsung/hercules/prebuilt/kernel
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom usb_id_pin_rework=true
BOARD_KERNEL_BASE := 0x40400000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_FORCE_RAMDISK_ADDRESS := 0x41800000
# - Needs GB kernel for recovery since ICS kernels cause eMMC corruption
TARGET_PREBUILT_KERNEL := device/samsung/hercules/prebuilt/kernel
TARGET_PREBUILT_RECOVERY_KERNEL := device/samsung/hercules/prebuilt/recovery_kernel
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom usb_id_pin_rework=true
BOARD_KERNEL_BASE := 0x40400000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_FORCE_RAMDISK_ADDRESS := 0x41800000

# cat /proc/emmc
#dev: size erasesize name
Expand All @@ -64,6 +66,9 @@ BOARD_USES_MMCUTILS := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_HAS_NO_SELECT_BUTTON := true

# Suppress the WIPE command since it can brick our EMMC
BOARD_SUPPRESS_EMMC_WIPE := true

# MTP
BOARD_MTP_DEVICE := "/dev/mtp_usb"

Expand Down
8 changes: 0 additions & 8 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,7 @@ DEVICE_PACKAGE_OVERLAYS += device/samsung/hercules/overlay
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi

# Kernel and modules
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/hercules/prebuilt/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
device/samsung/hercules/modules/ansi_cprng.ko:system/lib/modules/ansi_cprng.ko \
device/samsung/hercules/modules/cls_flow.ko:system/lib/modules/cls_flow.ko \
device/samsung/hercules/modules/dal_remotetest.ko:system/lib/modules/dal_remotetest.ko \
Expand Down
Binary file added prebuilt/recovery_kernel
Binary file not shown.

0 comments on commit 9af4a3b

Please sign in to comment.