www.chinaphonearena.com

Full Version: HOW TO ADAPT MIRACLE BOX SCATTER FOR SP FLASH TOOL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Given the fact that my smart phone manufacturer (ALLWIEW) refuse to release the ROMs for their MT67xx chipset devices, I turn to you for some help in order to prepare the rom for SP Flash Tool.

Smart Phone Specifications:
- Brand: ALLVIEW
- Model: X3 Soul Style
- O.S: Android 6.0 (Marshmallow)
- Chipset: Mediatek MT6753
- CPU: Octa-core 1.3 GHz Cortex-A53
- GPU: Mali-T720
- RAM: 3 GB
- Internal memory: 32 GB
- Card slot: microSD, up to 256 GB (uses SIM 2 slot)

I managed to read the rom in Miracle Box and saved it as a scatter file, as follows:

Code:
############################################################################################################
#
#  General Setting
#
############################################################################################################
- general: MTK_PLATFORM_CFG
  info:
    - config_version: V1.1.1
      platform: MT6753
      project: mtk_android
      storage: EMMC
      boot_channel: MSDC_0
      block_size: 0x20000
############################################################################################################
#
#  Layout Setting
#
############################################################################################################
- partition_index: SYS0
  partition_name: PRELOADER
  file_name: preloader.bin
  is_download: true
  type: SV5_BL_BIN
  linear_start_addr: 0x0
  physical_start_addr: 0x0
  partition_size: 0x400000
  region: EMMC_BOOT_1
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: BOOTLOADER
  reserve: 0x00

- partition_index: SYS1
  partition_name: PGPT
  file_name: pgpt.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x0
  physical_start_addr: 0x0
  partition_size: 0x80000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS2
  partition_name: PROINFO
  file_name: proinfo.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x80000
  physical_start_addr: 0x80000
  partition_size: 0x300000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS3
  partition_name: NVRAM
  file_name: nvram.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x380000
  physical_start_addr: 0x380000
  partition_size: 0x500000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS4
  partition_name: PROTECT1
  file_name: protect1.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x880000
  physical_start_addr: 0x880000
  partition_size: 0xA00000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS5
  partition_name: PROTECT2
  file_name: protect2.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x1280000
  physical_start_addr: 0x1280000
  partition_size: 0xA00000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS6
  partition_name: LK
  file_name: lk.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x1C80000
  physical_start_addr: 0x1C80000
  partition_size: 0x80000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS7
  partition_name: PARA
  file_name: para.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x1D00000
  physical_start_addr: 0x1D00000
  partition_size: 0x80000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS8
  partition_name: BOOT
  file_name: boot.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x1D80000
  physical_start_addr: 0x1D80000
  partition_size: 0x1000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS9
  partition_name: RECOVERY
  file_name: recovery.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x2D80000
  physical_start_addr: 0x2D80000
  partition_size: 0x1000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS10
  partition_name: LOGO
  file_name: logo.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x3D80000
  physical_start_addr: 0x3D80000
  partition_size: 0x800000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS11
  partition_name: EXPDB
  file_name: expdb.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x4580000
  physical_start_addr: 0x4580000
  partition_size: 0xA00000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS12
  partition_name: SECCFG
  file_name: seccfg.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x4F80000
  physical_start_addr: 0x4F80000
  partition_size: 0x80000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS13
  partition_name: OEMKEYSTORE
  file_name: oemkeystore.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x5000000
  physical_start_addr: 0x5000000
  partition_size: 0x200000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS14
  partition_name: SECRO
  file_name: secro.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x5200000
  physical_start_addr: 0x5200000
  partition_size: 0x600000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS15
  partition_name: KEYSTORE
  file_name: keystore.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x5800000
  physical_start_addr: 0x5800000
  partition_size: 0x800000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS16
  partition_name: TEE1
  file_name: tee1.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x6000000
  physical_start_addr: 0x6000000
  partition_size: 0x500000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS17
  partition_name: TEE2
  file_name: tee2.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x6500000
  physical_start_addr: 0x6500000
  partition_size: 0x500000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS18
  partition_name: FRP
  file_name: frp.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x6A00000
  physical_start_addr: 0x6A00000
  partition_size: 0x100000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS19
  partition_name: NVDATA
  file_name: nvdata.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x6B00000
  physical_start_addr: 0x6B00000
  partition_size: 0x2000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS20
  partition_name: METADATA
  file_name: metadata.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x8B00000
  physical_start_addr: 0x8B00000
  partition_size: 0x2500000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS21
  partition_name: SYSTEM
  file_name: system.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0xB000000
  physical_start_addr: 0xB000000
  partition_size: 0x10C000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS22
  partition_name: CACHE
  file_name: cache.bin
  is_download: true
  type: YAFFS_IMG
  linear_start_addr: 0x117000000
  physical_start_addr: 0x117000000
  partition_size: 0x19000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS23
  partition_name: USERDATA
  file_name: userdata.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x130000000
  physical_start_addr: 0x130000000
  partition_size: 0x616B80000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  reserve: 0x00

