[TUT]MTK Android (Sp flash tool ) tutorial

Search This thread

bullracing

Senior Member
Jan 20, 2016
116
9
@bovirus

OKay, I can understand better, thanks.
Seems that my phone is dead, I try to get into Factory Test, but it only turns ON in a blank white screen blnking, so it maight be is the Main board that its damaged.

Thanks However :)
 

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
@bovirus

OKay, I can understand better, thanks.
Seems that my phone is dead, I try to get into Factory Test, but it only turns ON in a blank white screen blnking, so it maight be is the Main board that its damaged.

Thanks However :)
There are two ways to get around the PMT error. First way is to use an earlier version of the SP Flash Tool. Like version 3. But this does not always solve the problem.

The second way is to use the hidden Write Memory tab (hit the Ctrl-Alt-V combination on the keyboard to enter Advanced Mode, then select the Window > Write Memory option from the drop down menu. The Write Memory tab will then appear). Use the Write Memory tab to flash the images directly to the partition you wish starting from the memory address you specify. So if you had made a full ROM backup before you bricked your device (most people unfortunately fail to take this simple precaution), you would simply flash that ROM file starting at address 0x0.

You can find the correct starting addresses for each partition either on the download tab or by looking at the starting linear address in the scatter.txt file. For a softbrick, you might simply want to successively flash the boot.img, the recovery.img and the system.img to their appropriate partitions using the Write Memory tab.

When you use the Write Memory tab to flash, you must turn the phone off BUT leave the battery INSIDE the phone then connect the USB cable.

The Write Memory feature will only work if you identify the Preloader.bin file on the Download tab (so you must check the Preloader box on the Download tab). BUT DO NOT CHECK THE PRELOADER BOX IF YOU ARE GOING TO USE THE DOWNLOAD TAB TO FLASH THE DEVICE. ONLY CHECK THAT BOX IF YOU ARE GOING TO USE THE WRITE MEMORY TAB TO FLASH.

If you don't have the preloader.bin file, simply use the Read Back tab to dump it from the phone.

Finally, be absolutely sure you have the correct ROM for your phone. If the ROM is not the correct one for your device and you flash the wrong boot, recovery or system images to the phone, it will not boot. It will remain or become bricked. The fact that a ROM is for the same MTK chipset as your phone does NOT mean it's the correct ROM for your phone!

Sent from my Nexus 7 using XDA Free mobile app
 

bullracing

Senior Member
Jan 20, 2016
116
9
@CVAngelo

Thanks too much! thats very usefull information... I will try it :fingers-crossed:

I have some MTK that are "bricked" I will make what you aere telling me, may I can bring back to life some of them...

Thanks :good:
 
Last edited:
  • Like
Reactions: CVAngelo

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
@CVAngelo

Thanks too much! thats very usefull information... I will try it :fingers-crossed:

I have some MTK that are "bricked" I will make what you aere telling me, may I can bring back to life some of them...

Thanks :good:
Let us know if you are able to recover any of those bricked devices. I have used the Write Memory tab to unbrick or restore countless bricked devices.
I have also used it to flash custom recoveries on many devices (when the custom recovery image is available). Flashing a custom recovery is the easiest way to root most MTK devices. Once the custom recovery is flashed, you simply need to boot to recovery and install a SuperSu zip and violá...you're rooted.
If you have any questions, just let us know.

Sent from my Nexus 7 using XDA Free mobile app
 
  • Like
Reactions: bullracing

bullracing

Senior Member
Jan 20, 2016
116
9
@CVAngelo

its me again... I was trying what you told me about "write memory" lets see if I understood well....

I took up a bricked Lanix X200 from Telcel, I got the Firmware:
"ROM LANIX Ilium X200 Telcel version: ILIUM_X200_TELCEL_SW_07 – Guowei_S408B_QB25S_M402A_6572V1.0.0"

