-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made with SebaUbuntu's TWRP device tree generator Arch: arm Manufacturer: mobvoi Model: TicWatch Pro 3 Script version: 1.3.1 Signed-off-by: Sebastiano Barezzi <[email protected]>
- Loading branch information
0 parents
commit 6872c64
Showing
11 changed files
with
405 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,23 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE), rover) | ||
include $(call all-subdir-makefiles,$(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,20 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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_MAKEFILES := \ | ||
$(LOCAL_DIR)/omni_rover.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,77 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
DEVICE_PATH := device/mobvoi/rover | ||
|
||
# For building with minimal manifest | ||
ALLOW_MISSING_DEPENDENCIES := true | ||
|
||
# Architecture | ||
TARGET_ARCH := arm | ||
TARGET_ARCH_VARIANT := armv7-a-neon | ||
TARGET_CPU_ABI := armeabi-v7a | ||
TARGET_CPU_ABI2 := armeabi | ||
TARGET_CPU_VARIANT := generic | ||
|
||
# Assert | ||
TARGET_OTA_ASSERT_DEVICE := rover | ||
|
||
# File systems | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
#BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 # This is the maximum known partition size, but it can be higher, so we just omit it | ||
BOARD_SYSTEMIMAGE_PARTITION_TYPE := ext4 | ||
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
TARGET_COPY_OUT_VENDOR := vendor | ||
|
||
# Kernel | ||
BOARD_KERNEL_CMDLINE := console=null androidboot.console=null androidboot.hardware=rover user_debug=30 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlycon=msm_hsl_uart,0x78B0000 vmalloc=300M firmware_class.path=/vendor/firmware_mnt/image androidboot.usbconfigfs=true loop.max_part=7 buildvariant=user | ||
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/zImage-dtb | ||
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilt/dtbo.img | ||
BOARD_INCLUDE_RECOVERY_DTBO := true | ||
BOARD_BOOTIMG_HEADER_VERSION := 1 | ||
BOARD_KERNEL_BASE := 0x80000000 | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_RAMDISK_OFFSET := 0x01000000 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x00000100 | ||
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) | ||
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) | ||
BOARD_KERNEL_IMAGE_NAME := zImage-dtb | ||
TARGET_KERNEL_ARCH := arm | ||
TARGET_KERNEL_HEADER_ARCH := arm | ||
TARGET_KERNEL_SOURCE := kernel/mobvoi/rover | ||
TARGET_KERNEL_CONFIG := rover_defconfig | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := msm8937 | ||
|
||
# Hack: prevent anti rollback | ||
PLATFORM_SECURITY_PATCH := 2099-12-31 | ||
VENDOR_SECURITY_PATCH := 2099-12-31 | ||
PLATFORM_VERSION := 16.1.0 | ||
|
||
# TWRP Configuration | ||
TW_THEME := portrait_hdpi | ||
TW_EXTRA_LANGUAGES := true | ||
TW_SCREEN_BLANK_ON_BOOT := true | ||
TW_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_USE_TOOLBOX := true |
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,20 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
LOCAL_PATH := device/mobvoi/rover | ||
|
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,37 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
# Inherit from those products. Most specific first. | ||
$(call inherit-product-if-exists, $(SRC_TARGET_DIR)/product/embedded.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) | ||
|
||
# Inherit from rover device | ||
$(call inherit-product, device/mobvoi/rover/device.mk) | ||
|
||
# Inherit some common Omni stuff. | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
$(call inherit-product, vendor/omni/config/gsm.mk) | ||
|
||
# Device identifier. This must come after all inclusions | ||
PRODUCT_DEVICE := rover | ||
PRODUCT_NAME := omni_rover | ||
PRODUCT_BRAND := Mobvoi | ||
PRODUCT_MODEL := TicWatch Pro 3 | ||
PRODUCT_MANUFACTURER := mobvoi | ||
PRODUCT_RELEASE_NAME := Mobvoi TicWatch Pro 3 |
Binary file not shown.
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,11 @@ | ||
# mount point fstype device flags | ||
/system ext4 /dev/block/bootdevice/by-name/system flags=display="System";backup=1; | ||
/system_image emmc /dev/block/bootdevice/by-name/system flags=display="System image";backup=1;flashimg=1; | ||
/cache ext4 /dev/block/bootdevice/by-name/cache flags=display="Cache"; | ||
/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=display="Vendor";backup=1; | ||
/vendor_image emmc /dev/block/bootdevice/by-name/vendor flags=display="Vendor image";backup=1;flashimg=1; | ||
/data f2fs /dev/block/bootdevice/by-name/userdata flags=display="Data"; | ||
/sdcard1 vfat /dev/block/mmcblk1p1 flags=display="Sdcard1"; | ||
/boot emmc /dev/block/bootdevice/by-name/boot flags=display="Boot";backup=1;flashimg=1; | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=display="Recovery";backup=1;flashimg=1; | ||
/misc emmc /dev/block/bootdevice/by-name/misc flags=display="Misc";backup=1;flashimg=1; |
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,60 @@ | ||
# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# * Neither the name of The Linux Foundation nor | ||
# the names of its contributors may be used to endorse or promote | ||
# products derived from this software without specific prior written | ||
# permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
|
||
on init | ||
write /sys/class/backlight/panel0-backlight/brightness 200 | ||
|
||
mkdir /config | ||
mount configfs none /config | ||
mkdir /config/usb_gadget/g1 0770 shell shell | ||
write /config/usb_gadget/g1/bcdUSB 0x0200 | ||
write /config/usb_gadget/g1/idVendor 0x18d1 | ||
write /config/usb_gadget/g1/idProduct 0xd001 | ||
mkdir /config/usb_gadget/g1/strings/0x409 0770 shell shell | ||
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/functions/ffs.adb | ||
write /config/usb_gadget/g1/os_desc/use 1 | ||
write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1 | ||
write /config/usb_gadget/g1/os_desc/qw_sign "MSFT100" | ||
setprop sys.usb.configfs 1 | ||
|
||
on property:ro.boot.usbcontroller=* | ||
setprop sys.usb.controller ${ro.boot.usbcontroller} | ||
|
||
on property:sys.usb.ffs.ready=1 | ||
mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell | ||
symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1 | ||
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell | ||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb" | ||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1 | ||
write /config/usb_gadget/g1/UDC ${sys.usb.controller} | ||
|
||
on fs | ||
wait /dev/block/platform/soc/${ro.boot.bootdevice} | ||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice |
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,137 @@ | ||
subsystem adf | ||
devname uevent_devname | ||
|
||
subsystem graphics | ||
devname uevent_devpath | ||
dirname /dev/graphics | ||
|
||
subsystem drm | ||
devname uevent_devpath | ||
dirname /dev/dri | ||
|
||
subsystem oncrpc | ||
devname uevent_devpath | ||
dirname /dev/oncrpc | ||
|
||
subsystem adsp | ||
devname uevent_devpath | ||
dirname /dev/adsp | ||
|
||
subsystem msm_camera | ||
devname uevent_devpath | ||
dirname /dev/msm_camera | ||
|
||
subsystem input | ||
devname uevent_devpath | ||
dirname /dev/input | ||
|
||
subsystem mtd | ||
devname uevent_devpath | ||
dirname /dev/mtd | ||
|
||
subsystem sound | ||
devname uevent_devpath | ||
dirname /dev/snd | ||
|
||
# ueventd can only set permissions on device nodes and their associated | ||
# sysfs attributes, not on arbitrary paths. | ||
# | ||
# format for /dev rules: devname mode uid gid | ||
# format for /sys rules: nodename attr mode uid gid | ||
# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN" | ||
|
||
/dev/null 0666 root root | ||
/dev/zero 0666 root root | ||
/dev/full 0666 root root | ||
/dev/ptmx 0666 root root | ||
/dev/tty 0666 root root | ||
/dev/random 0666 root root | ||
/dev/urandom 0666 root root | ||
# Make HW RNG readable by group system to let EntropyMixer read it. | ||
/dev/hw_random 0440 root system | ||
/dev/ashmem 0666 root root | ||
/dev/binder 0666 root root | ||
/dev/hwbinder 0666 root root | ||
/dev/vndbinder 0666 root root | ||
|
||
/dev/pmsg0 0222 root log | ||
|
||
# the msm hw3d client device node is world writable/readable. | ||
/dev/msm_hw3dc 0666 root root | ||
|
||
# gpu driver for adreno200 is globally accessible | ||
/dev/kgsl 0666 root root | ||
|
||
# kms driver for drm based gpu | ||
/dev/dri/* 0666 root graphics | ||
|
||
# these should not be world writable | ||
/dev/diag 0660 radio radio | ||
/dev/diag_arm9 0660 radio radio | ||
/dev/ttyMSM0 0600 bluetooth bluetooth | ||
/dev/uhid 0660 uhid uhid | ||
/dev/uinput 0660 system bluetooth | ||
/dev/alarm 0664 system radio | ||
/dev/rtc0 0640 system system | ||
/dev/tty0 0660 root system | ||
/dev/graphics/* 0660 root graphics | ||
/dev/msm_hw3dm 0660 system graphics | ||
/dev/input/* 0660 root input | ||
/dev/v4l-touch* 0660 root input | ||
/dev/eac 0660 root audio | ||
/dev/cam 0660 root camera | ||
/dev/pmem 0660 system graphics | ||
/dev/pmem_adsp* 0660 system audio | ||
/dev/pmem_camera* 0660 system camera | ||
/dev/oncrpc/* 0660 root system | ||
/dev/adsp/* 0660 system audio | ||
/dev/snd/* 0660 system audio | ||
/dev/mt9t013 0660 system system | ||
/dev/msm_camera/* 0660 system system | ||
/dev/akm8976_daemon 0640 compass system | ||
/dev/akm8976_aot 0640 compass system | ||
/dev/akm8973_daemon 0640 compass system | ||
/dev/akm8973_aot 0640 compass system | ||
/dev/bma150 0640 compass system | ||
/dev/cm3602 0640 compass system | ||
/dev/akm8976_pffd 0640 compass system | ||
/dev/lightsensor 0640 system system | ||
/dev/msm_pcm_out* 0660 system audio | ||
/dev/msm_pcm_in* 0660 system audio | ||
/dev/msm_pcm_ctl* 0660 system audio | ||
/dev/msm_snd* 0660 system audio | ||
/dev/msm_mp3* 0660 system audio | ||
/dev/audience_a1026* 0660 system audio | ||
/dev/tpa2018d1* 0660 system audio | ||
/dev/msm_audpre 0660 system audio | ||
/dev/msm_audio_ctl 0660 system audio | ||
/dev/htc-acoustic 0660 system audio | ||
/dev/vdec 0660 system audio | ||
/dev/q6venc 0660 system audio | ||
/dev/snd/dsp 0660 system audio | ||
/dev/snd/dsp1 0660 system audio | ||
/dev/snd/mixer 0660 system audio | ||
/dev/smd0 0640 radio radio | ||
/dev/qmi 0640 radio radio | ||
/dev/qmi0 0640 radio radio | ||
/dev/qmi1 0640 radio radio | ||
/dev/qmi2 0640 radio radio | ||
/dev/bus/usb/* 0660 root usb | ||
/dev/mtp_usb 0660 root mtp | ||
/dev/usb_accessory 0660 root usb | ||
/dev/tun 0660 system vpn | ||
|
||
# CDMA radio interface MUX | ||
/dev/ts0710mux* 0640 radio radio | ||
/dev/ppp 0660 radio vpn | ||
|
||
# sysfs properties | ||
/sys/devices/platform/trusty.* trusty_version 0440 root log | ||
/sys/devices/virtual/input/input* enable 0660 root input | ||
/sys/devices/virtual/input/input* poll_delay 0660 root input | ||
/sys/devices/virtual/usb_composite/* enable 0664 root system | ||
/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system | ||
/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system | ||
|
||
# DVB API device nodes | ||
/dev/dvb* 0660 root system |
Oops, something went wrong.