- partition_index: SYS24
  partition_name: FLASHINFO
  file_name: flashinfo.bin
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x746B80000
  physical_start_addr: 0x746B80000
  partition_size: 0x1000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: false
  is_reserved: true
  operation_type: UPDATE
  reserve: 0x00

As you can see, all the files are in bin format, with file names defined on the file_name line, the type line is NORMAL ROM and the operation_type line is UPDATE.
Now, if I want to use this scatter file in SP Flash Tool what changes shoul be made to the scatter file and files extensions in order to be compliant for flashing?
I think we should make the following changes:
  • Keep the following files in bin format: preloader, lk, logo, tee1 and tee2
  • Change the extensions from bin to img for the following files: boot, recovery, secro, system, cache and userdata. Change the file_name line in the scatter file for these files accordingly.
  • Remove the bin extensions for the following files: pgpt, proinfo, nvram, protect1, protect2, para, expdb, seccfg, oemkeystore, keystore, frp, nvdata, metadata, flashinfo. Change the file_name line in the scatter file for these files to NONE.
If you think that the following scatter file lines should be changed to something else, feel free to make suggestions.
  • type: NORMAL ROM
  • operation_type: UPDATE
Thank you!
Allview X3 firmware :

[Only registered and activated users can see links Click here to register]

I have a question to ask you :

Are you Cosmin ?
(2016-10-07, 21:23)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]

I have a question to ask you :

Are you Cosmin ?

Can you post only the scatter file, please, so i can take a look at it?
No, I am not Cristi.
My name is Valentin.
(2016-10-07, 22:20)djtetei Wrote: [Only registered and activated users can see links Click here to register]

I have a question to ask you :

Are you Cosmin ?

Can you post only the scatter file, please, so i can take a look at it?
No, I am not Cristi.
My name is Valentin.
Allview X3 scatter file :

[Only registered and activated users can see links Click here to register]

It might be an idea to post here all the firmwares about Allview phones absent on the net.
What do you think about it ?
Is it an insane idea ?
Or is it a feasible idea ?
(2016-10-07, 22:39)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]

I have a question to ask you :

Are you Cosmin ?

Can you post only the scatter file, please, so i can take a look at it?
No, I am not Cristi.
My name is Valentin.
Allview X3 scatter file :

[Only registered and activated users can see links Click here to register]

It might be an idea to post here all the firmwares about Allview phones absent on the net.
What do you think about it ?
Is it an insane idea ?
Or is it a feasible idea ?
It is quite all right and a nice gesture if you cold do it.
All Allview user could benefit from this.
Maybe the Allview support department would learn something from this.

(2016-10-07, 22:39)Cleopatra Wrote: [Only registered and activated users can see links Click here to register]

I have a question to ask you :

Are you Cosmin ?

Can you post only the scatter file, please, so i can take a look at it?
No, I am not Cristi.
My name is Valentin.
Allview X3 scatter file :

[Only registered and activated users can see links Click here to register]

It might be an idea to post here all the firmwares about Allview phones absent on the net.
What do you think about it ?
Is it an insane idea ?
Or is it a feasible idea ?
It seems that the scatter file comes from GIONEE, the other brother of ALLVIEW, but the partitions should be the same, the only differencies being the special configurations for europe.
It looks like someone else got to us first :

[Only registered and activated users can see links Click here to register]

It would be nice to ask to Cosmin about the Allview latest firmwares Smiling
Hello, djtetei and ciao Cleopatra

I did the same with my phone with the Miracle Box and now I have all the files in BIN format and the scatter file generated .

Do I have to follow all the instructions suggested in post I ????

I want to modify the scatter file so it can be used in flash tools and I want to learn to port the stock recovery to get a working twrp for my phone.

The bin files can be renamed to img files just like that or they have been converted ????

Can you please help me ???? I want to LEARN how to do the things.

Thank you so much.
(2016-10-14, 01:02)amhonra Wrote: [ -> ]Hello, djtetei and ciao Cleopatra

I did the same with my phone with the Miracle Box and now I have all the files in BIN format and the scatter file generated .

Do I have to follow all the instructions suggested in post I ????

I want to modify the scatter file so it can be used in flash tools and I want to learn to port the stock recovery to get a working twrp for my phone.

The bin files can be renamed to img files just like that or they have been converted ????

Can you please help me ???? I want to LEARN how to do the things.

Thank you so much.

You can follow the first post.
Alternatively, if you allready have the scatter made by miracle bix, you can modify it so you can load it in SP Flash Tool to read back the rom, partition by partition, and not as a whole, because you can not process the resulting rom file in MTKDroidTools.
To get a working TWRP for your phone, please follow the next tutorial :

[Only registered and activated users can see links Click here to register]
(2016-10-14, 01:15)djtetei Wrote: [Only registered and activated users can see links Click here to register]


Thank you, Always a pleasure Cleopatra

I will let you know both, for good, bad or worst, LOL

Greetings from mexico
Pages: 1 2