When I try to download it to the Phone with flashtools i get an error "PMT has change to the ROM it must be Downloaded..." this happendes with the version 3.x and 5.x so I proceed with the "Write Memory Tab" with flashtool v5.1524 , already in the tab, in "file path" I loaded the "preloader.bin" that came with the ROM I downloaded, I set the "begin address set" to "0x0", at the "Download Tab" I enabled only the "Preloader check" with the "Preloader.bin" that the scatter file put on it. I pressed finaly "Write Memory" I conected the Phone and it started-finished succesfully. Then I proced to flash the whole firmware at the "Download tab" I press it, conect the device, it is recognized well, but I'm getting this error "BROM ERROR: S_FT_ENABLE_DRAM_FAIL (4032)"

I think I'm making something wrong....
 

bovirus

Senior Member
Oct 7, 2007
2,154
795
@bullracing

Youi get "PMT changed" error when you use "DOWNLOAD ONLY" mode and PMT of original ROM and new ROM are difeferent.

If you are sure that the new ROM is for your device you can select all modules and use FIRMWARE UPGRADE mode to avoid PMT error.
 

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
@CVAngelo

its me again... I was trying what you told me about "write memory" lets see if I understood well....

I took up a bricked Lanix X200 from Telcel, I got the Firmware:
"ROM LANIX Ilium X200 Telcel version: ILIUM_X200_TELCEL_SW_07 – Guowei_S408B_QB25S_M402A_6572V1.0.0"

When I try to download it to the Phone with flashtools i get an error "PMT has change to the ROM it must be Downloaded..." this happendes with the version 3.x and 5.x so I proceed with the "Write Memory Tab" with flashtool v5.1524 , already in the tab, in "file path" I loaded the "preloader.bin" that came with the ROM I downloaded, I set the "begin address set" to "0x0", at the "Download Tab" I enabled only the "Preloader check" with the "Preloader.bin" that the scatter file put on it. I pressed finaly "Write Memory" I conected the Phone and it started-finished succesfully. Then I proced to flash the whole firmware at the "Download tab" I press it, conect the device, it is recognized well, but I'm getting this error "BROM ERROR: S_FT_ENABLE_DRAM_FAIL (4032)"

I think I'm making something wrong....
Well, you were not to flash the preloader.bin file.

Instead, what I had said was that you should flash the boot.img, recovery.img and system.img using the Write Memory tab. The starting address for each of those images you can find in the scatter.txt file (the address to use is called the linear starting address). Or if you had the full ROM backup which is a single file typically about 1GB in size, that is what you would flash starting at 0x0.

Sent from my Nexus 7 using XDA Free mobile app
 
  • Like
Reactions: bullracing

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
Damm it, so I killed my device. I will try to make it again as you said....
Not necessarily. If that is the correct ROM for your device, you did not kill it. But always remember that you must never flash the preloader.bin image (neither from the Download tab, nor from the Write Memory tab) EXCEPT if it is part of the absolute last resort.

Now you need to make sure your battery is fully charged and you can try to flash again. You have two choices. You can flash from the Write Memory tab (flash the boot.img, then flash recovery.img, then flash system.img). But do not flash the preloader. However, you need to be sure the preloader box is checked on the DOWNLOAD tab in order for the Write Memory tab to work.

If you are going to use the Download tab to flash, then you must UNCHECK the preloader box but check all the other boxes (except Cache and Usrdata). Then select Download Only. However, if you get the "PMT changed" error, then select Firmware Upgrade. This will check ALL the boxes including the Preloader line. BUT IT IS OK...as this will NOT flash the preloader (because it does not need to be upgraded). This is not guaranteed to solve the PMT error, but it sometimes works. If it doesn't work, your only choice is to flash via the Write Memory tab.

Sent from my Nexus 7 using XDA Free mobile app
 
Last edited:
Jan 14, 2010
45
2
Hi guys! Can anyone help me connect SP Flash Tool to my ASUS X008 (Pegasus 3)? It has worked before, and I flashed a ROM, but now I want (need...) to flash another ROM it just doesn't connect. I'm trying to install the USB VCOM drivers, but whatever I do, it always ends up with a message about the device not starting. I'm running Windows 10 btw.

