Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimal device tree for compiling TWRP for Oukitel K10 Signed-off-by: chankruze <chankruze@gmail.com>
- Loading branch information
0 parents
commit 607ef2f
Showing
9 changed files
with
216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifneq ($(filter k10,$(TARGET_DEVICE)),) | ||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/omni_k10.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Device path | ||
LOCAL_PATH := device/oukitel/k10 | ||
|
||
# Architecture | ||
TARGET_ARCH := arm64 | ||
TARGET_ARCH_VARIANT := armv8-a | ||
TARGET_CPU_ABI := arm64-v8a | ||
TARGET_CPU_ABI2 := | ||
TARGET_CPU_VARIANT := cortex-a53 | ||
|
||
TARGET_2ND_ARCH := arm | ||
TARGET_2ND_ARCH_VARIANT := armv7-a-neon | ||
TARGET_2ND_CPU_ABI := armeabi-v7a | ||
TARGET_2ND_CPU_ABI2 := armeabi | ||
TARGET_2ND_CPU_VARIANT := cortex-a53 | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := mt6763 | ||
|
||
# Bootloader | ||
TARGET_NO_BOOTLOADER := true | ||
|
||
# Kernel | ||
BOARD_KERNEL_BASE := 0x40078000 | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_KERNEL_CMDLINE := bootopt=64S3,32N2,64N2 androidboot.selinux=permissive | ||
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/kernel | ||
BOARD_MKBOOTIMG_ARGS := --base 0x40078000 --ramdisk_offset 0x14f88000 --second_offset 0x00f00000 --tags_offset 0x13f88000 | ||
|
||
# system.prop | ||
TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop | ||
|
||
#Partitions | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4378853376 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 3221225472 | ||
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
BOARD_CACHEIMAGE_PARTITION_SIZE := 452984832 | ||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
BOARD_FLASH_BLOCK_SIZE := 1024 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
|
||
# Recovery | ||
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888" | ||
This comment has been minimized.
Sorry, something went wrong.
chankruze
Author
Member
|
||
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery.fstab | ||
BOARD_HAS_NO_SELECT_BUTTON := true | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
|
||
# Workaround for error copying vendor files to recovery ramdisk | ||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
TARGET_COPY_OUT_VENDOR := vendor | ||
|
||
# TWRP | ||
BOARD_SUPPRESS_SECURE_ERASE := true | ||
BOARD_USE_FRAMEBUFFER_ALPHA_CHANNEL := true | ||
DEVICE_RESOLUTION := 1080x2160 | ||
DEVICE_SCREEN_WIDTH := 1080 | ||
DEVICE_SCREEN_HEIGHT := 2160 | ||
RECOVERY_SDCARD_ON_DATA := true | ||
RECOVERY_GRAPHICS_USE_LINELENGTH := true | ||
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file | ||
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\" | ||
TARGET_DISABLE_TRIPLE_BUFFERING := false | ||
TW_THEME := portrait_hdpi | ||
TW_MAX_BRIGHTNESS := 255 | ||
TW_CUSTOM_CPU_TEMP_PATH := /sys/devices/virtual/thermal/thermal_zone1/temp | ||
TW_INCLUDE_CRYPTO := true | ||
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness | ||
TW_MAX_BRIGHTNESS := 255 | ||
TW_NO_USB_STORAGE := false | ||
TW_INTERNAL_STORAGE_PATH := "/data/media" | ||
TW_INTERNAL_STORAGE_MOUNT_POINT := "data" | ||
TW_EXTERNAL_STORAGE_PATH := "/external_sd" | ||
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd" | ||
TW_DEFAULT_EXTERNAL_STORAGE := true | ||
TW_INCLUDE_CRYPTO := true | ||
TW_CRYPTO_FS_TYPE := "ext4" | ||
TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/bootdevice/by-name/userdata" | ||
TW_CRYPTO_MNT_POINT := "/data" | ||
TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered" | ||
TW_USE_TOOLBOX := true | ||
TW_EXTRA_LANGUAGES := true | ||
TW_DEFAULT_LANGUAGE := en | ||
TW_NO_SCREEN_BLANK := true | ||
TW_NO_BATT_PERCENT := false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Release name | ||
PRODUCT_RELEASE_NAME := k10 | ||
|
||
# Inherit from those products. Most specific first. | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) | ||
|
||
# Inherit from our custom product configuration | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
|
||
# Device identifier. This must come after all inclusions | ||
PRODUCT_BRAND := OUKITEL | ||
PRODUCT_DEVICE := k10 | ||
PRODUCT_MANUFACTURER := OUKITEL | ||
PRODUCT_MODEL := k10 | ||
PRODUCT_NAME := omni_k10 | ||
|
||
# enable stock zip packages flash | ||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ | ||
ro.secure=1 \ | ||
ro.adb.secure=0 \ | ||
ro.allow.mock.location=0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/boot_para emmc /dev/block/platform/bootdevice/by-name/boot_para | ||
/recovery emmc /dev/block/platform/bootdevice/by-name/recovery flags=display="Recovery";backup=1 | ||
/para emmc /dev/block/platform/bootdevice/by-name/para flags=display="Parametr";backup=1 | ||
/expdb emmc /dev/block/platform/bootdevice/by-name/expdb | ||
/frp emmc /dev/block/platform/bootdevice/by-name/frp flags=display="Frp";backup=1 | ||
/nvcfg ext4 /dev/block/platform/bootdevice/by-name/nvcfg flags=display="Nvcfg";backup=1 | ||
/nvdata ext4 /dev/block/platform/bootdevice/by-name/nvdata flags=display="Nvdata";backup=1 | ||
/metadata emmc /dev/block/platform/bootdevice/by-name/metadata | ||
/protect_f ext4 /dev/block/platform/bootdevice/by-name/protect1 flags=display="Protect";backup=1 | ||
/protect_s ext4 /dev/block/platform/bootdevice/by-name/protect2 flags=subpartitionof=/protect_f;backup=1 | ||
/seccfg emmc /dev/block/platform/bootdevice/by-name/nvcfg | ||
/spmfw emmc /dev/block/platform/bootdevice/by-name/spmfw flags=display="Spm";backup=1 | ||
/sspm_1 emmc /dev/block/platform/bootdevice/by-name/sspm_1 flags=backup=1;subpartitionof=/spmfw | ||
/sspm_2 emmc /dev/block/platform/bootdevice/by-name/sspm_2 flags=backup=1;subpartitionof=/spmfw | ||
/sec1 emmc /dev/block/platform/bootdevice/by-name/sec1 | ||
/proinfo emmc /dev/block/platform/bootdevice/by-name/proinfo flags=display="Proinfo";backup=1 | ||
/md1img emmc /dev/block/platform/bootdevice/by-name/md1img flags=display="Modem";backup=1 | ||
/md1dsp emmc /dev/block/platform/bootdevice/by-name/md1dsp flags=backup=1;subpartitionof=/md1img | ||
/nvram emmc /dev/block/platform/bootdevice/by-name/nvram flags=display="Nvram";backup=1;flashimg=1 | ||
/lk emmc /dev/block/platform/bootdevice/by-name/lk flags=display="Uboot";backup=1;flashimg=1 | ||
/lk2 emmc /dev/block/platform/bootdevice/by-name/lk2 flags=backup=1;subpartitionof=/lk | ||
/boot emmc /dev/block/platform/bootdevice/by-name/boot flags=display="Boot";backup=1 | ||
/logo emmc /dev/block/platform/bootdevice/by-name/logo flags=display="Logo";backup=1;flashimg=1 | ||
/tee1 emmc /dev/block/platform/bootdevice/by-name/tee1 flags=display="Tee";backup=1;flashimg=1 | ||
/tee2 emmc /dev/block/platform/bootdevice/by-name/tee2 flags=backup=1;subpartitionof=/tee1 | ||
/system ext4 /dev/block/platform/bootdevice/by-name/system | ||
/system_image emmc /dev/block/platform/bootdevice/by-name/system | ||
/cache ext4 /dev/block/platform/bootdevice/by-name/cache | ||
/data ext4 /dev/block/platform/bootdevice/by-name/userdata flags=encryptable=/dev/block/platform/bootdevice/by-name/metadata | ||
/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="External SDcard";storage;wipeingui;removable;backup=0 | ||
/usbotg auto /dev/block/sda1 /dev/block/sda flags=display="Usb-Otg";storage;removable;backup=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
on init | ||
mkdir /config | ||
mount configfs none /config | ||
mkdir /config/usb_gadget/g1 0770 shell shell | ||
write /config/usb_gadget/g1/idVendor 0x18d1 | ||
write /config/usb_gadget/g1/idProduct 0xd001 | ||
mkdir /config/usb_gadget/g1/strings/0x409 0770 | ||
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno} | ||
write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer} | ||
write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model} | ||
mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell | ||
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell | ||
mkdir /config/usb_gadget/g1/functions/ffs.adb | ||
|
||
on property:ro.debuggable=0 | ||
# distinguish USB shoulde connect or not, i.e. CDP vs SDP | ||
write /sys/class/udc/musb-hdrc/device/cmode 2 | ||
# set charging free due to it wait for USB activation | ||
start adbd | ||
|
||
on property:sys.usb.ffs.ready=1 | ||
write /config/usb_gadget/g1/UDC "none" | ||
rm /config/usb_gadget/g1/configs/b.1/f1 | ||
rm /config/usb_gadget/g1/configs/b.1/f2 | ||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb" | ||
write /config/usb_gadget/g1/idVendor 0x18d1 | ||
write /config/usb_gadget/g1/idProduct 0xd001 | ||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1 | ||
write /config/usb_gadget/g1/UDC "musb-hdrc" | ||
|
||
on property:ro.mtk_emmc_support=1 | ||
# Support A/B feature for emmc boot region | ||
symlink /dev/block/mmcblk0boot0 /dev/block/platform/bootdevice/by-name/preloader_a | ||
symlink /dev/block/mmcblk0boot1 /dev/block/platform/bootdevice/by-name/preloader_b | ||
|
||
on property:ro.mtk_ufs_booting=1 | ||
# Support A/B feature for ufs boot region | ||
symlink /dev/block/sda /dev/block/platform/bootdevice/by-name/preloader_a | ||
symlink /dev/block/sdb /dev/block/platform/bootdevice/by-name/preloader_b | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ro.product.brand=OUKITEL | ||
ro.product.name=K10 | ||
ro.product.device=K10 | ||
ro.build.product=K10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright 2015 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. | ||
# | ||
|
||
# This file is executed by build/envsetup.sh, and can use anything | ||
# defined in envsetup.sh. | ||
# | ||
# In particular, you can add lunch options with the add_lunch_combo | ||
# function: add_lunch_combo generic-eng | ||
|
||
for var in eng user userdebug; do | ||
add_lunch_combo omni_k10-$var | ||
done |
I need a device owner to check for this information. Reach me if you have the device and willing to help this to be official.