Monday 4 April 2016

How to create a scatter file and recovery?

How to create a scatter file and recovery?








Today in this post we are going to learn to create a scatter file and recovery for your MTK device. 
scatter file is used by SP tools for reviving your device if bricked and flashing stuff. A Scatter file is used to describe the loads of regions in a specific android device running MediaTek's ARM architecture. So to create Scatter file the requirements are 
-> PC/Laptop
-> Device with Mediatek (MTK) chipset
-> MTK Droid tool (Download Here)
-> ADB drivers of your device
-> USB cable 





NOTE- USB DEBUGGING MUST BE ENABLED BEFORE STARTING THE PROCESS. GO TO SETTINGS --> DEVELOPER OPTIONS --> USB DEBUGGING.



Step 1- Connect your device to PC/Laptop via USB cable. IF drivers are installed properly the device will be detected by the PC/Laptop. 





Step 2- Run MTK Droid Tool as administrator.
Step 3- Wait until your phone gets detected! when done click on BLOCKS MAP.





Step 4- A popup will appear, click on CREATE SCATTER FILE. Choose the Saving destination.
DONE!!


Now lets move on to how to create a recovery image for your device. The requirements are 



-> PC/Laptop
-> MTK Droid Tool 
-> SP Tools
-> Notepad ++ (Download Here)
-> MTK USB drivers
-> Device with Mediatek (MTK) chipset
-> Scatter file of your device

Step 1-> Run SP Tools and click on SCATTER LOADING.

Step 2-> Browse to the destination of scatter file and open it.

Step 3-> Now click on READ BACK (Top left corner).

Step 4-> Click on ADD ( for adding a task for recovery image).

Step 5-> Now double click on N/A. It will ask you to save the file name it as recovery.img and save it. After that it will ask you to enter hex values for Start Address and length.


NOTE- THE MOST IMPORTANT PART IS TO ENTER THE CORRECT HEX VALUES FOR START ADDRESS AND LENGTH ELSE IT WILL NOT WORK.



Step 6-> To find START ADDRESS open the scatter file using notepad++ scroll down and find RECOVERY you will find the value in front of it. For example if the value of
START ADDRESS is 0000F22000 replace the first 4 zeroes with "0x". It will become 0xF22000.

Step 7-> To find LENGTH connect your device to your PC/Laptop. Open MTK Droid Tool, wait until device gets detected. Click on "Blocks Map" a window will appear scroll down and look for RECOVERY. You will find the same value of Scatter Address and length equal to the size. For example the value of LENGTH is 0000700000 replace the 
first 4 zeroes with "0x". It will become 0x7000000.








NOTE- MAKE SURE THE START ADDRESS AND LENGTH HAVE SAME NUMBER OF CHARACTERS. IN CASE IF THE START ADDRESS IS 0x111111 AND LENGTH IS 0x11111, WE WILL ADD ZERO IN LENGTH IT WILL BECOME 0x011111. THIS MAKE THE NUMBER OF CHARACTERS SAME IN BOTH.



Step 8-> Enter these hex values.
Now unplug your phone turn it off press READ BACK in SP Tools and immediately connect your switched off phone via USB Cable. It will detect your phone and will load and create the stock recovery. An OK message with green circle will popup indicating successful completion of the process.

Done!Good Luck!

For any problem related to this please drop it in comments below we will provide you best possible solution ASAP.

No comments:

Post a Comment