I suspect it may have something to do with some drivers I installed in order to try to get it working again. Installed several programs like Kingoroot, PDAnet, Driver Auto installer, MAUI META, MTK Droid Tool, MediaTek drivers etc... I've tried to get rid of most of them by now, but I can't seem to uninstall pdanet.

Can anyone help me please?
 

bullracing

Senior Member
Jan 20, 2016
116
9
Hi guys! Can anyone help me connect SP Flash Tool to my ASUS X008 (Pegasus 3)? It has worked before, and I flashed a ROM, but now I want (need...) to flash another ROM it just doesn't connect. I'm trying to install the USB VCOM drivers, but whatever I do, it always ends up with a message about the device not starting. I'm running Windows 10 btw.

I suspect it may have something to do with some drivers I installed in order to try to get it working again. Installed several programs like Kingoroot, PDAnet, Driver Auto installer, MAUI META, MTK Droid Tool, MediaTek drivers etc... I've tried to get rid of most of them by now, but I can't seem to uninstall pdanet.

Can anyone help me please?

Try without battery holding volume up and conect the USB cable, or try with another key combinations while conecting the usb cable. Sometimes whe I install a lot of programs and drivers I get problems while conecting devices, before you make something crazy try with another Computer....
 
Jan 14, 2010
45
2
Thanks for your help! Unfortunately the battery is non-removable and the button combinations didn't change anything. I'll try it on a different computer, but I'll need to arrange that first... Any tips or tricks I should try in the meantime?
 
Jan 14, 2010
45
2
Try without battery holding volume up and conect the USB cable, or try with another key combinations while conecting the usb cable. Sometimes whe I install a lot of programs and drivers I get problems while conecting devices, before you make something crazy try with another Computer....

Tried it with a different computer (Win 7) but same problem: no connection. Can anyone point me to the correct VCOM drivers, just to be sure?
 

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
Tried it with a different computer (Win 7) but same problem: no connection. Can anyone point me to the correct VCOM drivers, just to be sure?
You say that you are trying to flash another ROM and that previously you had flashed a different ROM. You did not make it clear what state your device is in. So let me ask you a few questions:

Are you able to turn on your device normally? Or is it bricked?

If you are able to turn it on normally, what happens when you connect it to the computer? Does your computer recognize your device?

While your device is turned on, go to Development Options and turn on USB Debugging. Connect your device to the computer. Does the computer recognize the device now?

Sent from my Nexus 7 using XDA Free mobile app
 
Jan 14, 2010
45
2
You say that you are trying to flash another ROM and that previously you had flashed a different ROM. You did not make it clear what state your device is in. So let me ask you a few questions:

Are you able to turn on your device normally? Or is it bricked?

If you are able to turn it on normally, what happens when you connect it to the computer? Does your computer recognize your device?

While your device is turned on, go to Development Options and turn on USB Debugging. Connect your device to the computer. Does the computer recognize the device now?

Sent from my Nexus 7 using XDA Free mobile app
Thanks for looking into it!!

The device is working normally, only IMEI is wrong. It is not bricked.

The computer recognizes the device when it is switched on. I can access files etc.

USB debugging is already on.
 
Jan 14, 2010
45
2
Is your device recognized (while it is on) by MTK Droid Tools?

Sent from my Nexus 7 using XDA Free mobile app

It is indeed recognized by MTK Droid tools.

Code:
Hardware : MT6737
Model : ASUS_X008
Build number : CMCC_Phone-13.0.0.5-20160621
Build date UTC : 20160621-073916
Android  v : 6.0
Baseband v: MOLY.LR9.W1444.MD.LWTG.MP.V88.P7, 2016/06/21 12:30
Kernel v : 3.18.19+ (wind-kernel@droid) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP  Tue Jun 21 15:36:48 CST 2016
Uboot build v : ----- should be root shell
LCD Driver IC :  ----- should be root shell
 

CVAngelo

Senior Member
Mar 24, 2015
1,014
392
Praia
investincv.blogspot.com
It is indeed recognized by MTK Droid tools.

Code:
Hardware : MT6737
Model : ASUS_X008
Build number : CMCC_Phone-13.0.0.5-20160621
Build date UTC : 20160621-073916
Android  v : 6.0
Baseband v: MOLY.LR9.W1444.MD.LWTG.MP.V88.P7, 2016/06/21 12:30
Kernel v : 3.18.19+ (wind-kernel@droid) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP  Tue Jun 21 15:36:48 CST 2016
Uboot build v : ----- should be root shell
LCD Driver IC :  ----- should be root shell
So far, so good. Now if you fully charge your device and then shut it off, it is not recognized by the computer? Even if you keep pressing and holding the volume down button while you insert the USB cable?

What I mean by "recognized by the computer" is whether the computer makes a bong sound just as or right after you make the connection.

Sent from my Nexus 7 using XDA Free mobile app
 
Jan 14, 2010
45
2
So far, so good. Now if you fully charge your device and then shut it off, it is not recognized by the computer? Even if you keep pressing and holding the volume down button while you insert the USB cable?

What I mean by "recognized by the computer" is whether the computer makes a bong sound just as or right after you make the connection.

Sent from my Nexus 7 using XDA Free mobile app

That's right; the device is not recognized by the computer when it is powered down. Even if pressing (and holding) the volume down button when inserting the USB cable.

The computer makes a sound when I connect the device when it's powered on. An autoplay window pops up asking about what it wants me to do when I connect this device. (Mediaplayer, File explorer, import Pictures and videos)
 
Last edited:

notaneng

Member
Dec 3, 2016
10
0
Help Please

I have Redmi Note 2 (MTK6795) hardbrick.
Everything run smoothly but phone didn't boot up.
- Phone detected by PC
- Driver installed properly
- SP Fash tool run 100%, green ticked appear

I have tried several version of offical fastboot ROM, but ended same thing phone not boot up at all.

