Closed blobb999 closed 3 years ago
Hello,
usually you do not have to edit the scatter_file and SP Flash Tool does not create one for you. Just use the scatter_file for your ROM (included in the firmware) and open that one with SP Flash Tool.
I did this for doing the Backup itself. I have successful backed up 44 Partition from Rom_0 tilll Rom_42. To restore this Backup, the original scatter File is pointing to the original Firmware Files and would not restore the created backup with Rom_0 till Rom_44. How to progress a proper restore?
I put the scatter file in the same directory with the backed up partitions and renamed the backup-files themself. So I did not touch the scatter file.
Maybe your scatter file is wrong? The scatter file I used for my BV9900 Pro has an md5sum of 5c48e4b3ccadfe29c92d23e789175a55
Yes the scatter file is pointing correctly to each ROM. Checksums for the scatter files matter? this would be new for me. Without the checksum.ini, checksums for the partition files are ignored. The backup creates 42 Partition files, the restore List is restoring only 24 of them. In the readback you see, which partition points to which file, preloader to ROM_0, recovery to ROM_2, misc to ROM_3 and so on... Its much easier imo to change one time the scatter file for any new backup instead of changing the 24 files names for every new backup. It is restoring the backup, but the device hangs like i explained in the inital issue post.
############################################################################################################ #
# ############################################################################################################
# ############################################################################################################
storage_type: EMMC description:
general: MTK_STORAGE_CFG info:
partition_index: SYS0 partition_name: preloader file_name: ROM_0 is_download: true type: SV5_BL_BIN linear_start_addr: 0x0 physical_start_addr: 0x0 partition_size: 0x80000 region: EMMC_BOOT1_BOOT2 storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: BOOTLOADERS is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS1 partition_name: pgpt file_name: ROM_1 is_download: false type: NORMAL_ROM linear_start_addr: 0x0 physical_start_addr: 0x0 partition_size: 0x8000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS2 partition_name: recovery file_name: ROM_2 is_download: true type: NORMAL_ROM linear_start_addr: 0x8000 physical_start_addr: 0x8000 partition_size: 0x2000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS3 partition_name: misc file_name: ROM_3 is_download: false type: NORMAL_ROM linear_start_addr: 0x2008000 physical_start_addr: 0x2008000 partition_size: 0x80000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS4 partition_name: para file_name: ROM_4 is_download: false type: NORMAL_ROM linear_start_addr: 0x2088000 physical_start_addr: 0x2088000 partition_size: 0x80000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS5 partition_name: expdb file_name: ROM_5 is_download: false type: NORMAL_ROM linear_start_addr: 0x2108000 physical_start_addr: 0x2108000 partition_size: 0x1400000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS6 partition_name: frp file_name: ROM_6 is_download: false type: NORMAL_ROM linear_start_addr: 0x3508000 physical_start_addr: 0x3508000 partition_size: 0x100000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS7 partition_name: vbmeta file_name: ROM_7 is_download: true type: NORMAL_ROM linear_start_addr: 0x3608000 physical_start_addr: 0x3608000 partition_size: 0x800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS8 partition_name: nvcfg file_name: ROM_8 is_download: false type: EXT4_IMG linear_start_addr: 0x3e08000 physical_start_addr: 0x3e08000 partition_size: 0x2000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS9 partition_name: nvdata file_name: ROM_9 is_download: false type: EXT4_IMG linear_start_addr: 0x5e08000 physical_start_addr: 0x5e08000 partition_size: 0x4000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS10 partition_name: metadata file_name: ROM_10 is_download: false type: NORMAL_ROM linear_start_addr: 0x9e08000 physical_start_addr: 0x9e08000 partition_size: 0x2000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS11 partition_name: persist file_name: ROM_11 is_download: false type: EXT4_IMG linear_start_addr: 0xbe08000 physical_start_addr: 0xbe08000 partition_size: 0x3000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS12 partition_name: protect1 file_name: ROM_12 is_download: false type: EXT4_IMG linear_start_addr: 0xee08000 physical_start_addr: 0xee08000 partition_size: 0x9f8000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS13 partition_name: protect2 file_name: ROM_13 is_download: false type: EXT4_IMG linear_start_addr: 0xf800000 physical_start_addr: 0xf800000 partition_size: 0x800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS14 partition_name: seccfg file_name: ROM_14 is_download: false type: NORMAL_ROM linear_start_addr: 0x10000000 physical_start_addr: 0x10000000 partition_size: 0x800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS15 partition_name: otp file_name: ROM_15 is_download: false type: NORMAL_ROM linear_start_addr: 0x10800000 physical_start_addr: 0x10800000 partition_size: 0x3000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS16 partition_name: sec1 file_name: ROM_16 is_download: false type: NORMAL_ROM linear_start_addr: 0x13800000 physical_start_addr: 0x13800000 partition_size: 0x200000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS17 partition_name: proinfo file_name: ROM_17 is_download: false type: NORMAL_ROM linear_start_addr: 0x13a00000 physical_start_addr: 0x13a00000 partition_size: 0x300000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS18 partition_name: nvram file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0x13d00000 physical_start_addr: 0x13d00000 partition_size: 0x4000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: BINREGION is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS19 partition_name: md1img file_name: ROM_19 is_download: true type: NORMAL_ROM linear_start_addr: 0x17d00000 physical_start_addr: 0x17d00000 partition_size: 0x9600000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS20 partition_name: boot_para file_name: ROM_20 is_download: false type: NORMAL_ROM linear_start_addr: 0x21300000 physical_start_addr: 0x21300000 partition_size: 0x1a00000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS21 partition_name: spmfw file_name: ROM_21 is_download: true type: NORMAL_ROM linear_start_addr: 0x22d00000 physical_start_addr: 0x22d00000 partition_size: 0x100000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS22 partition_name: audio_dsp file_name: ROM_22 is_download: true type: NORMAL_ROM linear_start_addr: 0x22e00000 physical_start_addr: 0x22e00000 partition_size: 0x400000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS23 partition_name: scp1 file_name: ROM_23 is_download: true type: NORMAL_ROM linear_start_addr: 0x23200000 physical_start_addr: 0x23200000 partition_size: 0x600000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS24 partition_name: scp2 file_name: ROM_24 is_download: true type: NORMAL_ROM linear_start_addr: 0x23800000 physical_start_addr: 0x23800000 partition_size: 0x600000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS25 partition_name: sspm_1 file_name: ROM_25 is_download: true type: NORMAL_ROM linear_start_addr: 0x23e00000 physical_start_addr: 0x23e00000 partition_size: 0x100000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS26 partition_name: sspm_2 file_name: ROM_26 is_download: true type: NORMAL_ROM linear_start_addr: 0x23f00000 physical_start_addr: 0x23f00000 partition_size: 0x100000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS27 partition_name: cam_vpu1 file_name: ROM_27 is_download: true type: NORMAL_ROM linear_start_addr: 0x24000000 physical_start_addr: 0x24000000 partition_size: 0xf00000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS28 partition_name: cam_vpu2 file_name: ROM_28 is_download: true type: NORMAL_ROM linear_start_addr: 0x24f00000 physical_start_addr: 0x24f00000 partition_size: 0xf00000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS29 partition_name: cam_vpu3 file_name: ROM_29 is_download: true type: NORMAL_ROM linear_start_addr: 0x25e00000 physical_start_addr: 0x25e00000 partition_size: 0xf00000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS30 partition_name: gz1 file_name: ROM_30 is_download: false type: NORMAL_ROM linear_start_addr: 0x26d00000 physical_start_addr: 0x26d00000 partition_size: 0x1000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS31 partition_name: gz2 file_name: ROM_31 is_download: false type: NORMAL_ROM linear_start_addr: 0x27d00000 physical_start_addr: 0x27d00000 partition_size: 0x1000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS32 partition_name: lk file_name: ROM_32 is_download: true type: NORMAL_ROM linear_start_addr: 0x28d00000 physical_start_addr: 0x28d00000 partition_size: 0x200000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: true reserve: 0x00
partition_index: SYS33 partition_name: lk2 file_name: ROM_33 is_download: true type: NORMAL_ROM linear_start_addr: 0x28f00000 physical_start_addr: 0x28f00000 partition_size: 0x200000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS34 partition_name: boot file_name: ROM_34 is_download: true type: NORMAL_ROM linear_start_addr: 0x29100000 physical_start_addr: 0x29100000 partition_size: 0x2000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS35 partition_name: logo file_name: ROM_35 is_download: true type: NORMAL_ROM linear_start_addr: 0x2b100000 physical_start_addr: 0x2b100000 partition_size: 0x800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: true reserve: 0x00
partition_index: SYS36 partition_name: dtbo file_name: ROM_36 is_download: true type: NORMAL_ROM linear_start_addr: 0x2b900000 physical_start_addr: 0x2b900000 partition_size: 0x800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS37 partition_name: tee1 file_name: ROM_37 is_download: true type: NORMAL_ROM linear_start_addr: 0x2c100000 physical_start_addr: 0x2c100000 partition_size: 0x500000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: true reserve: 0x00
partition_index: SYS38 partition_name: tee2 file_name: ROM_38 is_download: true type: NORMAL_ROM linear_start_addr: 0x2c600000 physical_start_addr: 0x2c600000 partition_size: 0xa00000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS39 partition_name: vendor file_name: ROM_39 is_download: true type: EXT4_IMG linear_start_addr: 0x2d000000 physical_start_addr: 0x2d000000 partition_size: 0x38800000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS40 partition_name: system file_name: ROM_40 is_download: true type: EXT4_IMG linear_start_addr: 0x65800000 physical_start_addr: 0x65800000 partition_size: 0xe0000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS41 partition_name: cache file_name: ROM_41 is_download: true type: EXT4_IMG linear_start_addr: 0x145800000 physical_start_addr: 0x145800000 partition_size: 0x1b000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS42 partition_name: userdata file_name: ROM_42 is_download: true type: EXT4_IMG linear_start_addr: 0x160800000 physical_start_addr: 0x160800000 partition_size: 0xc0000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS43 partition_name: flashinfo file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0xFFFF0080 physical_start_addr: 0xFFFF0080 partition_size: 0x1000000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: false is_reserved: true operation_type: RESERVED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS44 partition_name: sgpt file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0xFFFF0000 physical_start_addr: 0xFFFF0000 partition_size: 0x8000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: false is_reserved: true operation_type: RESERVED is_upgradable: false empty_boot_needed: false reserve: 0x00
############################################################################################################ #
# ############################################################################################################
storage_type: UFS description:
general: MTK_STORAGE_CFG info:
partition_index: SYS0 partition_name: preloader file_name: ROM_0 is_download: true type: SV5_BL_BIN linear_start_addr: 0x0 physical_start_addr: 0x0 partition_size: 0x80000 region: UFS_LU0_LU1 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: BOOTLOADERS is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS1 partition_name: pgpt file_name: ROM_1 is_download: false type: NORMAL_ROM linear_start_addr: 0x0 physical_start_addr: 0x0 partition_size: 0x8000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS2 partition_name: recovery file_name: ROM_2 is_download: true type: NORMAL_ROM linear_start_addr: 0x8000 physical_start_addr: 0x8000 partition_size: 0x2000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS3 partition_name: misc file_name: ROM_3 is_download: false type: NORMAL_ROM linear_start_addr: 0x2008000 physical_start_addr: 0x2008000 partition_size: 0x80000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS4 partition_name: para file_name: ROM_4 is_download: false type: NORMAL_ROM linear_start_addr: 0x2088000 physical_start_addr: 0x2088000 partition_size: 0x80000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS5 partition_name: expdb file_name: ROM_5 is_download: false type: NORMAL_ROM linear_start_addr: 0x2108000 physical_start_addr: 0x2108000 partition_size: 0x1400000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS6 partition_name: frp file_name: ROM_6 is_download: false type: NORMAL_ROM linear_start_addr: 0x3508000 physical_start_addr: 0x3508000 partition_size: 0x100000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS7 partition_name: vbmeta file_name: ROM_7 is_download: true type: NORMAL_ROM linear_start_addr: 0x3608000 physical_start_addr: 0x3608000 partition_size: 0x800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS8 partition_name: nvcfg file_name: ROM_8 is_download: false type: EXT4_IMG linear_start_addr: 0x3e08000 physical_start_addr: 0x3e08000 partition_size: 0x2000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS9 partition_name: nvdata file_name: ROM_9 is_download: false type: EXT4_IMG linear_start_addr: 0x5e08000 physical_start_addr: 0x5e08000 partition_size: 0x4000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS10 partition_name: metadata file_name: ROM_10 is_download: false type: NORMAL_ROM linear_start_addr: 0x9e08000 physical_start_addr: 0x9e08000 partition_size: 0x2000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS11 partition_name: persist file_name: ROM_11 is_download: false type: EXT4_IMG linear_start_addr: 0xbe08000 physical_start_addr: 0xbe08000 partition_size: 0x3000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS12 partition_name: protect1 file_name: ROM_12 is_download: false type: EXT4_IMG linear_start_addr: 0xee08000 physical_start_addr: 0xee08000 partition_size: 0x9f8000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS13 partition_name: protect2 file_name: ROM_13 is_download: false type: EXT4_IMG linear_start_addr: 0xf800000 physical_start_addr: 0xf800000 partition_size: 0x800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS14 partition_name: seccfg file_name: ROM_14 is_download: false type: NORMAL_ROM linear_start_addr: 0x10000000 physical_start_addr: 0x10000000 partition_size: 0x800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS15 partition_name: otp file_name: ROM_15 is_download: false type: NORMAL_ROM linear_start_addr: 0x10800000 physical_start_addr: 0x10800000 partition_size: 0x3000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS16 partition_name: sec1 file_name: ROM_16 is_download: false type: NORMAL_ROM linear_start_addr: 0x13800000 physical_start_addr: 0x13800000 partition_size: 0x200000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS17 partition_name: proinfo file_name: ROM_17 is_download: false type: NORMAL_ROM linear_start_addr: 0x13a00000 physical_start_addr: 0x13a00000 partition_size: 0x300000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: PROTECTED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS18 partition_name: nvram file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0x13d00000 physical_start_addr: 0x13d00000 partition_size: 0x4000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: BINREGION is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS19 partition_name: md1img file_name: ROM_19 is_download: true type: NORMAL_ROM linear_start_addr: 0x17d00000 physical_start_addr: 0x17d00000 partition_size: 0x9600000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS20 partition_name: boot_para file_name: ROM_20 is_download: false type: NORMAL_ROM linear_start_addr: 0x21300000 physical_start_addr: 0x21300000 partition_size: 0x1a00000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS21 partition_name: spmfw file_name: ROM_21 is_download: true type: NORMAL_ROM linear_start_addr: 0x22d00000 physical_start_addr: 0x22d00000 partition_size: 0x100000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS22 partition_name: audio_dsp file_name: ROM_22 is_download: true type: NORMAL_ROM linear_start_addr: 0x22e00000 physical_start_addr: 0x22e00000 partition_size: 0x400000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS23 partition_name: scp1 file_name: ROM_23 is_download: true type: NORMAL_ROM linear_start_addr: 0x23200000 physical_start_addr: 0x23200000 partition_size: 0x600000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS24 partition_name: scp2 file_name: ROM_24 is_download: true type: NORMAL_ROM linear_start_addr: 0x23800000 physical_start_addr: 0x23800000 partition_size: 0x600000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS25 partition_name: sspm_1 file_name: ROM_25 is_download: true type: NORMAL_ROM linear_start_addr: 0x23e00000 physical_start_addr: 0x23e00000 partition_size: 0x100000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS26 partition_name: sspm_2 file_name: ROM_26 is_download: true type: NORMAL_ROM linear_start_addr: 0x23f00000 physical_start_addr: 0x23f00000 partition_size: 0x100000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS27 partition_name: cam_vpu1 file_name: ROM_27 is_download: true type: NORMAL_ROM linear_start_addr: 0x24000000 physical_start_addr: 0x24000000 partition_size: 0xf00000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS28 partition_name: cam_vpu2 file_name: ROM_28 is_download: true type: NORMAL_ROM linear_start_addr: 0x24f00000 physical_start_addr: 0x24f00000 partition_size: 0xf00000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS29 partition_name: cam_vpu3 file_name: ROM_29 is_download: true type: NORMAL_ROM linear_start_addr: 0x25e00000 physical_start_addr: 0x25e00000 partition_size: 0xf00000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS30 partition_name: gz1 file_name: ROM_30 is_download: false type: NORMAL_ROM linear_start_addr: 0x26d00000 physical_start_addr: 0x26d00000 partition_size: 0x1000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS31 partition_name: gz2 file_name: ROM_31 is_download: false type: NORMAL_ROM linear_start_addr: 0x27d00000 physical_start_addr: 0x27d00000 partition_size: 0x1000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: INVISIBLE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS32 partition_name: lk file_name: ROM_32 is_download: true type: NORMAL_ROM linear_start_addr: 0x28d00000 physical_start_addr: 0x28d00000 partition_size: 0x200000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: true reserve: 0x00
partition_index: SYS33 partition_name: lk2 file_name: ROM_33 is_download: true type: NORMAL_ROM linear_start_addr: 0x28f00000 physical_start_addr: 0x28f00000 partition_size: 0x200000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS34 partition_name: boot file_name: ROM_34 is_download: true type: NORMAL_ROM linear_start_addr: 0x29100000 physical_start_addr: 0x29100000 partition_size: 0x2000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS35 partition_name: logo file_name: ROM_35 is_download: true type: NORMAL_ROM linear_start_addr: 0x2b100000 physical_start_addr: 0x2b100000 partition_size: 0x800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: true reserve: 0x00
partition_index: SYS36 partition_name: dtbo file_name: ROM_36 is_download: true type: NORMAL_ROM linear_start_addr: 0x2b900000 physical_start_addr: 0x2b900000 partition_size: 0x800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS37 partition_name: tee1 file_name: ROM_37 is_download: true type: NORMAL_ROM linear_start_addr: 0x2c100000 physical_start_addr: 0x2c100000 partition_size: 0x500000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: true reserve: 0x00
partition_index: SYS38 partition_name: tee2 file_name: ROM_38 is_download: true type: NORMAL_ROM linear_start_addr: 0x2c600000 physical_start_addr: 0x2c600000 partition_size: 0xa00000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS39 partition_name: vendor file_name: ROM_39 is_download: true type: EXT4_IMG linear_start_addr: 0x2d000000 physical_start_addr: 0x2d000000 partition_size: 0x38800000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS40 partition_name: system file_name: ROM_40 is_download: true type: EXT4_IMG linear_start_addr: 0x65800000 physical_start_addr: 0x65800000 partition_size: 0xe0000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: true empty_boot_needed: false reserve: 0x00
partition_index: SYS41 partition_name: cache file_name: ROM_41 is_download: true type: EXT4_IMG linear_start_addr: 0x145800000 physical_start_addr: 0x145800000 partition_size: 0x1b000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS42 partition_name: userdata file_name: ROM_42 is_download: true type: EXT4_IMG linear_start_addr: 0x160800000 physical_start_addr: 0x160800000 partition_size: 0xc0000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS43 partition_name: flashinfo file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0xFFFF0020 physical_start_addr: 0xFFFF0020 partition_size: 0x1000000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: false is_reserved: true operation_type: RESERVED is_upgradable: false empty_boot_needed: false reserve: 0x00
partition_index: SYS44 partition_name: sgpt file_name: NONE is_download: false type: NORMAL_ROM linear_start_addr: 0xFFFF0000 physical_start_addr: 0xFFFF0000 partition_size: 0x8000 region: UFS_LU2 storage: HW_STORAGE_UFS boundary_check: false is_reserved: true operation_type: RESERVED is_upgradable: false empty_boot_needed: false reserve: 0x00
Yes the scatter file is pointing correctly to each ROM. Checksums for the scatter files matter? this would be new for me. Without the checksum.ini, checksums for the partition files are ignored. The backup creates 42 Partition files, the restore List is restoring only 24 of them. In the readback you see, which partition points to which file, preloader to ROM_0, recovery to ROM_2, misc to ROM_3 and so on... Its much easier imo to change one time the scatter file for any new backup instead of changing the 24 files names for every new backup. It is restoring the backup, but the device hangs like i explained in the inital issue post.
No, checksum does not matter. I just gave you the checksum to compare, if we both use the same scatter file. For me it was working without any issue. Is the device in bootloop or does the restore process hang? Did you chose "Download only" while restoring in SP flash tool?
No, the restore process worked just fine with "download only". I did even a Test restoring for every backed up partitions, except the "nvram" by enabling the "is_download: false" flag to true. Its not a classical bootloop, its a system restore option menu caused by the unreadable /data partition. i had done previous two backups. One configured as standard, second complete debloadet. Both backups showing after restoring the same results.
So the problem is the encrypted data partition, I guess. Sorry, never had this issue. I never had the need to recover my data partition, yet. Maybe you should open a thread at xda-developers.com. Sorry.
I am still working on this issue.
As alternative way doing backups, i tried TWRP Somehow i got one time a working TWRP for the BV9900Pro ported and i can not repeat it. No idea how i did it. Unfortunately, i have not ported it with the mt6779 fstab, so it has no sd_card. see https://forum.hovatek.com/thread-40750-post-221082.html#pid221082 https://forum.hovatek.com/thread-21839-post-221060.html#pid221060 - with a working TWRP - link
i am still on it, I believe, i found the Problem..... see scatter file:
partition_index: SYS42 partition_name: userdata file_name: ROM_42 is_download: true type: EXT4_IMG linear_start_addr: 0x160800000 physical_start_addr: 0x160800000 partition_size: 0x1BD7400000 region: EMMC_USER storage: HW_STORAGE_EMMC boundary_check: true is_reserved: false operation_type: UPDATE is_upgradable: false empty_boot_needed: false reserve: 0x00
The "partition_size: 0xc0000000" are 3 Gigabytes, The partition /user has 111 Gigabytes which is in HEX "0x1BC0000000" Of course, a read back of 111 Gigabytes takes some time and space, with wwr MTK for example it can be trimmed.
The possible max size of a full dump from 0x0 - 0x1DC0000000 are 119 Gigabytes. According to a TWRP Backup-Log, the size of the /data Partition is 114036MB which equals to HEX = 0x1BD7400000 For the scatter File, it needs exactly this HEX to dump or restore the whole /data partition. A Dumb of this size takes about 50 Minutes with the Blackviewpro. Gona test, if its working.
Meanwhile first test shows, the restore works!
Thanks a lot for your work and sharing your progress. Please keep me/us up to date, if you could successfully backup and restore the data partition.
A second test shows, its working this way. It would be nice, if you update this in your Guide Taking the default scatter values does not make a proper and working backup from the userdata.
"Now connect the switched-off phone to PC while holding the Vol-Up button." Pressing the Volume Up is not necessary. Just Plug in the turned off phone after Readback or Download is activated.
Pressing VolumeUp & Power, release Power Key while keep pressing VolumeUp brings you in the selection Menu Recovery Fastboot Restart
Hi @f1cscari, I updated my Guide and added this section: https://github.com/do1fmd/BV9900Pro-optimization/#preparations-for-backing-up-the-data-partition
Please have a look, if everything is correct now.
Thanks a lot for your participation and tests.
Looking good, thx :) "This should be at line number 745 & 1523" and "only a few bytes will be saved and the recovered partition won't be readable." It does a normal factory reset, re-formating the /data partition.
Mention also the size it takes (111GB) & plus time ~50 Minutes.
Plus It does no matter this way, if the partition is encrypted or not
Minus If its encrypted, you can not trim this large file,
Changed the guide accordingly: https://github.com/do1fmd/BV9900Pro-optimization/#preparations-for-backing-up-the-data-partition
Perfect! Another very important hint is missed in your Bugfixes Guide https://forum.xda-developers.com/t/req-blackview-bv9900-pro-root-recovery.4097681/post-85357409
If you don't want to use the Magisk feature mentioned there, you can try to edit build.prop directly.
ro.freeme_freemanager and ro.hct_autostart_manager must be set to 0.
This was the only working solution which got my default apps autostarting. i had several other auto start apps tested, nothing worked except your advice in the XDA Forum :) Thank you for this....
Perfect! Another very important hint is missed in your Bugfixes Guide https://forum.xda-developers.com/t/req-blackview-bv9900-pro-root-recovery.4097681/post-85357409
If you don't want to use the Magisk feature mentioned there, you can try to edit build.prop directly. ro.freeme_freemanager and ro.hct_autostart_manager must be set to 0.
This was the only working solution which got my default apps autostarting. i had several other auto start apps tested, nothing worked except your advice in the XDA Forum :) Thank you for this....
That one is already described here: https://github.com/do1fmd/BV9900Pro-optimization/blob/main/bugfixes.md#apps-and-widgets-do-not-start-after-boot-magisk-or-at-least-root-needed
I did a custom backup with the "[ReadBack] ShowByScatter=true" option Because there was no scatter file created, i edited the delivered firmware scatter_file pointing to each ROM_x partition.
Unfortunately, a test restore (download) resulted in a loop with the option to try it again or do a factory reset. Any idea how to progress this correct?
Solved: The size of the /data Partition is 114036MB which equals to HEX = 0x1BD7400000 So change in the scatter file twice the SYS42 partition_size from 0xc0000000 (3GB) to 0x1BD7400000 (111GB) Example: