diff --git a/Android.mk b/Android.mk index 91995c3..cbfbef3 100644 --- a/Android.mk +++ b/Android.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -ifeq ($(TARGET_REFERENCE_DEVICE), foster) +ifneq ($(filter $(TARGET_DEVICE), nx),) LOCAL_PATH := $(call my-dir) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index f9148ad..ff531ab 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,16 +15,12 @@ # PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/full_foster.mk \ - $(LOCAL_DIR)/lineage_foster.mk \ - $(LOCAL_DIR)/twrp_foster.mk + $(LOCAL_DIR)/lineage_nx.mk \ + $(LOCAL_DIR)/twrp_nx.mk COMMON_LUNCH_CHOICES := \ - full_foster-eng \ - full_foster-user \ - full_foster-userdebug \ - lineage_foster-eng \ - lineage_foster-user \ - lineage_foster-userdebug \ - twrp_foster-eng \ - twrp_foster-userdebug + lineage_nx-eng \ + lineage_nx-user \ + lineage_nx-userdebug \ + twrp_nx-eng \ + twrp_nx-userdebug diff --git a/BoardConfig.mk b/BoardConfig.mk index e536281..04fd433 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,11 +19,7 @@ BOARD_BOOTIMAGE_PARTITION_SIZE := 26738688 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 26767360 BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 BOARD_USERDATAIMAGE_PARTITION_SIZE := 10099646976 -ifeq ($(WITH_GMS_TV),true) BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 -else -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1616904192 -endif BOARD_VENDORIMAGE_PARTITION_SIZE := 379584512 TARGET_USERIMAGES_USE_EXT4 := true BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 @@ -32,10 +28,7 @@ TARGET_COPY_OUT_VENDOR := vendor BOARD_BUILD_SYSTEM_ROOT_IMAGE := true # Assert -TARGET_OTA_ASSERT_DEVICE := foster,darcy,jetson,loki,mdarcy,nx -ifneq ($(WITH_GMS_TV),true) -TARGET_OTA_ASSERT_DEVICE := $(TARGET_OTA_ASSERT_DEVICE),sif -endif +TARGET_OTA_ASSERT_DEVICE := nx # Boot image BOARD_CUSTOM_BOOTIMG := true @@ -43,15 +36,15 @@ BOARD_CUSTOM_BOOTIMG_MK := device/nvidia/foster/mkbootimg.mk BOARD_MKBOOTIMG_ARGS := --header_version 1 # Bootloader versions -TARGET_BOARD_INFO_FILE := device/nvidia/foster/board-info.txt +TARGET_BOARD_INFO_FILE := device/nintendo/nx/board-info.txt # Manifest -DEVICE_MANIFEST_FILE := device/nvidia/foster/manifest.xml +DEVICE_MANIFEST_FILE := device/nintendo/nx/manifest.xml # Bluetooth ifeq ($(TARGET_TEGRA_BT),bcm) -BOARD_CUSTOM_BT_CONFIG := device/nvidia/foster/comms/vnd_foster.txt -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/nvidia/foster/comms +BOARD_CUSTOM_BT_CONFIG := device/nintendo/nx/comms/vnd_nx.txt +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/nintendo/nx/comms endif # Charger @@ -68,12 +61,12 @@ BOARD_KERNEL_IMAGE_NAME := Image.gz TARGET_KERNEL_ADDITIONAL_FLAGS := "NV_BUILD_KERNEL_OPTIONS=$(TARGET_TEGRA_KERNEL)" # Recovery -TARGET_RECOVERY_FSTAB := device/nvidia/foster/initfiles/fstab.foster +TARGET_RECOVERY_FSTAB := device/nintendo/nx/initfiles/fstab.nx TARGET_RECOVERY_UPDATER_LIBS := librecoveryupdater_tegra TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 # Releasetools -TARGET_RELEASETOOLS_EXTENSIONS := device/nvidia/foster/releasetools +TARGET_RELEASETOOLS_EXTENSIONS := device/nintendo/nx/releasetools # Security Patch Level VENDOR_SECURITY_PATCH := 2022-04-05 @@ -85,7 +78,7 @@ PRODUCT_FULL_TREBLE_OVERRIDE := true # TWRP Support ifeq ($(WITH_TWRP),true) -include device/nvidia/foster/twrp/twrp.mk +include device/nintendo/nx/twrp/twrp.mk endif include device/nvidia/t210-common/BoardConfigCommon.mk diff --git a/README.md b/README.md index 8b7b2e4..00ceffc 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,10 @@ -# Device configuration for Nvidia SHIELD Android TV - -## Spec Sheet -| Feature | Specification | -| :---------------------- | :-------------------------------- | -| Chipset | NVIDIA® Tegra X1 T210 | -| Memory | 3GB RAM | -| Shipped Android Version | 5.1 | -| Storage | 16/500GB | -| MicroSD | Up to 128GB | -| Dimensions | 98 x 159 x 25.93 mm | -| Release Date | May 18, 2015 | +# Common configuration for Nintendo Switch devices ## Copyright ``` # -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/board-info.txt b/board-info.txt index 19a5711..bc44073 100644 --- a/board-info.txt +++ b/board-info.txt @@ -1 +1 @@ -require version-bootloader=32.00.2019.50-t210-d30cbd07|32.00.2019.50-t210-69ebfcbe|2020.04-03755-gf4d532d00d-rev3 +require version-bootloader=2020.04-03755-gf4d532d00d-rev3 diff --git a/comms/vnd_foster.txt b/comms/vnd_nx.txt similarity index 100% rename from comms/vnd_foster.txt rename to comms/vnd_nx.txt diff --git a/device.mk b/device.mk index b319a30..8c20f4c 100644 --- a/device.mk +++ b/device.mk @@ -15,11 +15,10 @@ # # Only include Shield apps for first party targets -ifneq ($(filter $(word 2,$(subst _, ,$(TARGET_PRODUCT))), foster foster_tab),) +ifneq ($(filter $(word 2,$(subst _, ,$(TARGET_PRODUCT))), nx),) include device/nvidia/shield-common/shield.mk endif -TARGET_REFERENCE_DEVICE ?= foster TARGET_TEGRA_VARIANT ?= common TARGET_TEGRA_APTX ?= true @@ -51,78 +50,23 @@ PRODUCT_AAPT_PREF_CONFIG := xhdpi $(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) -$(call inherit-product, device/nvidia/foster/vendor/foster-vendor.mk) +$(call inherit-product, device/nintendo/nx/vendor/nx-vendor.mk) # Overlays DEVICE_PACKAGE_OVERLAYS += \ - device/nvidia/foster/overlay + device/nintendo/nx/overlay # Soong namespaces -PRODUCT_SOONG_NAMESPACES += device/nvidia/foster +PRODUCT_SOONG_NAMESPACES += device/nintendo/nx # Init related PRODUCT_PACKAGES += \ - fstab.batuu \ - fstab.darcy \ - fstab.dragon \ - fstab.foster \ - fstab.foster_e \ - fstab.foster_e_hdd \ - fstab.jetson_cv \ - fstab.jetson_e \ - fstab.loki_e_base \ - fstab.loki_e_lte \ - fstab.loki_e_wifi \ fstab.nx \ - fstab.porg \ - fstab.porg_sd \ - fstab.sif \ - init.batuu.rc \ - init.darcy.rc \ - init.dragon.rc \ - init.foster_e.rc \ - init.foster_e_hdd.rc \ - init.foster_e_common.rc \ init.loki_e_common.rc \ init.loki_foster_e_common.rc \ - init.jetson_cv.rc \ - init.jetson_e.rc \ - init.loki_e_base.rc \ - init.loki_e_lte.rc \ - init.loki_e_wifi.rc \ init.nx.rc \ - init.porg.rc \ - init.porg_sd.rc \ - init.sif.rc \ - init.recovery.batuu.rc \ - init.recovery.darcy.rc \ - init.recovery.dragon.rc \ - init.recovery.foster_e.rc \ - init.recovery.foster_e_hdd.rc \ - init.recovery.foster_common.rc \ - init.recovery.jetson_cv.rc \ - init.recovery.jetson_e.rc \ - init.recovery.loki_e_base.rc \ - init.recovery.loki_e_lte.rc \ - init.recovery.loki_e_wifi.rc \ init.recovery.nx.rc \ - init.recovery.porg.rc \ - init.recovery.porg_sd.rc \ - init.recovery.sif.rc \ - power.batuu.rc \ - power.darcy.rc \ - power.dragon.rc \ - power.foster_e.rc \ - power.foster_e_hdd.rc \ - power.jetson_cv.rc \ - power.jetson_e.rc \ - power.loki_e_base.rc \ - power.loki_e_lte.rc \ - power.loki_e_wifi.rc \ - power.nx.rc \ - power.porg.rc \ - power.porg_sd.rc \ - power.sif.rc + power.nx.rc # Permissions PRODUCT_COPY_FILES += \ @@ -140,14 +84,6 @@ ifeq ($(TARGET_TEGRA_AUDIO),nvaudio) PRODUCT_PACKAGES += \ audio_effects.xml \ audio_policy_configuration.xml \ - audio_policy_configuration_dragon.xml \ - audio_policy_configuration_loki.xml \ - audio_policy_configuration_nx.xml \ - dragon_nvaudio_conf.xml \ - loki_e_base_nvaudio_conf.xml \ - loki_e_lte_nvaudio_conf.xml \ - loki_e_wifi_nvaudio_conf.xml \ - nx_nvaudio_conf.xml \ nvaudio_conf.xml endif @@ -155,11 +91,7 @@ endif ifeq ($(TARGET_TEGRA_KEYSTORE),nvkeystore) PRODUCT_PACKAGES += \ init.eks2.rc \ - eks2_darcy.dat \ - eks2_foster.dat \ - eks2_mdarcy.dat \ - eks2_public.dat \ - eks2_sif.dat + eks2_public.dat endif # Kernel @@ -172,8 +104,7 @@ endif # Keylayouts PRODUCT_PACKAGES += \ - gpio-keys.kl \ - gpio-keys-loki.kl + gpio-keys.kl # Light PRODUCT_PACKAGES += \ @@ -224,18 +155,7 @@ PRODUCT_PACKAGES += \ # Thermal PRODUCT_PACKAGES += \ android.hardware.thermal@1.0-service-nvidia \ - thermalhal.batuu.xml \ - thermalhal.darcy.xml \ - thermalhal.foster_e.xml \ - thermalhal.foster_e_hdd.xml \ - thermalhal.nx.xml \ - thermalhal.jetson_cv.xml \ - thermalhal.jetson_e.xml \ - thermalhal.loki_e_lte.xml \ - thermalhal.loki_e_wifi.xml \ - thermalhal.porg.xml \ - thermalhal.porg_sd.xml \ - thermalhal.sif.xml + thermalhal.nx.xml # Treble workaround PRODUCT_PACKAGES += $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29) diff --git a/eks2/Android.mk b/eks2/Android.mk index 2caf93b..3546a84 100644 --- a/eks2/Android.mk +++ b/eks2/Android.mk @@ -16,37 +16,9 @@ LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) -LOCAL_MODULE := eks2_foster.dat -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := eks2_foster.dat -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2 -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := eks2_darcy.dat -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := eks2_darcy.dat -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2 -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := eks2_mdarcy.dat -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := eks2_mdarcy.dat -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2 -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := eks2_public.dat LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := eks2_public.dat LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2 include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := eks2_sif.dat -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := eks2_sif.dat -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/app/eks2 -include $(BUILD_PREBUILT) diff --git a/eks2/eks2_darcy.dat b/eks2/eks2_darcy.dat deleted file mode 100644 index 221e925..0000000 Binary files a/eks2/eks2_darcy.dat and /dev/null differ diff --git a/eks2/eks2_foster.dat b/eks2/eks2_foster.dat deleted file mode 100644 index 8fb1d87..0000000 Binary files a/eks2/eks2_foster.dat and /dev/null differ diff --git a/eks2/eks2_mdarcy.dat b/eks2/eks2_mdarcy.dat deleted file mode 100644 index a33a352..0000000 Binary files a/eks2/eks2_mdarcy.dat and /dev/null differ diff --git a/eks2/eks2_sif.dat b/eks2/eks2_sif.dat deleted file mode 100644 index 707c95d..0000000 Binary files a/eks2/eks2_sif.dat and /dev/null differ diff --git a/extract/extract_sources.sh b/extract/extract_sources.sh index dbe04f6..c06ef16 100644 --- a/extract/extract_sources.sh +++ b/extract/extract_sources.sh @@ -1,5 +1,5 @@ # -# Copyright (C) 2021 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,5 +14,4 @@ # limitations under the License. # -FILELIST_PATHS+=("foster"); -PATCH_PATHS+=("foster"); +FILELIST_PATHS+=("nx"); diff --git a/extract/file.list b/extract/file.list index 4394934..833a128 100644 --- a/extract/file.list +++ b/extract/file.list @@ -1,21 +1 @@ -stock-sif vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin32/hw/vendor.nvidia.hardware.convertibleport@1.0-service -stock-t210 vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin64/hw/vendor.nvidia.hardware.convertibleport@1.0-service - -stock-t210 vendor/firmware/nvram_darcy_a00.txt foster/bcm_firmware/bcm4354/nvram_darcy_a00.txt -stock-t210 vendor/firmware/nvram_foster_e_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_4354.txt -stock-t210 vendor/firmware/nvram_foster_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_antenna_tuned_4354.txt -nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_4354.txt -nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_antenna_tuned_4354.txt -nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/emb/nvram_jetsonE_cv_4354.txt foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt -stock-t210 vendor/firmware/brcmfmac4356-pcie.txt foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.txt - -stock-t210 vendor/firmware/bcmdhd_clm_darcy.blob foster/bcm_firmware/bcm4354/darcy.clm_blob -stock-t210 vendor/firmware/bcmdhd_clm_foster.blob foster/bcm_firmware/bcm4354/foster.clm_blob -stock-t210 vendor/firmware/bcmdhd_clm_darcy_flynn-hp.blob foster/bcm_firmware/bcm4354/flynn-hp.clm_blob -nv-tegra-t210 3rdparty/cypress/bcm4356a3/wlan/fw_4356a3_prod.clm_blob foster/bcm_firmware/bcm4356/fw_4356a3_prod.clm_blob stock-t210 vendor/firmware/brcmfmac4356-pcie.clm_blob foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.clm_blob - -l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P2180_A00_LP4_DSC_204Mhz.cfg foster/BCT/P2180_A00_LP4_DSC_204Mhz.cfg -l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg foster/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg - -nv-tegra-t210 tnspec_data/t210/tnspec.json foster/tnspec/foster.json diff --git a/extract/patches.sh b/extract/patches.sh deleted file mode 100644 index 4846793..0000000 --- a/extract/patches.sh +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (C) 2021 The LineageOS 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. - -# Needed by the Pixel C -function fetch_smaug_nvram() { - wget 'https://dumps.tadiphone.dev/dumps/google/dragon/-/raw/ryu-user-8.1.0-OPM8.190605.005-5749003-release-keys/system/etc/wifi/bcmdhd.cal' -O ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal - - # Crummy hack to match what was already committed - sed -i -e '$a\' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal -} - -# The previous default crashes the current firmware -function patch_nvrams() { - sed -i 's/ccode=XR/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt - sed -i 's/ccode=0/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal -} - -fetch_smaug_nvram; -patch_nvrams; diff --git a/init/Android.bp b/init/Android.bp index c78f184..f56fb01 100644 --- a/init/Android.bp +++ b/init/Android.bp @@ -1,5 +1,5 @@ // -// Copyright (C) 2019 The LineageOS Project +// Copyright (C) 2021 The LineageOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -15,24 +15,24 @@ // cc_library_static { - name: "libinit_foster", + name: "libinit_nx", recovery_available: true, include_dirs: [ "device/nvidia/tegra-common/init", ], whole_static_libs: ["libinit_tegra"], srcs: [ - "init_foster.cpp", + "init_nx.cpp", ], } cc_library_static { - name: "libinit_foster_vendor", + name: "libinit_nx_vendor", vendor: true, include_dirs: [ "device/nvidia/tegra-common/init", ], srcs: [ - "init_foster.cpp", + "init_nx.cpp", ], } diff --git a/init/init_foster.cpp b/init/init_foster.cpp deleted file mode 100644 index d5addfb..0000000 --- a/init/init_foster.cpp +++ /dev/null @@ -1,219 +0,0 @@ -/* - Copyright (c) 2013, 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 "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. - */ - -#include "init_tegra.h" - -#include - -void vendor_set_usb_product_ids(tegra_init *ti) -{ - std::map mCommonUsbIds, mDeviceUsbIds; - - mCommonUsbIds["ro.vendor.nv.usb.vid"] = "0955"; - mCommonUsbIds["ro.vendor.nv.usb.pid.rndis.acm.adb"] = "AF00"; - mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "7104"; - mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "7105"; - mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "7106"; - mCommonUsbIds["ro.vendor.nv.usb.pid.ncm"] = "7107"; - mCommonUsbIds["ro.vendor.nv.usb.pid.ncm.adb"] = "7108"; - mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "7109"; - mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "710A"; - mCommonUsbIds["ro.vendor.nv.usb.pid.ecm"] = "710B"; - mCommonUsbIds["ro.vendor.nv.usb.pid.ecm.adb"] = "710C"; - - if (ti->is_model("foster_e")) { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B430"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B431"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B432"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B433"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B434"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B435"; - } else if (ti->is_model("foster_e_hdd")) { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B436"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B437"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B43E"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B43F"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B43A"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B43B"; - } else if (ti->is_model("darcy") || ti->is_model("sif")) { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B43C"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B43D"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B43E"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B43F"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B440"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B441"; - } else if (ti->is_model("mdarcy")) { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B42A"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B42B"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B42C"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B42D"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B42E"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B42F"; - } else if (ti->is_model("loki_e_base") || ti->is_model("loki_e_lte") || ti->is_model("loki_e_wifi")) { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "B424"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "B425"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "B426"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "B427"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "B428"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "B429"; - } else if (ti->is_model("odin") || ti->is_model("modin") || ti->is_model("vali") || ti->is_model("frig")) { - mDeviceUsbIds["ro.vendor.nv.usb.vid"] = "057E"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "2000"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "2000"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "2000"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "2000"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "2000"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "2000"; - } else if (ti->is_model("dragon")) { - mCommonUsbIds["ro.vendor.nv.usb.vid"] = "18D1"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "5202"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "5203"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "5206"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "5207"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "5204"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "5205"; - mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "5208"; - mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "2D01"; - mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "2D03"; - mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "5209"; - mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "520A"; - - } else { - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "EE02"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "EE03"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "EE04"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "EE05"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "EE08"; - mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "EE09"; - } - - for (auto const& id : mDeviceUsbIds) - ti->property_set(id.first, id.second); - - for (auto const& id : mCommonUsbIds) - ti->property_set(id.first, id.second); -} - -void vendor_set_sku(tegra_init *ti) -{ - if (ti->is_model("loki_e_base") || ti->is_model("loki_e_lte") || ti->is_model("loki_e_wifi")) - ti->property_set("ro.boot.product.vendor.sku", "loki"); - else if (ti->is_model("odin") || ti->is_model("modin") || ti->is_model("frig") || ti->is_model("vali")) - ti->property_set("ro.boot.product.vendor.sku", "nx"); - else if (ti->is_model("dragon")) - ti->property_set("ro.boot.product.vendor.sku", "dragon"); -} - -void vendor_set_nrdp_props(tegra_init *ti) -{ - if (ti->is_model("mdarcy") || ti->is_model("sif")) - ti->property_set("ro.vendor.nrdp.modelgroup", "NVIDIASHIELDANDROIDTV2019"); - else - ti->property_set("ro.vendor.nrdp.modelgroup", "SHIELDANDROIDTV"); - - ti->property_set("ro.vendor.nrdp.audio.otfs", "true"); - ti->property_set("ro.vendor.nrdp.validation", "ninja_6"); -} - -void vendor_set_oem_key1(tegra_init *ti) -{ - std::string rel_year = "15"; - - if (ti->is_model("mdarcy") || ti->is_model("sif")) - rel_year = "19"; - else if (ti->is_model("darcy")) - rel_year = "17"; - - ti->property_set("ro.vendor.lineage.tegra.oem_key1", "ATV001000" + rel_year); -} - -void vendor_load_properties() -{ - // device name model id sku api dpi - std::vector devices = { { "foster", "foster_e", "SHIELD Android TV", 2530, 930, 21, 320 }, - { "foster", "foster_e_hdd", "SHIELD Android TV", 2530, 932, 21, 320 }, - { "darcy", "darcy", "SHIELD Android TV", 2894, 52, 23, 320 }, - { "mdarcy", "mdarcy", "SHIELD Android TV", 2894, 2551, 28, 320 }, - { "sif", "sif", "SHIELD Android TV", 3425, 500, 28, 320 }, - { "loki", "loki_e_base", "SHIELD Portable", 2530, 131, 21, 214 }, - { "loki", "loki_e_lte", "SHIELD Portable", 2530, 31, 21, 240 }, - { "loki", "loki_e_wifi", "SHIELD Portable", 2530, 30, 21, 240 }, - { "jetson", "jetson_cv", "Jetson TX1", 2597, 2180, 21, 320 }, - { "jetson", "jetson_e", "Jetson TX1", 2595, 0, 21, 320 }, - { "porg", "batuu", "Jetson Nano 2GB", 3448, 3, 28, 320 }, - { "porg", "porg_sd", "Jetson Nano", 3448, 0, 28, 320 }, - { "porg", "porg", "Jetson Nano", 3448, 2, 28, 320 }, - { "nx", "odin", "Switch", 7888, 0, 27, 214 }, - { "nx", "modin", "Switch V2", 7888, 1, 27, 214 }, - { "nx", "vali", "Switch Lite", 7888, 2, 27, 214 }, - { "nx", "frig", "Switch OLED", 7888, 3, 27, 214 }, - { "dragon", "dragon", "Pixel C", 3, 0, 23, 320 } }; - tegra_init::build_version tav = { "11", "RQ1A.210105.003", "7825230_3167.5736" }; - - tegra_init ti(devices); - - if (ti.is_model("sif")) { - tav = { "11", "RQ1A.210105.003", "7825199_3167.5736" }; - } else if (ti.is_model("dragon")) { - tav = { "8.1.0", "OPM8.190605.005", "5749003" }; - - if (ti.vendor_context()) { - ti.property_set("ro.vendor.lineage.tegra.name", "ryu"); - } - } - - ti.set_properties(); - ti.set_fingerprints(tav); - - if (ti.recovery_context()) { - ti.property_set("ro.product.vendor.model", ti.property_get("ro.product.model")); - ti.property_set("ro.product.vendor.manufacturer", ti.property_get("ro.product.manufacturer")); - - // Unset avb flags. This is to ignore compatibility checks on unified builds - if (ti.is_model("mdarcy") || ti.is_model("sif")) - ti.property_set("ro.boot.avb_version", ""); - } - - if (ti.vendor_context() || ti.recovery_context()) { - vendor_set_usb_product_ids(&ti); - vendor_set_sku(&ti); - - if (ti.property_get("ro.build.characteristics") == "tv") { - vendor_set_nrdp_props(&ti); - vendor_set_oem_key1(&ti); - } - } - - // For system and recovery context - if (ti.is_model("dragon") && !ti.vendor_context()) { - ti.property_set("ro.product.name", "ryu"); - ti.property_set("ro.product.system.name", "ryu"); - ti.property_set("ro.product.system_ext.name", "ryu"); - ti.property_set("ro.product.odm.name", "ryu"); - ti.property_set("ro.product.product.name", "ryu"); - } -} diff --git a/init/init_nx.cpp b/init/init_nx.cpp new file mode 100644 index 0000000..fc8c6ee --- /dev/null +++ b/init/init_nx.cpp @@ -0,0 +1,99 @@ +/* + Copyright (c) 2013, 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 "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. + */ + +#include "init_tegra.h" + +#include + +void vendor_set_usb_product_ids(tegra_init *ti) +{ + std::map mCommonUsbIds, mDeviceUsbIds; + + mCommonUsbIds["ro.vendor.nv.usb.pid.rndis.acm.adb"] = "AF00"; + mCommonUsbIds["ro.vendor.nv.usb.pid.adb"] = "7104"; + mCommonUsbIds["ro.vendor.nv.usb.pid.accessory.adb"] = "7105"; + mCommonUsbIds["ro.vendor.nv.usb.pid.audio_source.adb"] = "7106"; + mCommonUsbIds["ro.vendor.nv.usb.pid.ncm"] = "7107"; + mCommonUsbIds["ro.vendor.nv.usb.pid.ncm.adb"] = "7108"; + mCommonUsbIds["ro.vendor.nv.usb.pid.midi"] = "7109"; + mCommonUsbIds["ro.vendor.nv.usb.pid.midi.adb"] = "710A"; + mCommonUsbIds["ro.vendor.nv.usb.pid.ecm"] = "710B"; + mCommonUsbIds["ro.vendor.nv.usb.pid.ecm.adb"] = "710C"; + + mDeviceUsbIds["ro.vendor.nv.usb.vid"] = "057E"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp"] = "2000"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.mtp.adb"] = "2000"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp"] = "2000"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.ptp.adb"] = "2000"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis"] = "2000"; + mDeviceUsbIds["ro.vendor.nv.usb.pid.rndis.adb"] = "2000"; + + for (auto const& id : mDeviceUsbIds) + ti->property_set(id.first, id.second); + + for (auto const& id : mCommonUsbIds) + ti->property_set(id.first, id.second); +} + +void vendor_set_nrdp_props(tegra_init *ti) +{ + ti->property_set("ro.vendor.nrdp.audio.otfs", "true"); + ti->property_set("ro.vendor.nrdp.validation", "ninja_6"); +} + +void vendor_load_properties() +{ + // device name model id sku api dpi + std::vector devices = { { "nx", "odin", "Switch", 7888, 0, 27, 214 }, + { "nx", "modin", "Switch v2", 7888, 1, 27, 214 }, + { "nx", "vali", "Switch Lite", 7888, 2, 27, 214 }, + { "nx", "frig", "Switch OLED", 7888, 3, 27, 214 } }; + + tegra_init ti(devices); + + tegra_init::build_version tav = { "11", "RQ1A.210105.003", "7825230_3167.5736" }; + ti.set_fingerprints(tav); + + ti.set_properties(); + + if (ti.recovery_context()) { + ti.property_set("ro.product.vendor.model", ti.property_get("ro.product.model")); + ti.property_set("ro.product.vendor.manufacturer", ti.property_get("ro.product.manufacturer")); + + // Unset avb flags. This is to ignore compatibility checks on unified builds + if (ti.is_model("mdarcy") || ti.is_model("sif")) + ti.property_set("ro.boot.avb_version", ""); + } + + if (ti.vendor_context() || ti.recovery_context()) { + vendor_set_usb_product_ids(&ti); + + if (ti.property_get("ro.build.characteristics") == "tv") { + vendor_set_nrdp_props(&ti); + } + } +} diff --git a/initfiles/Android.mk b/initfiles/Android.mk index cee44ef..6d5d284 100644 --- a/initfiles/Android.mk +++ b/initfiles/Android.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2019 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,83 +14,6 @@ LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.batuu -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.porg_sd -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.darcy -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.darcy -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.dragon -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.dragon -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.foster -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.foster_e -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.foster_e_hdd -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e_hdd -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.jetson_e -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.jetson_cv -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.loki_e_base -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.loki_e_lte -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.loki_e_wifi -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := fstab.nx LOCAL_MODULE_CLASS := ETC @@ -98,107 +21,6 @@ LOCAL_SRC_FILES := fstab.nx LOCAL_VENDOR_MODULE := true include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.porg -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.porg_sd -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.porg_sd -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.sif -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := fstab.foster_e -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.batuu.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.batuu.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.darcy.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.darcy.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.dragon.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.dragon.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.foster_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.foster_e.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.foster_e_hdd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.foster_e_hdd.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.jetson_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.jetson_e.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.jetson_cv.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.jetson_cv.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.loki_e_base.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.loki_e_base.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.loki_e_lte.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.loki_e_lte.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.loki_e_wifi.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.loki_e_wifi.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := init.nx.rc LOCAL_MODULE_CLASS := ETC @@ -207,100 +29,6 @@ LOCAL_VENDOR_MODULE := true LOCAL_MODULE_RELATIVE_PATH := init/hw include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := init.porg.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.porg.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.porg_sd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.porg_sd.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.sif.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.sif.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.batuu.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.darcy.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.darcy.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.dragon.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.dragon.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.foster_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.foster_e_hdd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.jetson_cv.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.jetson_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.loki_e_base.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.loki.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.loki_e_lte.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.loki.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.loki_e_wifi.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.loki.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := init.recovery.nx.rc LOCAL_MODULE_CLASS := ETC @@ -308,128 +36,6 @@ LOCAL_SRC_FILES := init.recovery.nx.rc LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.porg.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.porg_sd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.sif.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.sif.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.recovery.foster_common.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.recovery.foster_common.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.foster_e_common.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.foster_e_common.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.loki_e_common.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.loki_e_common.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.loki_foster_e_common.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := init.loki_foster_e_common.rc -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.batuu.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.darcy.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.darcy.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.darcy.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.dragon.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.abca.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.foster_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.foster_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.foster_e_hdd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.foster_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.jetson_cv.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.foster_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.jetson_e.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.foster_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.loki_e_base.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.loki_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.loki_e_lte.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.loki_e_common.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.loki_e_wifi.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.loki_e_common.rc -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := power.nx.rc LOCAL_MODULE_CLASS := ETC @@ -437,27 +43,6 @@ LOCAL_ODM_MODULE := true LOCAL_SRC_FILES := power.nx.rc include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := power.porg.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.darcy.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.porg_sd.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.darcy.rc -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := power.sif.rc -LOCAL_MODULE_CLASS := ETC -LOCAL_ODM_MODULE := true -LOCAL_SRC_FILES := power.darcy.rc -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := lkm_loader LOCAL_SRC_FILES := lkm_loader.sh @@ -473,3 +58,19 @@ LOCAL_SRC_FILES := init.eks2.rc LOCAL_VENDOR_MODULE := true LOCAL_MODULE_RELATIVE_PATH := init include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.loki_e_common.rc +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := init.loki_e_common.rc +LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_RELATIVE_PATH := init/hw +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.loki_foster_e_common.rc +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := init.loki_foster_e_common.rc +LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_RELATIVE_PATH := init/hw +include $(BUILD_PREBUILT) diff --git a/initfiles/fstab.darcy b/initfiles/fstab.darcy deleted file mode 100644 index 4371fc2..0000000 --- a/initfiles/fstab.darcy +++ /dev/null @@ -1,22 +0,0 @@ -#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved. - -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable -/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA,quota,reservedsize=128M -/dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/MDA /metadata emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check -/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata -/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly -/dev/block/platform/sdhci-tegra.3/by-name/BMP /bmps emmc defaults recoveryonly -/dev/block/zram0 none swap defaults zramsize=536870912 -79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto -28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto diff --git a/initfiles/fstab.dragon b/initfiles/fstab.dragon deleted file mode 100644 index 1d1b07d..0000000 --- a/initfiles/fstab.dragon +++ /dev/null @@ -1,16 +0,0 @@ -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/sdhci-tegra.3/by-name/VNR /vendor ext4 ro,noatime recoveryonly -/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable -/dev/block/platform/sdhci-tegra.3/by-name/KERN-A /boot emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MD1,quota,reservedsize=128M -/dev/block/platform/sdhci-tegra.3/by-name/MD1 /metadata emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/recovery /recovery emmc defaults defaults -/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata -/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly -/dev/block/zram0 none swap defaults zramsize=536870912 diff --git a/initfiles/fstab.foster b/initfiles/fstab.foster deleted file mode 100644 index 77ff2d4..0000000 --- a/initfiles/fstab.foster +++ /dev/null @@ -1,16 +0,0 @@ -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -# This fstab is only used for the updater script. Assumes the recovery has made appropriate symlinks - -/dev/block/by-name/APP / ext4 ro,noatime wait -/dev/block/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,nodelalloc,errors=panic wait,formattable -/dev/block/by-name/vendor /vendor ext4 ro,noatime wait -/dev/block/by-name/LNX /boot emmc defaults defaults -/dev/block/by-name/MSC /misc emmc defaults defaults -/dev/block/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,noauto_da_alloc,errors=panic wait,check,formattable,encryptable=/dev/block/by-name/MDA -/dev/block/by-name/USP /staging emmc defaults defaults -/dev/block/by-name/SOS /recovery emmc defaults defaults -/dev/block/by-name/BMP /bmps emmc defaults recoveryonly -/devices/sdhci-tegra.0/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata diff --git a/initfiles/fstab.foster_e b/initfiles/fstab.foster_e deleted file mode 100644 index 1796ae7..0000000 --- a/initfiles/fstab.foster_e +++ /dev/null @@ -1,25 +0,0 @@ -#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved. - -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/sdhci-tegra.3/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable -/dev/block/platform/sdhci-tegra.3/by-name/LNX /boot emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MDA,quota -/dev/block/platform/sdhci-tegra.3/by-name/USP /staging emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/MDA /metadata emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/SOS /recovery emmc defaults defaults -/dev/block/platform/sdhci-tegra.3/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check,formattable -/devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata -/devices/platform/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata -/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata -/dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly -/dev/block/platform/sdhci-tegra.3/by-name/BMP /bmps emmc defaults recoveryonly -/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly -/dev/block/zram0 none swap defaults zramsize=536870912 -79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto -28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto diff --git a/initfiles/fstab.foster_e_hdd b/initfiles/fstab.foster_e_hdd deleted file mode 100644 index 58f8dde..0000000 --- a/initfiles/fstab.foster_e_hdd +++ /dev/null @@ -1,24 +0,0 @@ -#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved. - -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/tegra-sata.0/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/tegra-sata.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,nodelalloc,barrier=1 wait,formattable -/dev/block/platform/tegra-sata.0/by-name/LNX /boot emmc defaults defaults -/dev/block/platform/tegra-sata.0/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/tegra-sata.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,noauto_da_alloc,discard,barrier=0,init_itable=100 wait,check,formattable,encryptable=/dev/block/platform/tegra-sata.0/by-name/MDA,quota -/dev/block/platform/tegra-sata.0/by-name/USP /staging emmc defaults defaults -/dev/block/platform/tegra-sata.0/by-name/MDA /metadata emmc defaults defaults -/dev/block/platform/tegra-sata.0/by-name/SOS /recovery emmc defaults defaults -/dev/block/platform/tegra-sata.0/by-name/RP3 /mnt/vendor/wifi_config ext4 rw,noatime,nosuid,nodev,noexec wait,check,formattable -/devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,encryptable=userdata -/dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly -/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly -/dev/block/platform/tegra-sata.0/by-name/BMP /bmps emmc defaults recoveryonly -/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata -/dev/block/zram0 none swap defaults zramsize=536870912 -79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto -28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto diff --git a/initfiles/fstab.nx b/initfiles/fstab.nx index 475f787..7a98c57 100644 --- a/initfiles/fstab.nx +++ b/initfiles/fstab.nx @@ -5,13 +5,14 @@ # The filesystem that contains the filesystem checker binary (typically /system) cannot # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -/dev/block/platform/sdhci-tegra.0/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/sdhci-tegra.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable -/dev/block/platform/sdhci-tegra.0/by-name/LNX /boot emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.0/by-name/MDA,quota,reservedsize=128M -/dev/block/platform/sdhci-tegra.0/by-name/MDA /metadata emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/SOS /recovery emmc defaults defaults +/dev/block/by-name/APP / ext4 ro,noatime wait +/dev/block/by-name/vendor /vendor ext4 ro,noatime wait,recoveryonly +/dev/block/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable +/dev/block/by-name/LNX /boot emmc defaults defaults +/dev/block/by-name/MSC /misc emmc defaults defaults +/dev/block/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/by-name/MDA,quota,reservedsize=128M +/dev/block/by-name/MDA /metadata emmc defaults defaults +/dev/block/by-name/SOS /recovery emmc defaults defaults /devices/sdhci-tegra.0/mmc_host* auto vfat defaults voldmanaged=sdcard1:1 /devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata /dev/block/platform/sdhci-tegra.0/by-num/p1 /sdcard vfat defaults recoveryonly diff --git a/initfiles/fstab.porg_sd b/initfiles/fstab.porg_sd deleted file mode 100644 index 1b85542..0000000 --- a/initfiles/fstab.porg_sd +++ /dev/null @@ -1,21 +0,0 @@ -#Copyright (c) 2015-2018 NVIDIA Corporation. All Rights Reserved. - -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/sdhci-tegra.0/by-name/APP / ext4 ro,noatime wait -/dev/block/platform/sdhci-tegra.0/by-name/CAC /cache ext4 noatime,nosuid,nodev,data=ordered,barrier=1,nodelalloc wait,formattable -/dev/block/platform/sdhci-tegra.0/by-name/LNX /boot emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/MSC /misc emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/UDA /data ext4 noatime,nosuid,nodev,data=ordered,barrier=0,noauto_da_alloc wait,check,formattable,encryptable=/dev/block/platform/sdhci-tegra.0/by-name/MDA,quota,reservedsize=128M -/dev/block/platform/sdhci-tegra.0/by-name/USP /staging emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/MDA /metadata emmc defaults defaults -/dev/block/platform/sdhci-tegra.0/by-name/SOS /recovery emmc defaults defaults -/devices/70090000.xusb/usb* auto vfat defaults voldmanaged=usbdrive:auto,encryptable=userdata -/dev/block/platform/70090000.xusb/by-num/p1 /usbdrive vfat defaults recoveryonly -/dev/block/platform/sdhci-tegra.0/by-name/BMP /bmps emmc defaults recoveryonly -/dev/block/zram0 none swap defaults zramsize=536870912 -79a35232-07f9-4230-9df3-4256560ddbd2 /mnt/remote auto defaults voldmanaged=remote:auto -28f3f3fa-9c68-45be-bf54-7580ab57fd21 /mnt/remote auto defaults voldmanaged=remote:auto diff --git a/initfiles/init.batuu.rc b/initfiles/init.batuu.rc deleted file mode 100644 index d86393d..0000000 --- a/initfiles/init.batuu.rc +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_sd.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on fs - mount_all /vendor/etc/fstab.batuu - swapon_all /vendor/etc/fstab.batuu - - # Create symlinks for VTS compatibility (must be after fstab mounting) - symlink /dev/block/platform/sdhci-tegra.0/by-name/DTB /dev/block/platform/sdhci-tegra.0/by-name/dtbo - symlink /dev/block/platform/sdhci-tegra.0/by-name/LNX /dev/block/platform/sdhci-tegra.0/by-name/boot - symlink /dev/block/platform/sdhci-tegra.0/by-name/SOS /dev/block/platform/sdhci-tegra.0/by-name/recovery - - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 - -on post-fs-data - setprop atv.setup.bt_remote_pairing false diff --git a/initfiles/init.darcy.rc b/initfiles/init.darcy.rc deleted file mode 100644 index ddc7170..0000000 --- a/initfiles/init.darcy.rc +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on fs - mount_all /vendor/etc/fstab.darcy - swapon_all /vendor/etc/fstab.darcy - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 - -on post-fs - # Create symlinks for VTS compatibility (must be after fstab mounting) - symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo - symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot - symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery - -# override cpuset cpus to 0-3 -on init - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 0-3 - write /dev/cpuset/system-background/cpus 0-3 - write /dev/cpuset/top-app/cpus 0-3 diff --git a/initfiles/init.dragon.rc b/initfiles/init.dragon.rc deleted file mode 100644 index 119b769..0000000 --- a/initfiles/init.dragon.rc +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (C) 2020 The LineageOS 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. - -import /vendor/etc/init/hw/init.tegra.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.loki_e_common.rc - -on fs - mount_all /vendor/etc/fstab.dragon - swapon_all /vendor/etc/fstab.dragon diff --git a/initfiles/init.foster_e.rc b/initfiles/init.foster_e.rc deleted file mode 100644 index d71c8a0..0000000 --- a/initfiles/init.foster_e.rc +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on init - # support old sdcard features (apps on sdcard and migrated apps) - setprop vendor.vold.linktoprimary 1 - -on fs - mount_all /vendor/etc/fstab.foster_e - swapon_all /vendor/etc/fstab.foster_e - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 - -on post-fs-data - start cyupdate - -service cyupdate /vendor/bin/cyupdate.sh - class main - user system - group system - oneshot - disabled - diff --git a/initfiles/init.foster_e_common.rc b/initfiles/init.foster_e_common.rc deleted file mode 100644 index 4d4bb47..0000000 --- a/initfiles/init.foster_e_common.rc +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.loki_foster_e_common.rc - -on init - setprop ro.hardware.gatekeeper tlk.tegra - -on boot - write /sys/devices/system/cpu/cpuquiet/runnable_threads/nr_run_thresholds "6 10 18" - write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 0 - - # Lower console loglevel to reduce number of printk messages to console - write /proc/sys/kernel/printk "4 7 1 7 3" - -on boot && property:ro.build.type=user - # Disable console logs in user build, print KERN_EMERG messages only - setprop vendor.debug.enable_console_logs false - write /dev/kmsg "Disabling kernel console prints. Prints can be enabled via the developer menu" - -on post-fs-data -# Set Foster as console mode - setprop persist.vendor.tegra.composite.range Auto - setprop sys.wal.off external.db,iu.upload.db - setprop sys.wal.normal tz4,PGDatabase,launcher.db,playlog.db,music.db - write /sys/power/wake_lock foster-staywake - - # Disable rescue feature. This needs to be in vendor init, so that it - # works on GSI images. - setprop persist.sys.disable_rescue true - -on post-fs-data - chown system system /mnt/venodr/wifi_config - chown system system /mnt/vendor/wifi_config/FSS.txt - chown system system /mnt/vendor/wifi_config/country_code.txt - chown system system /mnt/vendor/wifi_config/country_code.sig - chown system system /mnt/vendor/wifi_config/package.txt - restorecon_recursive /mnt/vendor/wifi_config - -on post-fs - chown system system /sys/class/leds/led_lightbar/brightness - chown system system /sys/class/leds/led_lightbar/boot_mode - chown system system /sys/class/leds/led_lightbar/version - chown system system /sys/class/leds/led_lightbar/effects - chown system system /sys/class/leds/led_lightbar/params - -on property:vendor.debug.enable_console_logs=true && property:ro.build.type=user - write /proc/sys/kernel/printk "4 7 1 7 3" - -on property:vendor.debug.enable_console_logs=false && property:ro.build.type=user - write /proc/sys/kernel/printk "1 7 1 7 3" - -service mossignerd /vendor/bin/mossignerd - class late_start - user system diff --git a/initfiles/init.foster_e_hdd.rc b/initfiles/init.foster_e_hdd.rc deleted file mode 100644 index 5f406f5..0000000 --- a/initfiles/init.foster_e_hdd.rc +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_sata.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on init - # support old sdcard features (apps on sdcard and migrated apps) - setprop vendor.vold.linktoprimary 1 - -on fs - write /sys/block/sda/queue/scheduler deadline - write /sys/block/sda/queue/iosched/read_expire 1000 - write /sys/block/sda/queue/iosched/write_expire 40000 - write /sys/block/sda/queue/iosched/writes_starved 16 - mount_all /vendor/etc/fstab.foster_e_hdd - swapon_all /vendor/etc/fstab.foster_e_hdd - -on post-fs-data - start cyupdate - start get-hddstat - -service cyupdate /vendor/bin/cyupdate.sh - class main - user system - group system - oneshot - disabled - diff --git a/initfiles/init.jetson_cv.rc b/initfiles/init.jetson_cv.rc deleted file mode 100644 index 99e67bb..0000000 --- a/initfiles/init.jetson_cv.rc +++ /dev/null @@ -1,63 +0,0 @@ -#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.lkm.rc - -on init -# override cpuset cpus to 0-3, mems to 0 - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/mems 0 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/foreground/boost/mems 0 - write /dev/cpuset/background/cpus 0-3 - write /dev/cpuset/background/mems 0 - write /dev/cpuset/system-background/cpus 0-3 - write /dev/cpuset/system-background/mems 0 - write /dev/cpuset/top-app/cpus 0-3 - write /dev/cpuset/top-app/mems 0 - -on fs - setprop ro.wifi.sdmmc 1 - setprop audio.custompolicy 1 - setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000 - setprop ro.crypto.umount_sd false - setprop ro.crypto.fuse_sdcard true - mount_all /vendor/etc/fstab.jetson_cv - swapon_all /vendor/etc/fstab.jetson_cv - - # start Early Loadable Kernel Module service - exec /vendor/bin/lkm_loader.sh early - -on post-fs-data - chown root system /sys/class/gps_wake/gps_device/gps_enable - chmod 0664 /sys/class/gps_wake/gps_device/gps_enable - -on post-fs-data - chmod 0444 /sys/devices/platform/tegra-fuse/aid - -on boot - # start Loadable Kernel Module service - start vendor.lkm_loader - -on property:persist.gps.present=true - symlink /system/etc/android.hardware.location.gps.xml /data/android.hardware.location.gps.xml - -on property:persist.gps.present=false - rm /data/android.hardware.location.gps.xml - -#start pbc daemon -service pbc2 /system/vendor/bin/pbc2 - class main - user system - group system - -on property:sys.boot_completed=1 - write /sys/devices/virtual/android_usb/android0/uevent_in_suspend N - write /sys/devices/usb_cd/extcon/extcon1/uevent_in_suspend N diff --git a/initfiles/init.jetson_e.rc b/initfiles/init.jetson_e.rc deleted file mode 100644 index aa633e8..0000000 --- a/initfiles/init.jetson_e.rc +++ /dev/null @@ -1,54 +0,0 @@ -#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.ray_touch.rc -import /vendor/etc/init/hw/init.cal.rc -import /vendor/etc/init/hw/init.lkm.rc - -on init -# override cpuset cpus to 0-3, mems to 0 - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/mems 0 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/foreground/boost/mems 0 - write /dev/cpuset/background/cpus 0-3 - write /dev/cpuset/background/mems 0 - write /dev/cpuset/system-background/cpus 0-3 - write /dev/cpuset/system-background/mems 0 - write /dev/cpuset/top-app/cpus 0-3 - write /dev/cpuset/top-app/mems 0 - -on fs - setprop ro.wifi.sdmmc 1 - setprop audio.custompolicy 1 - setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000 - setprop ro.crypto.umount_sd false - setprop ro.crypto.fuse_sdcard true - mount_all /vendor/etc/fstab.jetson_e - swapon_all /vendor/etc/fstab.jetson_e - - # start Early Loadable Kernel Module service - exec /vendor/bin/lkm_loader.sh early - -on post-fs-data - chmod 0444 /sys/devices/platform/tegra-fuse/aid - -#start pbc daemon -service pbc2 /system/vendor/bin/pbc2 - class main - user system - group system - -on property:sys.boot_completed=1 - write /sys/devices/virtual/android_usb/android0/uevent_in_suspend N - -on boot - # start Loadable Kernel Module service - start vendor.lkm_loader diff --git a/initfiles/init.loki_e_base.rc b/initfiles/init.loki_e_base.rc deleted file mode 100644 index 25c05b1..0000000 --- a/initfiles/init.loki_e_base.rc +++ /dev/null @@ -1,16 +0,0 @@ -#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.loki_e_common.rc -import /vendor/etc/init/hw/init.ray_touch.rc - -on fs - mount_all /vendor/etc/fstab.loki_e_base - swapon_all /vendor/etc/fstab.loki_e_base diff --git a/initfiles/init.loki_e_lte.rc b/initfiles/init.loki_e_lte.rc deleted file mode 100644 index 1cd3e79..0000000 --- a/initfiles/init.loki_e_lte.rc +++ /dev/null @@ -1,16 +0,0 @@ -#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.loki_e_common.rc -import /vendor/etc/init/hw/init.ray_touch.rc - -on fs - mount_all /vendor/etc/fstab.loki_e_lte - swapon_all /vendor/etc/fstab.loki_e_lte diff --git a/initfiles/init.loki_e_wifi.rc b/initfiles/init.loki_e_wifi.rc deleted file mode 100644 index 822cfc2..0000000 --- a/initfiles/init.loki_e_wifi.rc +++ /dev/null @@ -1,16 +0,0 @@ -#Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.loki_e_common.rc -import /vendor/etc/init/hw/init.ray_touch.rc - -on fs - mount_all /vendor/etc/fstab.loki_e_wifi - swapon_all /vendor/etc/fstab.loki_e_wifi diff --git a/initfiles/init.porg.rc b/initfiles/init.porg.rc deleted file mode 100644 index 466ee06..0000000 --- a/initfiles/init.porg.rc +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on init - enable btlinux-1.1 - -on fs - mount_all /vendor/etc/fstab.porg - swapon_all /vendor/etc/fstab.porg - - # Create symlinks for VTS compatibility (must be after fstab mounting) - symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo - symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot - symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery - - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 diff --git a/initfiles/init.porg_sd.rc b/initfiles/init.porg_sd.rc deleted file mode 100644 index 70797fa..0000000 --- a/initfiles/init.porg_sd.rc +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_sd.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on init - enable btlinux-1.1 - -on fs - mount_all /vendor/etc/fstab.porg_sd - swapon_all /vendor/etc/fstab.porg_sd - - # Create symlinks for VTS compatibility (must be after fstab mounting) - symlink /dev/block/platform/sdhci-tegra.0/by-name/DTB /dev/block/platform/sdhci-tegra.0/by-name/dtbo - symlink /dev/block/platform/sdhci-tegra.0/by-name/LNX /dev/block/platform/sdhci-tegra.0/by-name/boot - symlink /dev/block/platform/sdhci-tegra.0/by-name/SOS /dev/block/platform/sdhci-tegra.0/by-name/recovery - - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 diff --git a/initfiles/init.recovery.darcy.rc b/initfiles/init.recovery.darcy.rc deleted file mode 100644 index aace06f..0000000 --- a/initfiles/init.recovery.darcy.rc +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2019 The LineageOS 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. - -import init.recovery.foster_common.rc - -on init - write /sys/class/extcon/extcon3/state 0x1 diff --git a/initfiles/init.recovery.foster.rc b/initfiles/init.recovery.foster.rc deleted file mode 100644 index 817ce03..0000000 --- a/initfiles/init.recovery.foster.rc +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 2019 The LineageOS 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. - -import init.recovery.foster_common.rc diff --git a/initfiles/init.recovery.foster_common.rc b/initfiles/init.recovery.foster_common.rc deleted file mode 100644 index 10a0f5e..0000000 --- a/initfiles/init.recovery.foster_common.rc +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 2020 The LineageOS 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. - -import init.recovery.usb.rc diff --git a/initfiles/init.recovery.loki.rc b/initfiles/init.recovery.loki.rc deleted file mode 100644 index afa1854..0000000 --- a/initfiles/init.recovery.loki.rc +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (C) 2019 The LineageOS 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. - -import init.recovery.ray_touch.rc -import init.recovery.foster_common.rc - -on post-fs - # touchscreen - mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/FCT /mnt/vendor/factory ro - restorecon_recursive /mnt/vendor/factory diff --git a/initfiles/init.recovery.nx.rc b/initfiles/init.recovery.nx.rc index 10bb556..e6a09db 100644 --- a/initfiles/init.recovery.nx.rc +++ b/initfiles/init.recovery.nx.rc @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import init.recovery.foster_common.rc +import init.recovery.usb.rc on init setprop persist.twrp.rotation 270 diff --git a/initfiles/init.recovery.sif.rc b/initfiles/init.recovery.sif.rc deleted file mode 100644 index 4ec93fd..0000000 --- a/initfiles/init.recovery.sif.rc +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 2021 The LineageOS 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. - -# Do nothing, usb can't be used on consumer sif units diff --git a/initfiles/init.sif.rc b/initfiles/init.sif.rc deleted file mode 100644 index b82ea99..0000000 --- a/initfiles/init.sif.rc +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. -# -#NVIDIA Corporation and its licensors retain all intellectual property and -#proprietary rights in and to this software and related documentation. Any -#use, reproduction, disclosure or distribution of this software and related -#documentation without an express license agreement from NVIDIA Corporation -#is strictly prohibited. - -import /vendor/etc/init/hw/init.tegra_emmc.rc -import /vendor/etc/init/hw/init.t210.rc -import /vendor/etc/init/hw/init.foster_e_common.rc - -on fs - mount_all /vendor/etc/fstab.sif - swapon_all /vendor/etc/fstab.sif - - # Create symlinks for VTS compatibility (must be after fstab mounting) - symlink /dev/block/platform/sdhci-tegra.3/by-name/DTB /dev/block/platform/sdhci-tegra.3/by-name/dtbo - symlink /dev/block/platform/sdhci-tegra.3/by-name/LNX /dev/block/platform/sdhci-tegra.3/by-name/boot - symlink /dev/block/platform/sdhci-tegra.3/by-name/SOS /dev/block/platform/sdhci-tegra.3/by-name/recovery - - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - write /sys/block/mmcblk0/queue/iostats 0 - write /sys/block/mmcblk0/queue/nr_requests 256 - - setprop config.disable_cameraservice true - - # Controls the max total size the egl blob cache will use. (32 MB) - setprop ro.vendor.tegra.blobcachetotalsize 33554432 - -# override cpuset cpus to 0-3 -on init - write /dev/cpuset/foreground/cpus 0-3 - write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 0-3 - write /dev/cpuset/system-background/cpus 0-3 - write /dev/cpuset/top-app/cpus 0-3 diff --git a/initfiles/power.abca.rc b/initfiles/power.abca.rc deleted file mode 100644 index 2461c7c..0000000 --- a/initfiles/power.abca.rc +++ /dev/null @@ -1,108 +0,0 @@ -# FORMAT: -# panelresolution=[xres]X[yres], such as panelresolution=1280X720 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# panelresolution=[xres]X[yres], such as panelresolution=1920X1080 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# ...... -# ...... -# panelresolution=[xres]X[yres], such as panelresolution=1920X1200 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# -# NOTES: -# The panelresolution is the lcd panel resolution. -# No space should exist in panelresolution=[xres]X[yres]. -# panelresolution=720X1280 equals with panelresolution=1280X720. -# For panelresolution=-1X-1, it should be the last set of power settings in this file. -# When your panel resolution is found in this file, -# it will use the set of power settings followed by your panel resolution. -# When your panel resolution is not found in this file, it will use the default power settings. -# The power settings followed by panelresolution=-1X-1 is the default power settings. -# powernode is the sysfs or variable we need to write and it is followed by three ints. -# maxperf, optimized, maxbatterylife are the three ints for different power modes. -# -# Default power mode: can be set to 0, 1, or 2 -NV_DEFAULT_MODE 1 -panelresolution=1900X1200 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 900000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_HYPERVOLT_ALPHA 50 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_PRETHROTTLE 0 1 1 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 1 1 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 7 3 2 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=2500X1600 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 900000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_HYPERVOLT_ALPHA 50 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_PRETHROTTLE 0 1 1 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 1 1 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 7 3 2 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=-1X-1 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 900000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_HYPERVOLT_ALPHA 50 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_PRETHROTTLE 0 1 1 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 1 1 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 7 3 2 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 diff --git a/initfiles/power.darcy.rc b/initfiles/power.darcy.rc deleted file mode 100644 index bfde55e..0000000 --- a/initfiles/power.darcy.rc +++ /dev/null @@ -1,112 +0,0 @@ -# FORMAT: -# panelresolution=[xres]X[yres], such as panelresolution=1280X720 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# panelresolution=[xres]X[yres], such as panelresolution=1920X1080 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# ...... -# ...... -# panelresolution=[xres]X[yres], such as panelresolution=1920X1200 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# -# NOTES: -# The panelresolution is the lcd panel resolution. -# No space should exist in panelresolution=[xres]X[yres]. -# panelresolution=720X1280 equals with panelresolution=1280X720. -# For panelresolution=-1X-1, it should be the last set of power settings in this file. -# When your panel resolution is found in this file, -# it will use the set of power settings followed by your panel resolution. -# When your panel resolution is not found in this file, it will use the default power settings. -# The power settings followed by panelresolution=-1X-1 is the default power settings. -# powernode is the sysfs or variable we need to write and it is followed by three ints. -# maxperf, optimized, maxbatterylife are the three ints for different power modes. -# -# Default power mode: can be set to 0, 1, or 2 -NV_DEFAULT_MODE 0 -panelresolution=1280X720 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -# 1100000 should be below Fmax@Vmin -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 18000 14000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=1440X810 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 18000 14000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=-1X-1 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 18000 14000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 16640/28160/40960/51200/65280 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 diff --git a/initfiles/power.foster_e_common.rc b/initfiles/power.foster_e_common.rc deleted file mode 100644 index 2e5ae74..0000000 --- a/initfiles/power.foster_e_common.rc +++ /dev/null @@ -1,111 +0,0 @@ -# FORMAT: -# panelresolution=[xres]X[yres], such as panelresolution=1280X720 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# panelresolution=[xres]X[yres], such as panelresolution=1920X1080 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# ...... -# ...... -# panelresolution=[xres]X[yres], such as panelresolution=1920X1200 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# -# NOTES: -# The panelresolution is the lcd panel resolution. -# No space should exist in panelresolution=[xres]X[yres]. -# panelresolution=720X1280 equals with panelresolution=1280X720. -# For panelresolution=-1X-1, it should be the last set of power settings in this file. -# When your panel resolution is found in this file, -# it will use the set of power settings followed by your panel resolution. -# When your panel resolution is not found in this file, it will use the default power settings. -# The power settings followed by panelresolution=-1X-1 is the default power settings. -# powernode is the sysfs or variable we need to write and it is followed by three ints. -# maxperf, optimized, maxbatterylife are the three ints for different power modes. -# -# Default power mode: can be set to 0, 1, or 2 -NV_DEFAULT_MODE 0 -panelresolution=1280X720 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 537600 537600 537600 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=1440X810 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 537600 537600 537600 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=-1X-1 -NV_FPSLIMIT 0 0 30 -NV_MAX_CORES 4 4 4 -NV_MIN_CORES 4 4 2 -NV_CPUQUIET_GOV 1 1 1 -NV_DISPOFF_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 1100000 1100000 -NV_DISPOFF_FREQ 1100000 358400 358400 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 537600 537600 537600 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_MAP 80/120/150/200/255 80/120/150/200/255 80/120/150/200/255 -NV_ECO_MAX_FREQ 2200000 2200000 2200000 -NV_ECO_MAX_GPU_FREQ 800000 800000 800000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 10 10 10 -NV_ECO_THRESHYST 5 5 5 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 diff --git a/initfiles/power.loki_e_common.rc b/initfiles/power.loki_e_common.rc deleted file mode 100644 index 6438ca8..0000000 --- a/initfiles/power.loki_e_common.rc +++ /dev/null @@ -1,106 +0,0 @@ -# FORMAT: -# panelresolution=[xres]X[yres], such as panelresolution=1280X720 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# panelresolution=[xres]X[yres], such as panelresolution=1920X1080 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# ...... -# ...... -# panelresolution=[xres]X[yres], such as panelresolution=1920X1200 -# powernode1 maxperf optimized maxbatterylife -# powernode2 maxperf optimized maxbatterylife -# ...... -# powernoden maxperf optimized maxbatterylife -# -# NOTES: -# The panelresolution is the lcd panel resolution. -# No space should exist in panelresolution=[xres]X[yres]. -# panelresolution=720X1280 equals with panelresolution=1280X720. -# For panelresolution=-1X-1, it should be the last set of power settings in this file. -# When your panel resolution is found in this file, -# it will use the set of power settings followed by your panel resolution. -# When your panel resolution is not found in this file, it will use the default power settings. -# The power settings followed by panelresolution=-1X-1 is the default power settings. -# powernode is the sysfs or variable we need to write and it is followed by three ints. -# maxperf, optimized, maxbatterylife are the three ints for different power modes. -# -# Default power mode: can be set to 0, 1, or 2 -NV_DEFAULT_MODE 0 -panelresolution=1280X720 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_FAN_STATE_CAP 4 4 4 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 5 5 5 -NV_ECO_THRESHYST 5 5 5 -NV_ECO_CPU_CORE_CAP 2 2 2 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=1440X810 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_FAN_STATE_CAP 4 4 4 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 5 5 5 -NV_ECO_THRESHYST 5 5 5 -NV_ECO_CPU_CORE_CAP 2 2 2 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 -panelresolution=-1X-1 -NV_FPSLIMIT 0 0 0 -NV_MAX_CORES 0 0 0 -NV_MIN_CORES 2 2 2 -NV_MAX_FREQ 0 0 0 -NV_MIN_FREQ 1100000 0 0 -NV_MAX_GPU_FREQ 0 0 0 -NV_MIN_GPU_FREQ 0 0 0 -NV_APM_CPU_BOOST 5 0 0 -NV_APM_GPU_BOOST 5 0 0 -NV_APM_FRT_BOOST 5 0 0 -NV_APM_FRT_MIN 20 15 15 -NV_APM_LOADAPPFRT 0 0 0 -NV_PBC_SYSPOWER_CAP 15000 11000 8500 -NV_PBC_BATCURRENT_CAP 5000 5000 4100 -NV_FAN_STATE_MAP 80/110/150/200/255 80/110/150/200/255 80/110/150/200/255 -NV_FAN_STATE_CAP 4 4 4 -NV_FAN_STATE_CAP 4 4 4 -NV_ECO_MAX_FREQ 1400000 1400000 1400000 -NV_ECO_MAX_GPU_FREQ 700000 700000 700000 -NV_ECO_PBC_LIMIT 8500 8500 8500 -NV_ECO_THRESHOLD 5 5 5 -NV_ECO_THRESHYST 5 5 5 -NV_ECO_CPU_CORE_CAP 2 2 2 -/sys/devices/platform/host1x/tegradc.0/smartdimmer/aggressiveness 27 27 29 diff --git a/keylayout/Android.mk b/keylayout/Android.mk index 2c78ea0..5584262 100644 --- a/keylayout/Android.mk +++ b/keylayout/Android.mk @@ -23,12 +23,3 @@ LOCAL_MODULE_CLASS := ETC LOCAL_VENDOR_MODULE := true LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/usr/keylayout include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := gpio-keys-loki.kl -LOCAL_SRC_FILES := gpio-keys-loki.kl -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/usr/keylayout -include $(BUILD_PREBUILT) diff --git a/keylayout/gpio-keys-loki.kl b/keylayout/gpio-keys-loki.kl deleted file mode 100644 index 9bc6891..0000000 --- a/keylayout/gpio-keys-loki.kl +++ /dev/null @@ -1,4 +0,0 @@ -key 116 POWER -key 115 VOLUME_UP -key 114 VOLUME_DOWN - diff --git a/lineage.dependencies b/lineage.dependencies index 4040ade..845fce2 100644 --- a/lineage.dependencies +++ b/lineage.dependencies @@ -37,20 +37,8 @@ "target_path": "hardware/nvidia/light" }, { - "repository": "android_hardware_nvidia_platform_t210_foster", - "target_path": "hardware/nvidia/platform/t210/foster" - }, - { - "repository": "android_hardware_nvidia_platform_t210_jetson", - "target_path": "hardware/nvidia/platform/t210/jetson" - }, - { - "repository": "android_hardware_nvidia_platform_t210b01_darcy", - "target_path": "hardware/nvidia/platform/t210b01/darcy" - }, - { - "repository": "android_hardware_nvidia_platform_t210b01_sif", - "target_path": "hardware/nvidia/platform/t210b01/sif" + "repository": "android_hardware_nvidia_platform_t210_icosa", + "target_path": "hardware/nvidia/platform/t210/icosa" }, { "repository": "android_hardware_nvidia_power", diff --git a/lineage.mk b/lineage.mk index e9484df..3bbf0f3 100644 --- a/lineage.mk +++ b/lineage.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2020 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ TARGET_SCREEN_HEIGHT := 1920 TARGET_SCREEN_WIDTH := 1080 # Unified device support -TARGET_INIT_VENDOR_LIB := //device/nvidia/foster:libinit_foster +TARGET_INIT_VENDOR_LIB := //device/nintendo/nx:libinit_nx PRODUCT_VENDOR_PROPERTY_BLACKLIST := \ ro.product.vendor.device \ ro.product.vendor.model \ diff --git a/lineage_foster.mk b/lineage_nx.mk similarity index 51% rename from lineage_foster.mk rename to lineage_nx.mk index 10142b8..5ff02bd 100644 --- a/lineage_foster.mk +++ b/lineage_nx.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,12 +12,24 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Inherit some common lineage stuff. + +# Inherit some common LineageOS stuff. $(call inherit-product, vendor/lineage/config/common_full_tv.mk) -# Inherit device configuration for foster. -include device/nvidia/foster/lineage.mk -$(call inherit-product, device/nvidia/foster/full_foster.mk) +# Inherit NX-specific LineageOS additions. +include device/nintendo/nx/lineage.mk -PRODUCT_NAME := lineage_foster -PRODUCT_DEVICE := foster +# Inherit some common AOSP stuff. +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) + +# Inherit some common ATV stuff. +$(call inherit-product, device/google/atv/products/atv_base.mk) + +# Inherit device configuration for nx. +$(call inherit-product, device/nintendo/nx/device.mk) + +PRODUCT_NAME := lineage_nx +PRODUCT_DEVICE := nx +PRODUCT_BRAND := Nintendo +PRODUCT_MANUFACTURER := Nintendo +PRODUCT_MODEL := Switch diff --git a/media/Android.mk b/media/Android.mk index 8078cee..79f57ae 100644 --- a/media/Android.mk +++ b/media/Android.mk @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -LOCAL_PATH:= $(call my-dir) +LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := audio_effects.xml @@ -30,76 +30,6 @@ LOCAL_SRC_FILES := audio_policy_configuration.xml LOCAL_VENDOR_MODULE := true include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := audio_policy_configuration_dragon.xml -LOCAL_MODULE_STEM := audio_policy_configuration.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := audio_policy_configuration_loki.xml -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := audio/sku_dragon -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := audio_policy_configuration_loki.xml -LOCAL_MODULE_STEM := audio_policy_configuration.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := audio_policy_configuration_loki.xml -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := audio/sku_loki -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := audio_policy_configuration_nx.xml -LOCAL_MODULE_STEM := audio_policy_configuration.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := audio_policy_configuration_nx.xml -LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := audio/sku_nx -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := dragon_nvaudio_conf.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := dragon_nvaudio_conf.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nx_nvaudio_conf.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := nx_nvaudio_conf.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := loki_e_base_nvaudio_conf.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := loki_nvaudio_conf.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := loki_e_lte_nvaudio_conf.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := loki_nvaudio_conf.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := loki_e_wifi_nvaudio_conf.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := loki_nvaudio_conf.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := nvaudio_conf.xml LOCAL_MODULE_TAGS := optional @@ -112,11 +42,7 @@ include $(CLEAR_VARS) LOCAL_MODULE := media_codecs.xml LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC -ifneq (,$(findstring nvmm,$(TARGET_TEGRA_OMX))) LOCAL_SRC_FILES := media_codecs.xml -else -LOCAL_SRC_FILES := media_codecs_sw.xml -endif LOCAL_ODM_MODULE := true include $(BUILD_PREBUILT) diff --git a/media/audio_policy_configuration.xml b/media/audio_policy_configuration.xml index 3bbc2a8..f5580c0 100644 --- a/media/audio_policy_configuration.xml +++ b/media/audio_policy_configuration.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - + @@ -47,52 +47,62 @@ - DummySpeaker - Built-In Mic + Speaker - DummySpeaker + Speaker - - + + - + + + + + + + sources="BT SCO Headset Mic,Digital Dock HS Mic,AudioIP-In"/> - + - + - + - + - + - - + + diff --git a/media/audio_policy_configuration_loki.xml b/media/audio_policy_configuration_loki.xml deleted file mode 100644 index a2017cf..0000000 --- a/media/audio_policy_configuration_loki.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - - - - Speaker - Built-In Mic - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/audio_policy_configuration_nx.xml b/media/audio_policy_configuration_nx.xml deleted file mode 100644 index 20fc4d1..0000000 --- a/media/audio_policy_configuration_nx.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - Speaker - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/dragon_nvaudio_conf.xml b/media/dragon_nvaudio_conf.xml deleted file mode 100644 index 56b3b39..0000000 --- a/media/dragon_nvaudio_conf.xml +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/loki_nvaudio_conf.xml b/media/loki_nvaudio_conf.xml deleted file mode 100644 index b4810d3..0000000 --- a/media/loki_nvaudio_conf.xml +++ /dev/null @@ -1,790 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_sw.xml b/media/media_codecs_sw.xml deleted file mode 100644 index 2b00568..0000000 --- a/media/media_codecs_sw.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - diff --git a/media/nvaudio_conf.xml b/media/nvaudio_conf.xml index 0b4e2cc..765e113 100644 --- a/media/nvaudio_conf.xml +++ b/media/nvaudio_conf.xml @@ -1,329 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + avail_min="1" + devices="hdmi"/> - - + + - - + - - - - - - - - - - - + avail_min="1" + devices="speaker|headphone|headset"/> - + start_threshold="255" + stop_threshold="4294967295" + silence_threshold="0" + silence_size="4294967295" + avail_min="1" + devices="speaker|headphone|headset"/> - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/media/nx_nvaudio_conf.xml b/media/nx_nvaudio_conf.xml deleted file mode 100644 index 765e113..0000000 --- a/media/nx_nvaudio_conf.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nvphs/Android.mk b/nvphs/Android.mk index f4759ba..8ef83d2 100644 --- a/nvphs/Android.mk +++ b/nvphs/Android.mk @@ -19,6 +19,6 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := nvphsd.conf LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := nvphsd.foster.conf +LOCAL_SRC_FILES := nvphsd.nx.conf LOCAL_ODM_MODULE := true include $(BUILD_PREBUILT) diff --git a/nvphs/nvphsd.foster.conf b/nvphs/nvphsd.nx.conf similarity index 100% rename from nvphs/nvphsd.foster.conf rename to nvphs/nvphsd.nx.conf diff --git a/releasetools/releasetools.py b/releasetools/releasetools.py index 121061a..289271b 100644 --- a/releasetools/releasetools.py +++ b/releasetools/releasetools.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ # limitations under the License. # -""" Custom OTA commands for foster devices """ +""" Custom OTA commands for nx devices """ import common import re @@ -33,20 +33,9 @@ DTSFILENAME_PATH = '/proc/device-tree/nvidia,dtsfilename' MODE_UNFUSED = '0x00000000\n' MODE_FUSED = '0x00000001\n' -FOSTER_E_PUBLIC_KEY = '0x0256ff42f60a5159edad8029772f1d5f848477fb9d33cd2b2e8f0b4d85c8d78a\n' -FOSTER_E_BL_VERSION = '32.00.2019.50-t210-d30cbd07' - -LOKI_E_PUBLIC_KEY = '0x4261f1714a7d71c7e810c9b33769878128cc54ae3c5736646496104b643aed09\n' -LOKI_E_BL_VERSION = '24.00.2015.42-t210-39c6cadc' # the last released signed bootloader - -DARCY_PUBLIC_KEY = '0x435a807e9187c53eae50e2dcab521e0ea41458a9b18d31db553ceb711c21fb52\n' -MDARCY_PUBLIC_KEY = '0xc5ae4221f0f4f5113c0271b3519cac7f0bcb0cb860381a4648e9eee350e97f89\n' -SIF_PUBLIC_KEY = '0x26646fe375375e39410853f75e59e2c4ca8440926fa37604a280b5c8a25a2c3e\n' -DARCY_BL_VERSION = '32.00.2019.50-t210-69ebfcbe' - NX_ERISTA_PUBLIC_KEY = '0x7e39e100d1135918ceedfe5d66e66496eed21ecb3486d72095cc0b7c60b8bd4f\n' NX_MARIKO_PUBLIC_KEY = '0x72b9db116837289e5bfa57bb1c69e2c8fa9697151aa975066381e7efa19fb0c9\n' -NX_BL_VERSION = '2020.04-03755-gf4d532d00d-rev3' +NX_BL_VERSION = '2020.04-03755-gf4d532d00d-rev3' def FullOTA_PostValidate(info): if 'INSTALL/bin/resize2fs_static' in info.input_zip.namelist(): @@ -85,138 +74,6 @@ def AddBootloaderFlash(info, input_zip): info.script.AppendExtra(' read_file("' + FUSED_PATH + '") == "' + MODE_FUSED + '",') info.script.AppendExtra(' (') - """ Fused foster_e or foster_e_hdd """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "foster_e" || getprop("ro.hardware") == "foster_e_hdd",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + FOSTER_E_PUBLIC_KEY + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused " + getprop(ro.hardware));') - info.script.AppendExtra(' package_extract_file("firmware-update/" + getprop(ro.hardware) + ".blob", "' + STAGING_PART + '");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for " + getprop("ro.hardware") + " detected.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Fused darcy """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "darcy",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' is_substring("tegra210b01", read_file("' + DTSFILENAME_PATH + '")),') - """ mdarcy """ - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused mdarcy");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + MDARCY_PUBLIC_KEY + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused mdarcy");') - info.script.AppendExtra(' package_extract_file("firmware-update/mdarcy.blob", "' + STAGING_PART + '");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for mdarcy detected.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/mdarcy.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");') - info.script.AppendExtra(' ),') - """ darcy """ - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused darcy");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + DARCY_PUBLIC_KEY + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused darcy");') - info.script.AppendExtra(' package_extract_file("firmware-update/darcy.blob", "' + STAGING_PART + '");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for darcy detected.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Fused loki_e """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "loki_e_base" || getprop("ro.hardware") == "loki_e_lte" || getprop("ro.hardware") == "loki_e_wifi",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + LOKI_E_PUBLIC_KEY + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Fused " + getprop(ro.hardware) + " is not currently supported.");') - info.script.AppendExtra(' ui_print("There has not been a signed bootloader update since rel-24.");') - info.script.AppendExtra(' ui_print("The newer kernel will not boot on the old bootloader.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for " + getprop("ro.hardware") + " detected.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Fused jetson """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "jetson_cv",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("You fused your Jetson TX1?!? Seriously, why would you do this?");') - info.script.AppendExtra(' ui_print("You are on your own. The LineageOS Maintainer does not want to hear about this.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - """ Fused nx """ info.script.AppendExtra(' ifelse(') info.script.AppendExtra(' getprop("ro.hardware") == "nx",') @@ -230,8 +87,9 @@ def AddBootloaderFlash(info, input_zip): info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + NX_ERISTA_PUBLIC_KEY + '" || read_file("' + PUBLIC_KEY_PATH + '") == "' + NX_MARIKO_PUBLIC_KEY + '",') info.script.AppendExtra(' (') info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused " + getprop(ro.hardware));') - info.script.AppendExtra(' package_extract_file("firmware-update/nx_bl31.bin", "' + NX_SD + 'bl31.bin");') - info.script.AppendExtra(' package_extract_file("firmware-update/nx_u-boot-dtb.bin", "' + NX_SD + 'bl33.bin");') + info.script.AppendExtra(' package_extract_file("firmware-update/coreboot.rom", "' + NX_SD + 'coreboot.rom");') + info.script.AppendExtra(' package_extract_file("firmware-update/common.scr", "' + NX_SD + 'common.scr");') + info.script.AppendExtra(' package_extract_file("firmware-update/" + getprop(ro.hardware) + ".scr", "' + NX_SD + 'boot.scr");') info.script.AppendExtra(' ),') info.script.AppendExtra(' (') info.script.AppendExtra(' ui_print("Unknown public key for nx detected.");') @@ -240,34 +98,7 @@ def AddBootloaderFlash(info, input_zip): info.script.AppendExtra(' )') info.script.AppendExtra(' )') info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/nx.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Fused sif """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "sif",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for fused sif");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' read_file("' + PUBLIC_KEY_PATH + '") == "' + SIF_PUBLIC_KEY + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Flashing updated bootloader for fused sif");') - info.script.AppendExtra(' package_extract_file("firmware-update/sif.blob", "' + STAGING_PART + '");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Unknown public key " + read_file("' + PUBLIC_KEY_PATH + '") + " for sif detected.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/sif.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");') + info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') info.script.AppendExtra(' )') info.script.AppendExtra(' );') @@ -276,104 +107,6 @@ def AddBootloaderFlash(info, input_zip): """ If not fused """ info.script.AppendExtra(' (') - """ Unfused foster_e or foster_e_hdd """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "foster_e" || getprop("ro.hardware") == "foster_e_hdd",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("This is an unfused foster_e or foster_e_hdd.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Unfused darcy """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "darcy",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' is_substring("tegra210b01", read_file("' + DTSFILENAME_PATH + '")),') - """ mdarcy """ - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused mdarcy");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("This is an unfused mdarcy.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/mdarcy.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");') - info.script.AppendExtra(' ),') - """ darcy """ - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused darcy");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("This is an unfused darcy.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Unfused loki_e """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "loki_e_base" || getprop("ro.hardware") == "loki_e_lte" || getprop("ro.hardware") == "loki_e_wifi",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("This is an unfused " + getprop(ro.hardware) + ".");') - info.script.AppendExtra(' ui_print("Updating the bootloader is not currently supported.");') - info.script.AppendExtra(' ui_print("There has not been a working bootloader since rel-29.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Unfused jetson """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "jetson_cv",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + FOSTER_E_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for " + getprop(ro.hardware));') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Flashing updated bootloader for unfused Jetson TX1");') - info.script.AppendExtra(' package_extract_file("firmware-update/jetson_cv.blob", "' + STAGING_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - """ Unfused nx """ info.script.AppendExtra(' ifelse(') info.script.AppendExtra(' getprop("ro.hardware") == "nx",') @@ -389,27 +122,7 @@ def AddBootloaderFlash(info, input_zip): info.script.AppendExtra(' abort();') info.script.AppendExtra(' )') info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/nx.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - - """ Unfused sif """ - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.hardware") == "sif",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ifelse(') - info.script.AppendExtra(' getprop("ro.bootloader") == "' + DARCY_BL_VERSION + '",') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("Correct bootloader already installed for unfused sif");') - info.script.AppendExtra(' ),') - info.script.AppendExtra(' (') - info.script.AppendExtra(' ui_print("This is an unfused sif.");') - info.script.AppendExtra(' ui_print("This is not supported. Please report to LineageOS Maintainer.");') - info.script.AppendExtra(' abort();') - info.script.AppendExtra(' )') - info.script.AppendExtra(' );') - info.script.AppendExtra(' package_extract_file("install/sif.dtb.img", "' + DTB_PART + '");') - info.script.AppendExtra(' package_extract_file("install/vbmeta_skip.img", "' + VBMETA_PART + '");') + info.script.AppendExtra(' package_extract_file("install/" + tegra_get_dtbname(), "' + DTB_PART + '");') info.script.AppendExtra(' )') info.script.AppendExtra(' );') diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/rro_overlays/WifiOverlay/AndroidManifest.xml index 3787081..22f9281 100644 --- a/rro_overlays/WifiOverlay/AndroidManifest.xml +++ b/rro_overlays/WifiOverlay/AndroidManifest.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - + diff --git a/thermal/Android.mk b/thermal/Android.mk index 18b16c3..07c87c6 100644 --- a/thermal/Android.mk +++ b/thermal/Android.mk @@ -12,100 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.batuu.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.porg.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.darcy.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.foster_e.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.foster_e_hdd.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.jetson_cv.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.jetson_e.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.loki_e_lte.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.loki_e.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.loki_e_wifi.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.loki_e.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) +LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := thermalhal.nx.xml LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.porg.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.porg.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.porg_sd.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.porg.xml -LOCAL_VENDOR_MODULE := true -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := thermalhal.sif.xml -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := thermalhal.darcy.xml +LOCAL_SRC_FILES := thermalhal.nx.xml LOCAL_VENDOR_MODULE := true include $(BUILD_PREBUILT) diff --git a/thermal/thermalhal.loki_e.xml b/thermal/thermalhal.loki_e.xml deleted file mode 100644 index a4cce0b..0000000 --- a/thermal/thermalhal.loki_e.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/thermal/thermalhal.darcy.xml b/thermal/thermalhal.nx.xml similarity index 100% rename from thermal/thermalhal.darcy.xml rename to thermal/thermalhal.nx.xml diff --git a/thermal/thermalhal.porg.xml b/thermal/thermalhal.porg.xml deleted file mode 100644 index a6e319c..0000000 --- a/thermal/thermalhal.porg.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - diff --git a/twrp/twrp.mk b/twrp/twrp.mk index 0a0d1c5..82df074 100644 --- a/twrp/twrp.mk +++ b/twrp/twrp.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ TARGET_KERNEL_CONFIG := tegra_android_recovery_defconfig BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive BOARD_RAMDISK_USE_LZMA := true -PRODUCT_COPY_FILES += device/nvidia/foster/twrp/twrp.fstab:recovery/root/system/etc/twrp.fstab +PRODUCT_COPY_FILES += device/nintendo/nx/twrp/twrp.fstab:recovery/root/system/etc/twrp.fstab TW_THEME := landscape_hdpi TW_NO_SCREEN_TIMEOUT := true diff --git a/twrp_foster.mk b/twrp_foster.mk deleted file mode 100644 index 143c1bc..0000000 --- a/twrp_foster.mk +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2021 The LineageOS 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. - -# Inherit some common twrp stuff. -$(call inherit-product, vendor/twrp/config/common.mk) - -# Inherit device configuration for foster. -include device/nvidia/foster/lineage.mk -$(call inherit-product, device/nvidia/foster/full_foster.mk) - -PRODUCT_NAME := twrp_foster -PRODUCT_DEVICE := foster diff --git a/full_foster.mk b/twrp_nx.mk similarity index 57% rename from full_foster.mk rename to twrp_nx.mk index dce5a86..5ddb1a3 100644 --- a/full_foster.mk +++ b/twrp_nx.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2018 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,14 +12,23 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Inherit from those products. Most specific first. -$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -$(call inherit-product, device/google/atv/products/atv_base.mk) -$(call inherit-product, device/nvidia/foster/device.mk) +# Inherit some common TWRP stuff. +$(call inherit-product, vendor/twrp/config/common.mk) -# Set those variables here to overwrite the inherited values. -PRODUCT_NAME := full_foster -PRODUCT_DEVICE := foster -PRODUCT_BRAND := NVIDIA -PRODUCT_MANUFACTURER := NVIDIA -PRODUCT_MODEL := SHIELD Android TV +# Inherit full configuration for nx. +include device/nintendo/nx/lineage.mk + +# Inherit some common AOSP stuff. +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) + +# Inherit some common ATV stuff. +$(call inherit-product, device/google/atv/products/atv_base.mk) + +# Inherit device configuration for nx. +$(call inherit-product, device/nintendo/nx/device.mk) + +PRODUCT_NAME := twrp_nx +PRODUCT_DEVICE := nx +PRODUCT_BRAND := Nintendo +PRODUCT_MANUFACTURER := Nintendo +PRODUCT_MODEL := Switch diff --git a/vendor/bcm_firmware/Android.mk b/vendor/bcm_firmware/Android.mk index 87422b9..178f9bd 100644 --- a/vendor/bcm_firmware/Android.mk +++ b/vendor/bcm_firmware/Android.mk @@ -13,130 +13,11 @@ # limitations under the License. LOCAL_PATH := $(call my-dir) -FOSTER_BCM_PATH := ../../../../../vendor/nvidia/foster/bcm_firmware - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_darcy_a00 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_darcy_a00.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_foster_e_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_foster_e_4354.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_foster_e_antenna_tuned_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_foster_e_antenna_tuned_4354.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_loki_e_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_loki_e_4354.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_loki_e_antenna_tuned_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_loki_e_antenna_tuned_4354.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_jetsonE_cv_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/nvram_jetsonE_cv_4354.txt -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := nvram_smaug_4354 -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/bcmdhd.cal -LOCAL_MODULE_SUFFIX := .txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := brcmfmac4356-pcie.txt -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4356/brcmfmac4356-pcie.txt -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := bcmdhd_clm_darcy -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/darcy.clm_blob -LOCAL_MODULE_SUFFIX := .blob -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := bcmdhd_clm_foster -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/foster.clm_blob -LOCAL_MODULE_SUFFIX := .blob -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := bcmdhd_clm_loki -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/foster.clm_blob -LOCAL_MODULE_SUFFIX := .blob -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := bcmdhd_clm_darcy_flynn-hp -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4354/flynn-hp.clm_blob -LOCAL_MODULE_SUFFIX := .blob -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_OWNER := nvidia -include $(BUILD_NVIDIA_PREBUILT) +NX_BCM_PATH := ../../../../../vendor/nintendo/nx/bcm_firmware include $(CLEAR_VARS) LOCAL_MODULE := brcmfmac4356-pcie.clm_blob -LOCAL_SRC_FILES := $(FOSTER_BCM_PATH)/bcm4356/brcmfmac4356-pcie.clm_blob +LOCAL_SRC_FILES := $(NX_BCM_PATH)/bcm4356/brcmfmac4356-pcie.clm_blob LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware LOCAL_MODULE_TAGS := optional diff --git a/vendor/bcm_firmware/bcm.mk b/vendor/bcm_firmware/bcm.mk index 99411ef..2ab0746 100644 --- a/vendor/bcm_firmware/bcm.mk +++ b/vendor/bcm_firmware/bcm.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2020 The LineageOS Project +# Copyright (C) 2022 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,15 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -LOCAL_PATH := device/nvidia/foster/vendor/bcm_firmware +LOCAL_PATH := device/nintendo/nx/vendor/bcm_firmware COMMON_BCM_PATH := device/nvidia/tegra-common/vendor/bcm_firmware -$(call inherit-product, $(COMMON_BCM_PATH)/bcm4354/device-bcm.mk) -$(call inherit-product, $(LOCAL_PATH)/clm.mk) -$(call inherit-product, $(LOCAL_PATH)/nvram.mk) - PRODUCT_PACKAGES += \ - bcm4350 \ - BCM4354A2-13d3-3488 \ bcm4356 \ - brcmfmac4356-pcie + brcmfmac4356-pcie \ + brcmfmac4356-pcie.clm_blob diff --git a/vendor/bcm_firmware/clm.mk b/vendor/bcm_firmware/clm.mk deleted file mode 100644 index ffc7856..0000000 --- a/vendor/bcm_firmware/clm.mk +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2020 The LineageOS 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 += \ - bcmdhd_clm_darcy \ - bcmdhd_clm_darcy_flynn-hp \ - bcmdhd_clm_foster \ - bcmdhd_clm_loki \ - brcmfmac4356-pcie.clm_blob diff --git a/vendor/bcm_firmware/nvram.mk b/vendor/bcm_firmware/nvram.mk deleted file mode 100644 index 3f78a8b..0000000 --- a/vendor/bcm_firmware/nvram.mk +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2020 The LineageOS 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 += \ - nvram_darcy_a00 \ - nvram_foster_e_4354 \ - nvram_foster_e_antenna_tuned_4354 \ - nvram_loki_e_4354 \ - nvram_loki_e_antenna_tuned_4354 \ - nvram_jetsonE_cv_4354 \ - nvram_smaug_4354 \ - brcmfmac4356-pcie.txt diff --git a/vendor/foster-vendor.mk b/vendor/foster-vendor.mk deleted file mode 100644 index 5a4833e..0000000 --- a/vendor/foster-vendor.mk +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (C) 2020 The LineageOS 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. - -$(call inherit-product, device/nvidia/t210-common/vendor/t210.mk) -$(call inherit-product, device/nvidia/tegra-common/vendor/common-by-flags.mk) -$(call inherit-product, device/nvidia/foster/vendor/bcm_firmware/bcm.mk) -$(call inherit-product, device/nvidia/shield-common/vendor/shield-by-flags.mk) - -PRODUCT_PACKAGES += public.libraries diff --git a/initfiles/init.recovery.dragon.rc b/vendor/nx-vendor.mk similarity index 69% rename from initfiles/init.recovery.dragon.rc rename to vendor/nx-vendor.mk index 254b236..94ceb42 100644 --- a/initfiles/init.recovery.dragon.rc +++ b/vendor/nx-vendor.mk @@ -12,10 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import init.recovery.foster_common.rc +include device/nvidia/t210-common/vendor/t210.mk +include device/nvidia/tegra-common/vendor/common-by-flags.mk +include device/nintendo/nx/vendor/bcm_firmware/bcm.mk +include device/nvidia/shield-common/vendor/shield-by-flags.mk -on post-fs - rm /dev/block/by-name/LNX - symlink /dev/block/by-name/KERN-A /dev/block/by-name/LNX - symlink /dev/block/by-name/recovery /dev/block/by-name/SOS - symlink /dev/block/by-name/VNR /dev/block/by-name/vendor +PRODUCT_PACKAGES += public.libraries