Any advice will be appreciated.
Thanks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 158
    - Scope of this thread

    The scope of this thread is ONLY to discuss about SP Flashtool program

    - How to use Flashtool
    - Report Flashtool errors and how to fix it.

    Any other issues not related about Flashtool and its use should be posted in other specific thread.

    Please DON'T discuss here about specific device issues like

    - Where find ROM for a device
    - How to fix problem on device
    - etc


    - Flash Tool hardware compatibily

    SP Flash Tool are for Smartphone products

    Mediatek MT62xx Familiy chips
    Mediatek MT65xx Familiy chips
    Mediatek MT67xx Familiy chips


    - Support resources

    Flashtool - 4PDA russian forum

    SP FlashTool ||MTK Android FLASHER (xda)

    Mediatek - Flash Tool - Info (mtk2000.ucoz.ru)


    - Mediatek USB/ADB driver

    To use Flashtool you should have installer Mediatek USB preloader driver.

    There are two types of USB driver for Mediatek devices.

    - ADB USB driver for device working and switched on.
    - Preloader USB driver to flash the device that is switched off.

    To use Flashtool, in the PC should be already installed the USB Mediatek Preloader driver.
    This the latest version of Mediatek driver.
    This is the all-in.one driver (include both USB ADB & preloader driver).
    Is not required to disable driver sign in Windows.
    The driver is compatible with all 32/64bit Windows OS's (from Windows XP to Windows 10).

    USB driver Mediatek (ADB/preloader) v. 5.1632 - Auto installer

    How to install the USB ADB/Preloader driver

    - Disconnect the device from the PC.
    - Download and decompress the archive.
    - Run the exe installer file (decompressed from archive) as administrator (right click -> Run as administrator).
    - Follow the instruction on video and wait the end of installation
    - At the end of installation close the installer and reboot the PC.
    - Now the drivers are available for flash.


    - Flashtool version

    The new version 5.xx include the support of new 64bit Mediatek CPU (MT67xx - ex. MT6732/MT6752/etc)
    The new version 5.xx are also compatible with 32bit Mediatek CPU (MT65xx - ex. MT6582/6589/6592) and new 64bit Mediatek CPU (MT67xx - es. MT6732/MT67527etc).

    Flashtool v. 5.x fixed a critical bug about SP Flash Tool 3.x where the SP Flashtool reads incorrectly the scatter file of some new mobile based on MTK6582 (error: recovery partition is not flashable).

    - Windows version

    Latest version - 5.1916

    SP Flash Tool v. 5.1916 for Windows

    - Linux 64bit

    Latest version: 5.1916

    SP Flash Tool v. 5.1916 for Linux (64bit)

    Flashtool for Linux - How to install


    - SP Flash Tool archive mirror sites

    SP Flashtool for Windows and Linux (spflashtools.com)


    - "PMT Changed" error

    If you get an error like "PMT Changed" (it means that partition scheme of current ROM and new ROM are different) and are you sure that the ROM is specific for your device you can use a special version of Flashtool 3.xx that bypass this error.

    SP Flash Toolv. 3.1313 mod


    - Direct Memory Write

    To bypass a "PMT changed" error (it means that the partition scheme described in the scatter of the new ROM is different than the ROM installed) there are two ways

    - If you have to flash the whole flash you can select in Flashtool the FIRWARE UPGRADE mode.
    - If you have to flash single module/partition you can use Direct Memory Write

    Direct Memory Write Info - post 713
    Direct Memory Write Info - post 922
    Direct Memory Write Info - Other thread

    ..
    9
    Read carefully before to continue!!!

    - Please follow the instructions carefully
    - The author of thread and xda forum will not take any responsibility on whatever may happen with your device.
    - Always make sure that you trust the sources of the ROM you download and know that it is meant for your phone.
    - After flashing a wrong preloader, your phone will be completely dead (can't be powered on, it will not charge and won't be detected anymore by the computer) and there is no way to recover it.


    Instruction how to use Flashtool

    • - Requirements
    • USB data cable
    • MediaTek USB VCOM drivers
    • SP Flash Tool
    Flashing the whole ROM
    • First of all open SP Flash Tool, then click Scatter-loading button to load the correct scatter file
      (MT6575_Android_scatter_emmc.txt or MT6577_Android_scatter_emmc.txt, depending on which phone you have) for your device and ignore any message that may appear.


    • Turn off your phone, remove the battery and replace it after some seconds (and don't turn on the phone).
    • Press F9 (or hit Download button) and connect your phone into the computer via USB data cable.
      The process will start and a red progress bar will appear.





    • After the red progress bar is complete, there will appear a purple progress bar.


    • Right after the purple progress bar is complete, a message will appear underneath it:
      Please insert USB cable in x seconds” and then the download will start right away (you will see the yellow progress bar filling up).



    • When the yellow bar is complete, you'll get a popup with a green circle and Download OK message,
      which means that the process has been successfully terminated.



    • You can now safely disconnect your phone and turn it on. The process ends here.
    Flashing only part of the ROM
    • In case you want to flash just one part of the ROM, that is also possible. In the shown example, only recovery image will be flashed.
      Deselect all parts except the one(s) you want to flash and then press F9 (or hit Download button).


    • The tool will immediately show a warning because not all parts are selected, but you should continue anyway. Safely press Yes to continue.



    • The download of the chosen partition image will start and after the yellow bar is complete, the popup with the green circle should appear.





    • Please note that, even though it isn't mandatory to select it on the list of images to flash,
      preloader file must be present in the same folder as the other partition(s) that you want to flash, or else phone will not be able to enter into download mode.

    ..
    5
    @bovirus

    OKay, I can understand better, thanks.
    Seems that my phone is dead, I try to get into Factory Test, but it only turns ON in a blank white screen blnking, so it maight be is the Main board that its damaged.

    Thanks However :)
    There are two ways to get around the PMT error. First way is to use an earlier version of the SP Flash Tool. Like version 3. But this does not always solve the problem.

    The second way is to use the hidden Write Memory tab (hit the Ctrl-Alt-V combination on the keyboard to enter Advanced Mode, then select the Window > Write Memory option from the drop down menu. The Write Memory tab will then appear). Use the Write Memory tab to flash the images directly to the partition you wish starting from the memory address you specify. So if you had made a full ROM backup before you bricked your device (most people unfortunately fail to take this simple precaution), you would simply flash that ROM file starting at address 0x0.

    You can find the correct starting addresses for each partition either on the download tab or by looking at the starting linear address in the scatter.txt file. For a softbrick, you might simply want to successively flash the boot.img, the recovery.img and the system.img to their appropriate partitions using the Write Memory tab.

    When you use the Write Memory tab to flash, you must turn the phone off BUT leave the battery INSIDE the phone then connect the USB cable.

    The Write Memory feature will only work if you identify the Preloader.bin file on the Download tab (so you must check the Preloader box on the Download tab). BUT DO NOT CHECK THE PRELOADER BOX IF YOU ARE GOING TO USE THE DOWNLOAD TAB TO FLASH THE DEVICE. ONLY CHECK THAT BOX IF YOU ARE GOING TO USE THE WRITE MEMORY TAB TO FLASH.

    If you don't have the preloader.bin file, simply use the Read Back tab to dump it from the phone.

    Finally, be absolutely sure you have the correct ROM for your phone. If the ROM is not the correct one for your device and you flash the wrong boot, recovery or system images to the phone, it will not boot. It will remain or become bricked. The fact that a ROM is for the same MTK chipset as your phone does NOT mean it's the correct ROM for your phone!

    Sent from my Nexus 7 using XDA Free mobile app
    3
    where can we find the scatter loading file please reply :)
    3
    What's needed:

    • USB data cable
    • MediaTek USB VCOM drivers
    • SP Flash Tool ( Latest version SP_Flash_Tool_v3.1224.01)


    • First of all, make sure that you have MediaTek DA USB VCOM drivers installed.

    Flashing the whole ROM
    • First of all open SP Flash Tool, then click Scatter-loading button to load the correct scatter file
      (MT6575_Android_scatter_emmc.txt or MT6577_Android_scatter_emmc.txt, depending on which phone you have) for your device and ignore any message that may appear.


    • Turn off your phone, remove the battery and replace it after some seconds (and don't turn on the phone).
    • Press F9 (or hit Download button) and connect your phone into the computer via USB data cable.
      The process will start and a red progress bar will appear.





    • After the red progress bar is complete, there will appear a purple progress bar.


    • Right after the purple progress bar is complete, a message will appear underneath it:
      Please insert USB cable in x seconds” and then the download will start right away (you will see the yellow progress bar filling up).



    • When the yellow bar is complete, you'll get a popup with a green circle and Download OK message,
      which means that the process has been successfully terminated.



    • You can now safely disconnect your phone and turn it on. The process ends here.
    Flashing only part of the ROM
    • In case you want to flash just one part of the ROM, that is also possible. In the shown example, only recovery image will be flashed.
      Deselect all parts except the one(s) you want to flash and then press F9 (or hit Download button).


    • The tool will immediately show a warning because not all parts are selected, but you should continue anyway. Safely press Yes to continue.



    • The download of the chosen partition image will start and after the yellow bar is complete, the popup with the green circle should appear.





    • Please note that, even though it isn't mandatory to select it on the list of images to flash,
      preloader file must be present in the same folder as the other partition(s) that you want to flash, or else phone will not be able to enter into download mode.

    Attention: Please follow the instructions carefully. I will not take any responsibility on whatever may happen with your phone.

    Very important warning: Always make sure that you trust the sources of the ROM you download and know that it is meant for your phone.
    After flashing a wrong preloader, your phone will be completely dead (can't be powered on, it will not charge and won't be detected anymore by the computer) and there is no way to recover it.
    ================
    [Tool]SP FlashTool ||MTK Android FLASHER
    http://xdaforums.com/showthread.php?t=1982576
    ======================

    nice tuto thanks:good: