赞
踩
device/rockchip/rk356x/rk3566_r/parameter.txtFIRMWARE_VER: 11.0MACHINE_MODEL: rk3566_rMACHINE_ID: 007MANUFACTURER: rockchipMAGIC: 0x5041524BATAG: 0x00200800MACHINE: rk3566_rCHECK_MASK: 0x80PWR_HLD: 0,0,A,0,1TYPE: GPTCMDLINE:mtdparts=rk29xxnand:0x00002000@0x00002000(security),0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00002000@0x0000a000(dtbo),0x00000800@0x0000c000(vbmeta),0x00014000@0x0000c800(boot),0x00030000@0x00020800(recovery),0x000c0000@0x00050800(backup),0x000c0000@0x00110800(cache),0x00008000@0x001d0800(metadata),0x00000800@0x001d8800(baseparameter),0x00614000@0x001d9000(super),0x00614000@0x007ed000(device),-@0x00e12000(userdata:grow)//红色部分代表新增的块设备
- diff --git a/rk3566_r/recovery.fstab b/rk3566_r/recovery.fstab
- old mode 100644
- new mode 100755
- index 0856791..28c47f7
- --- a/rk3566_r/recovery.fstab
- +++ b/rk3566_r/recovery.fstab
- @@ -8,6 +8,7 @@
- /dev/block/by-name/product /product ext4 defaults defaults
- /dev/block/by-name/system_ext /system_ext ext4 defaults defaults
- /dev/block/by-name/cache /cache ext4 defaults defaults
- +/dev/block/by-name/device /device ext4 defaults defaults
- /dev/block/by-name/metadata /metadata ext4 defaults defaults
- /dev/block/by-name/userdata /data f2fs defaults defaults
- /dev/block/by-name/cust /cust ext4 defaults defaults
- diff --git a/install/include/install/wipe_data.h b/install/include/install/wipe_data.h
- old mode 100644
- new mode 100755
- index c177f59..15cd951
- --- a/install/include/install/wipe_data.h
- +++ b/install/include/install/wipe_data.h
- @@ -30,5 +30,6 @@ bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm);
- bool WipeData(Device* device, bool convert_fbe);
-
-
- void SureMetadataMount();
- +void SureDeviceMount();
- void WipeFrp();
- int ResizeData(Device* device);
- diff --git a/install/wipe_data.cpp b/install/wipe_data.cpp
- old mode 100644
- new mode 100755
- index a16e62c..bbc62dc
- --- a/install/wipe_data.cpp
- +++ b/install/wipe_data.cpp
- @@ -36,6 +36,7 @@
- constexpr const char* CACHE_ROOT = "/cache";
- constexpr const char* DATA_ROOT = "/data";
- constexpr const char* METADATA_ROOT = "/metadata";
- +constexpr const char* DEVICE_ROOT = "/device";
-
-
- /**
- * reset hdmi after restore factory.
- @@ -164,6 +165,15 @@ bool WipeData(Device* device, bool convert_fbe) {
- return success;
- }
-
-
- +void SureDeviceMount() {
- + if (ensure_path_mounted(DEVICE_ROOT)) {
- + printf("mount device fail,so formate...\n");
- + reset_tmplog_offset();
- + format_volume(DEVICE_ROOT);
- + ensure_path_mounted(DEVICE_ROOT);
- + }
- +}
- +
- void SureMetadataMount() {
- if (ensure_path_mounted(METADATA_ROOT)) {
- printf("mount metadata fail,so formate...\n");
- diff --git a/recovery.cpp b/recovery.cpp
- old mode 100644
- new mode 100755
- index eda573b..4f309a1
- --- a/recovery.cpp
- +++ b/recovery.cpp
- @@ -1170,6 +1170,8 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
- device->StartRecovery();
-
-
- SureMetadataMount();
- +
- + SureDeviceMount();
-
-
- printf("Command:");
- for (const auto& arg : args) {
- .....

- diff --git a/BoardConfig.mk b/BoardConfig.mk
- index d642ffd..beb78c9 100755
- --- a/BoardConfig.mk
- +++ b/BoardConfig.mk
- @@ -132,6 +132,9 @@ BOARD_ODMIMAGE_FILE_SYSTEM_TYPE ?= ext4
- TARGET_COPY_OUT_VENDOR := vendor
- BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE ?= ext4
-
-
- +#test for fs_config
- +TARGET_FS_CONFIG_GEN += device/rockchip/common/config.fs
- +
- # default.prop & build.prop split
- BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED ?= true
- # Copyright (C) 2018 The Android Open Source Project
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- #
-
-
- # This file is used to define the properties of the filesystem
- # images generated by build tools (mkbootfs and mkyaffs2image) and
- # by the device side of adb.
-
-
- [AID_VENDOR_NEW_SERVICE]
- value: 2900
-
-
- [AID_VENDOR_NEW_SERVICE_TWO]
- value:2902
-
-
- [vendor/bin/service1]
- mode: 0755
- user: AID_SYSTEM
- group: AID_VENDOR_NEW_SERVICE
- caps: CHOWN DAC_OVERRIDE
-
-
- [device/]
- mode: 0777
- user: AID_SYSTEM
- group: AID_SYSTEM
- caps: 0
-
-
- [device/f7s/]
- mode: 0777
- user: AID_SYSTEM
- group: AID_SYSTEM
- caps: 0

- diff --git a/recovery/etc/init.rc b/recovery/etc/init.rc
- old mode 100644
- new mode 100755
- index 2ed0ea6..7fb4d09
- --- a/recovery/etc/init.rc
- +++ b/recovery/etc/init.rc
- @@ -32,6 +32,7 @@ on init
- mkdir /data
- mkdir /cache
- mkdir /sideload
- + mkdir /device
- mount tmpfs tmpfs /tmp
-
-
- chown root shell /tmp
- diff --git a/scripts/fstab_tools/fstab.in b/scripts/fstab_tools/fstab.in
- index 10c3d2e..9a1d1e0 100755
- --- a/scripts/fstab_tools/fstab.in
- +++ b/scripts/fstab_tools/fstab.in
- @@ -10,6 +10,7 @@ ${_block_prefix}system_ext /system_ext ext4 ro,barrier=1 ${_flags},first_stage_
- /dev/block/by-name/metadata /metadata ext4 nodev,noatime,nosuid,discard,sync wait,formattable,first_stage_mount,check
- /dev/block/by-name/misc /misc emmc defaults defaults
- /dev/block/by-name/cache /cache ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,check
- +/dev/block/by-name/device /device ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,check
-
-
- /devices/platform/*usb* auto vfat defaults voldmanaged=usb:auto

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。