[Miscellaneous Android Development] R1kki:
[MENTION=4479868]desalesouche[/MENTION]

hey

u ask me about init.d script for frequense setting

thanks to bursoft (baidu ROM)

#!/system/bin/sh
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
#122880 245760 368640 480000 544000 600000 768000 806400 1024000 1200000 1401600 1516800 1612800 1708800 1804800
#echo 368640 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1401600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
#SavagedZen lulzactive lazy intellidemand lagfree conservative ondemandX ondemand userspace powersave Lionheart smartassV2 performance
echo ondemandX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

#cat /sys/block/mmcblk0/queue/scheduler
#noop deadline cfq [sio] vr
echo deadline > /sys/block/mmcblk0/queue/scheduler

and i find original thread, if u can help to u :)

http://rootzwiki.com/topic/23903-how-to-compile-twrp-from-source/

originad site TWRP

http://teamw.in/project/twrp2

and instruction from 4pda

http://4pda.ru/forum/index.php?s=&showtopic=419183&view=findpost&p=20515259

some config to compile TWRP (ik, 100% work for 2.4.0.0)

BroadConfig.mk

#
# Copyright © 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

TARGET_OTA_ASSERT_DEVICE := hwu8860,u8860,hwc8860,c8860

# Platform
TARGET_BOOTLOADER_BOARD_NAME := u8860
TARGET_BOARD_PLATFORM := msm7x27a
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true

# Architecture
TARGER_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_CPU := cortex-a8
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_CORTEX_CACHE_LINE_32 := true

# Partitions
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 545259520
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1447034880
BOARD_BOOTIMAGE_PARTITION_SIZE := 7864320
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760
BOARD_FLASH_BLOCK_SIZE := 4096
TARGET_USERIMAGES_USE_EXT4 := true

BOARD_CACHE_DEVICE := /dev/block/mmcblk0p6
BOARD_CACHE_FILESYSTEM := ext4
BOARD_CACHE_FILESYSTEM_OPTIONS := rw
BOARD_SYSTEM_DEVICE := /dev/block/mmcblk0p12
BOARD_SYSTEM_FILESYSTEM := ext4
BOARD_SYSTEM_FILESYSTEM_OPTIONS := rw
BOARD_DATA_DEVICE := /dev/block/mmcblk0p13
BOARD_DATA_FILESYSTEM := ext4
BOARD_DATA_FILESYSTEM_OPTIONS := rw

# Kernel
BOARD_KERNEL_CMDLINE := console=ttyDCC0 androidboot.hardware=huawei
BOARD_KERNEL_BASE := 0x00200000
BOARD_KERNEL_PAGESIZE := 4096
TARGET_PREBUILT_KERNEL := device/huawei/u8860/kernel

# USB Mounting
BOARD_UMS_LUNFILE := "/sys/class/android_usb/android0/f_mass_storage/lun%d/file"

# Recovery
BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_PREBUILT_RECOVERY_KERNEL := device/huawei/u8860/kernel
TARGET_RECOVERY_INITRC := device/huawei/u8860/init.rc
TARGET_RECOVERY_FSTAB := device/huawei/u8860/recovery.fstab
BOARD_RECOVERY_RMT_STORAGE := true
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_USES_MMCUTILS := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
DEVICE_RESOLUTION := 480x854
TW_FLASH_FROM_STORAGE := true
TW_NO_REBOOT_BOOTLOADER:= true
BOARD_HAS_NO_REAL_SDCARD:= true
TW_DEFAULT_EXTERNAL_STORAGE := true
TW_INTERNAL_STORAGE_PATH := "/sdcard"
TW_INTERNAL_STORAGE_MOUNT_POINT := "sdcard"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/class/android_usb/android0/f_mass_storage/lun%d/file
BOARD_USE_CUSTOM_RECOVERY_FONT:= \"roboto_10x18.h\"
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_BRIGHTNESS_PATH := /sys/devices/platform/msm_fb.589824/leds/lcd-backlight/brightness
TW_MAX_BRIGHTNESS := 255

cm.mk

# Inherit CM common GSM stuff.
$(call inherit-product, vendor/cm/config/gsm.mk)

# Inherit CM common Phone stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)

# Inherit device configuration.
$(call inherit-product, device/huawei/u8860/device_u8860.mk)

# Device identifier.
PRODUCT_DEVICE := u8860
PRODUCT_NAME := cm_u8860
PRODUCT_BRAND := huawei
PRODUCT_MODEL := Honor
PRODUCT_MANUFACTURER := huawei