Skip to content
Permalink
Browse files

Update old blade2, thinking common might be causing probs

  • Loading branch information
Dazzozo committed Feb 7, 2013
1 parent 1d729f4 commit 81440affaf92102f6b6921f0c66d0a7beb4193c1
Showing with 49 additions and 17 deletions.
  1. +2 −0 BoardConfig.mk
  2. +3 −5 blade2.mk
  3. +4 −8 cm.mk
  4. +3 −2 device.mk
  5. +21 −0 packages.mk
  6. BIN prebuilt/recovery_kernel
  7. +7 −0 ramdisk/init.blade2.rc
  8. +8 −0 recovery/recovery.rc
  9. +1 −2 system.prop
@@ -17,6 +17,7 @@
include device/zte/msm7x27-common/BoardConfigCommon.mk
include vendor/zte/blade2/BoardConfigVendor.mk

TARGET_PREBUILT_RECOVERY_KERNEL := device/zte/blade2/prebuilt/recovery_kernel
TARGET_RECOVERY_INITRC := device/zte/blade2/recovery/recovery.rc

# Kernel
@@ -42,6 +43,7 @@ WIFI_DRIVER_FW_PATH_STA := "/system/etc/fw_4330_b1_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/fw_4330b1.bin nvram_path=/system/etc/nv_4330b1.txt iface_name=wlan"
WIFI_DRIVER_MODULE_NAME := "dhd"
WIFI_BAND := 802_11_ABG
WIFI_DRIVER_LOADER_REUSE := true

# Bluetooth
BOARD_HAVE_BLUETOOTH_BCM := true
@@ -1,4 +1,5 @@
# Copyright (C) 2011 The Android Open Source Project
#
# Copyright (C) 2013 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.
@@ -21,10 +22,6 @@
# lines, full and toro, hence its name.
#

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_no_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)

# Inherit from blade2 device
$(call inherit-product, device/zte/blade2/device.mk)

@@ -34,3 +31,4 @@ PRODUCT_DEVICE := blade2
PRODUCT_BRAND := ZTE
PRODUCT_MANUFACTURER := ZTE
PRODUCT_MODEL := Crescent
PRODUCT_RELEASE_NAME := Crescent
12 cm.mk
@@ -1,6 +1,3 @@
# Inherit device configuration.
$(call inherit-product, device/zte/blade2/blade2.mk)

# Correct boot animation size for the screen.
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480
@@ -9,11 +6,10 @@ TARGET_SCREEN_WIDTH := 480
$(call inherit-product, vendor/cm/config/gsm.mk)
$(call inherit-product, vendor/cm/config/tiny.mk)

# Inherit device configuration.
$(call inherit-product, device/zte/blade2/blade2.mk)

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=blade2 BUILD_ID=JRO03C BUILD_FINGERPRINT=ZTE/N880E_JB/atlas40:4.1.1/JRO03C/eng.songsy.20120718.233441:eng/test-keys PRIVATE_BUILD_DESC="N880E_JB-eng 4.1.1 JRO03C eng.songsy.20120718.233441 test-keys" BUILD_NUMBER=eng.songsy.20120718.233441

# Set this variable here to overwrite the inherited value.
PRODUCT_NAME := cm_blade2
PRODUCT_DEVICE := blade2
PRODUCT_BRAND := ZTE
PRODUCT_MANUFACTURER := ZTE
PRODUCT_MODEL := Crescent
PRODUCT_RELEASE_NAME := Crescent
@@ -1,5 +1,5 @@
#
# Copyright (C) 2011 The Android Open-Source Project
# Copyright (C) 2013 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.
@@ -14,8 +14,9 @@
# limitations under the License.
#

include device/zte/msm7x27-common/common.mk
$(call inherit-product, device/zte/msm7x27-common/common.mk)
$(call inherit-product, vendor/zte/blade2/blade2-vendor.mk)
$(call inherit-product-if-exists, device/zte/blade2/packages.mk)

# Baseband versions for device variations
ifdef P736E
@@ -0,0 +1,21 @@
#
# Copyright (C) 2013 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.
#

PRODUCT_PACKAGES += \
Chronus \
CMUpdater \
Email \
LockClock
Binary file not shown.
@@ -10,6 +10,13 @@ on early-init

on boot

# Setup boostpulse
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
chmod 0666 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
chmod 0666 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse

# cpufreq configurations
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 500000
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
@@ -1,6 +1,10 @@
on early-init
start ueventd

# Setup android gadget
write /sys/module/g_android/parameters/serial_number CM10.1-Crescent
write /sys/module/g_android/parameters/product_id 0x1351

on init
export PATH /sbin
export ANDROID_ROOT /system
@@ -25,6 +29,10 @@ on init
mount /dev/block/vold/179:1 /sdcard/ vfat
symlink /sdcard /mnt/sdcard

# ADB sideload permissions
chown root shell /tmp
chmod 0775 /tmp

on boot
ifup lo
hostname localhost
@@ -26,10 +26,9 @@ ro.vold.umsdirtyratio=20

# Dalvik VM
dalvik.vm.dexopt-data-only=1
dalvik.vm.dexopt-flags=v=a,o=v,m=y,u=y
dalvik.vm.execution-mode=int:jit
dalvik.vm.verify_bytecode=false
dalvik.vm.checkjni=0
ro.kernel.android.checkjni=0

# zRam
ro.zram.default=0

0 comments on commit 81440af

Please sign in to comment.
You can’t perform that action at this time.