REFERENCE How to get the full length address using wwr mtk and sp flash tool

Davidburbos666

Registered
Joined
Jan 24, 2019
Messages
28
Reaction score
3
Points
1
In this tutorial, we'll show you how to get the length address needed to make a full ROM dump using PGPT backup file and Wwr_MTK tool. This is only necessary if you tried doing a RAM test but SP flash tool only shows "DRAM Flip Test". The guide is also useful for those who want to get length address for other partitions in an MTK device [e.g to get the length addresses of FRP partition for removing FRP lock] but don't have the scatter file for the device.


Requirements

Download Wwr_MTK tool
Download SP flash tool
Download and manually install vcom preloader driver
Windows PC
MTK Phone
Scatter file for your phone [it is assumed you already have this but if you don't then complete steps 1 to 6
PGPT file [see step 1 and 2 in the guide below]

Steps on how to get length address for full ROM dump using SP Flash tool, PGPT and Wwr_MTK Tool


Use the scatter file to perform an SP Flash tool readback of Region EMMC_USER with the values below using the readback guide [In my case, i'm saving the file as ROM1 ]
Code:
Region: EMMC_USER
physical_start_addr = 0x0
partition_size = 0x80000

The file we got from the step above contains the PGPT partition which we will now use to get the addresses of the remaining partitions. [i will refer to this file as PGPT file throughout this guide]



Launch Wwr_MTK Tool



Click on "Select File" just beside "Choose the EMMC_USER partition in the prepared backup"



In the window that opens, navigate to the location of the PGPT file and select it



You'll get a warning saying "The file size is smaller ...", Click OK to proceed [If you don't get any warning / notifications at all and PGPT seems empty, scroll to the bottom of the guide for what to do]



In the small window that appears next, you'll get the length needed for a full ROM dump [in my case, its 0x3A3E00000 ], Click OK to proceed



If what you need is the length for full ROM dump then you can exit Wwr_MTK Tool BUT for those who want to get the length address of a specific partition, then proceed to the next step



Click on the "Search of partition" tab



In this tab, you'll get the length addresses of all other partitions



Code:
Wwr_MTK - SPft Format tab - SPft Readback tab
Start = Begin Address = Begin Address
Length = Format Length = Length



Loaded PGPT file seems empty, what do i do?

If after loading your PGPT readback and it seems empty or no notifications as in the screenshot below



Click the scatter file tab



Scroll down to the very last partition on the list, the value under 'FINISH' tab for the last partition on the list is the full length address for your device





How to skip userdata and cache when dumping ROM using Wwr_MTK

Launch Wwr_MTK > Click 'Select File' at number 3 > Located your PGPT file and select it



Once the file is done loading, Click the 'Scatter File' tab



Copy the address value of 'FINISH' for system. (system is usually the last partition just before userdata and cache). Use this address as the length to perform a readback of EMMC_USER
 
Who read this thread (Total readers: 0)
No registered users viewing this thread.
Back
Top