Thursday, May 10, 2012

MT657x (MT6515 / MT6575 / MT6577) flashing tutorial


Now that the new MediaTek SoC has been released, it is time to publish the instructions on how to flash your MT65x5 (MT6515 and MT6575) based device. Please note that the images shown on this tutorial are just examples and that you must flash your device with the correct ROM files.

Make sure that you read everything carefully and know what you are doing. Don't blame me for any damage that may occur on your device.



Update: By the time that this tutorial was written only MT65x5 was available. Current MT6577 based device can also be flashed using the exact same method, so this has just been updated with references to that most recent SoC.


What's needed:
  • Computer running Windows XP (or higher)
  • USB data cable
  • MediaTek USB VCOM drivers 
  • SP Flash Tool (v3.1206.01 or higher for MT6575 / v3.1222.00 or higher for MT6577)
Note: SP Flash Tool is backward compatible, which means you can (and should) use the most up to date version.

And now the tutorial...
  • 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 device you have)  for your device and ignore any message that may appear.
  • Turn off your device, remove the battery and replace it after some seconds (and don't turn on the device).
  • Press F9 (or hit Download button) and connect your device 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 device 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 device 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 device.

Very important warning: Always make sure that you trust the sources of the ROM you download and know that it is meant for your device. After flashing a wrong preloader, your device 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.

Last note: All needed tools and drivers can be downloaded from my MT65xx Tools 4shared folder. The password to login is bm-smartphone-reviews.blogspot.com. Have fun!

97 comments:

  1. Is there anywhere we can see a changelog for the SP flash tool?

    Is this tool always usable, or is it possible to flash images wrong so that the tool may no longer be used and the phone is bricked?

    ReplyDelete
    Replies
    1. As far as I known there isn't any SP Flash Tool changelog available to the public.

      You can only soft-brick a MT6575 phone, so SP Flash Tool can always be used to flash the correct ROM files.

      Delete
  2. I have an MT6575 based device running Android 4.0.3. I want to dump the ROMand instal CWM. Problem is when i do cat/proc/mtd there is no output. I tried cat/proc/emmc, i found the partitin table but there is no recovery partition

    (partno: start_sect nr_sects partition_name emmc_p1: 00000020 00000002 "ebr1" emmc_p2: 0010f720 00100000 "cache" emmc_p3: 0020ff20 00100000 "usrdata" emmc_p4: 00310720 004328e0 "fat" emmc_p5: 00009f00 00002800 "sec_ro" emmc_p6: 0000ef20 00100000 "android")

    Can you help me to dump the ROM for MT6575 and instal CWM. Thank you very much.

    ReplyDelete
  3. Hi bruno,
    there is a new software for flashing mt6575 from china mobileuncle forum.
    its name is SmarthPhone Multi-port download tool.
    i have haipai i9210 and i upgraded my phone with officila update and your guide.
    after all was ok, but the front camera was dead, simply not recognized by phone.
    Looking for solution in google i find this new software, and i upgraded it with some firmware.. and after i have front camera again!!
    the big differene is that you can put "some string" for "sensor". only with the right string, front camera will be ok.
    if you want, can you study this string? i thinks that they can more help for programming phono. i no be able to make it :-( i know only make paste&copy :-)
    thanks a lot
    angelobiz

    ReplyDelete
  4. Hi bruno,
    I've bricked my ihtc titan x300e by flashing the zopo100 scatter file to it lol

    If I get another one and I dump (using read back function of smart phone tool) and then download the adresses back to the bricked phone do you believe it will work?

    ReplyDelete
  5. could u upload information for flashing the CPU MTK6573?... pls

    ReplyDelete
  6. Hi,
    Good tutorial.
    I have Questions :
    Where can I get the file "MT6575_Android_scatter.txt" ?
    Should I make my own file or is it supplied on the Rom File ?
    I need it because I would like to update my "Star N8000"
    Thanks

    ReplyDelete
  7. Hi,

    Thanks for the great tutorial! Any info on how to reflash the modem.img as well?

    ReplyDelete
    Replies
    1. There is no partition for the baseband firmware file. That file is always stored under /system/etc/firmware, so if you want to change it you have to unpack / repack system.img.

      Delete
  8. Hello Bruno,
    I try to follow your instructions, but in the first step (install the MT6575 USB VCOM drivers) I always get a "This device cannot start. (Code 10)" error. I have tried uninstalling/rebooting my PC (Win 7), removing battery from phone and reinserting, but no results! Any ideas?
    Thank you.

    ReplyDelete
  9. Hi,
    In trying to add the scattering loading file, I get no directories for the files and thus it won't download. Have I missed something out?

    ReplyDelete
    Replies
    1. Sorry, I guess it may have been because I hadn't correctly installed the drivers. I have just done so but as soon as I connect the phone, the USB chimes that it has disconnected. After that, I can't find the driver in the device manager. Can anyone help, please?

      Delete
    2. I just realised that I didn't correctly install the driver. Now I've done so, as soon as the phone connects, it disconnects. I guess this is supposed to happen. Nevertheless, I still can't get past the issue where the scattering file doesn't give any directories for the download...

      Delete
  10. Where is the MT6575 scatter file? I only have the MT573 scatter file from the flash tool android folder. Can we use that one?

    ReplyDelete
    Replies
    1. The scatter file is usually found along with the ROM files. Please note that you need to find the correct ROM for your phone.

      Delete
  11. There are no drivers in 'MT6575 USB VCOM drivers' folder, .inf files only.

    ReplyDelete
  12. Hi! In case the preloader is corrupted, is it still possible to rewrite the flash by USB? (that is, in case there is a bootloader in ROM? like Hummingbird ROM BL in Exynos)

    ReplyDelete
  13. Hi all
    Please advise how to install the MT6575 USB VCOM drivers? thanks

    ReplyDelete
  14. Great tutorial I downloaded all the files but the USB drivers only appear to be notepad text files, I assume these are the drivers but how do I get the drivers to load. I'm using Win7 64
    Thanks

    ReplyDelete
    Replies
    1. You are wrong, those are not Notepad text files. It can be opened with Notepad, but that doesn't means nothing.

      There are two ways to install the drivers. One way is to right click on the .inf file and choose "Install". The other way is to start the process with SP Flash Tool and as soon as you plug in the phone a new device will be detected and you have the choice to install the drivers.

      Delete
    2. Thanks for the reply
      When I right click on the .inf file then install I get a message that says this .inf file can not be installed by this method. Done the plug phone in part "nothing". Found the phone in device manager and selected find suitable driver still nothing. I want to update my Thl W1 firmware as the phone didn't have Google play installed and the new firmware does. I did download Google play and root the phone but Google play will not open.

      Delete
    3. I can't install the Mediatek DA USB VCOM driver. Windows 7 Home 64 bit does not install it PnP. When I manually install it, I got the error "code 10" like above users. Other google search come up a goodle adb driver that Microsoft like. This takes care of the device error. However, the SP flash is not connecting to my phone. Nothing happens when I click download.
      I have a N8000 phone. Maybe it needs a different way to connect?

      Delete
    4. It is very important to make sure that you click "Download" first before you connect the device. Actually there is a trick, below the sp flash tool, you will see something that says "USB". Click "Download" and wait for the "USB" to become "Searching". Once it is "searching" then connect the USB. SP-Flashtool should be able to capture it before it disconnects itself again.

      Delete
    5. any advice how to install the driver ?
      i cannot install it, manually install result in error 10, device cannot started.
      sorry for my bad english

      Delete
  15. Hi Bruno

    I managed to hard brick(no response from device while plugged in or any combination of button presses) my mtk6575 phone. Do you know of a way to unbrick my phone? I appreciate any help.

    Thanks

    ReplyDelete
    Replies
    1. Unfortunately, I don't know if you will be able to recover your phone. You probably have bricked your phone by flashing a bootloader from another phone, am I right?

      In a last effort, you should try to flash your phone with the full stock ROM and trying some hard-key combination to force it to go into bootloader mode.

      Delete
    2. u got ur device powered on?

      i too bricked it!!!!!!!

      Delete
  16. Bruno,
    Probably a dumb question, but how do you generate a scatter file for a MT6575 based phone?

    Their not all created equal right?

    Thanks

    ReplyDelete
    Replies
    1. Every MT6575 device may have a unique scatter file. The best you can do is to download MTK Droid Tools & Root (by rua1) to create a dump of your current ROM, which will also generate the proper scatter file.

      Delete
  17. I was able to do this for a few phones, but now after I press F9 (download), then plug in the phone, I get:

    BROM ERROR: S_COM_PORT_OPEN_FAIL (1013)
    [COM] Failed to open COM7

    I've tried re-installing the VCOM drivers, I've tried a few different types, using Win7-64 PC and xp-32 PC...

    anybody got any ideas?

    ReplyDelete
  18. Thank you so much for this -- it is helping out a huge number of us!

    A question for you if you had a second: Do you know if the SP tool restores partitions when it flashes (or can be set to do this)? I installed a flashable update to expand the data partition, but it caused some problems and I'd like to go back. However, I'm reluctant to flash the ROM because I don't know if it will be expecting partitions of a certain size to already be set up.

    Thanks in advance for any insight you can share, and thanks again for the tutorial.

    ReplyDelete
    Replies
    1. Sure, if you flash the full ROM using SP Flash Tool you will be able to restore the partition table.

      Delete
  19. Just wondering, if any of you guys or the OP has tried to use SP Flash tool from VirtualBox (Win XP32 VM) in Ubuntu 12.04LTS ?

    I have been trying for a day or two but to no avail. For some reason, the windows XP doesn't even pick up the device (MTK6577) when powered off. But when I enable the power or USB mode I can browse and view files like normal, but in no way do I get a prompt to install the VCOM drivers for the flash tool so that it can detect and assign a virtual port for the flashing process.

    it would be magic to get it running this way, as I don't want to install any mircosoft products directly to a physical harddrive.

    ReplyDelete
    Replies
    1. Just run the installer that comes with MediaTek USB VCOM drivers. Then, go ahead with the procedure with no worries. The first time you connect the phone (in bootloader mode) to the computer it will detect a new device and complete the driver installation.

      Delete
    2. Hi there. Yes you are right about that procedure. I can install and flash with a OS that boots directly from a harddrive (Windows 7, XP) but Linux (Ubuntu 12.04LTS) using Vmware or VirtualBox it does not actually recognise the bootloader mode. Linux does not recognise the bootloader mode of the phone. It will only list it in the USB devices list if I turn the phone on normally.

      In ubuntu's terminal I type "lsusb" it shows all my attached USB devices: My phone when turned on shows this

      Bus 001 Device 020: ID 0bb4:0001 High Tech Computer Corp.

      I then turn off the phone and take out battery and put the battery back in and insert the USB data cable. (Phone screen shows battery symbol) and I redo the Linux command again "lsusb" and it shows notthing.

      So this is actually where the problem resides for Windows VM not detecting the the bootloader mode ! as linux does not.

      I can't find a solution to it online either. Seems google is not my friend this time ;-)

      Your tutorial is spot on !! and the Vcom drivers work on both 7 and XP with no problems. It's just getting it to work through a VM is what I am trying to do.

      Thanks for your reply earlier also !

      I bet if you tried to do what I am doing, you would get stuck in the same situation as myself !

      Have a nice day !

      Delete
    3. I'm not sure if you still have the same issue. I just black listed the cdc_acm module to stop the linux host from registering /dev/ttyACM0.
      I installed the virtualbox tools and added a empty USB filter to my VM. I'm able to download FW to the device and do the HW checks.

      Hope that helps.

      Delete
  20. Thanks a lot for this great tutorial. Using this I was able to make a scatter file for my device and download a ROM dump. My recovery image is 5120 kB in size.

    I tried to flash back this same recovery through the SP flash tool, but that failed and resulted in the error:
    BROM ERROR:S_DL_GET_DRAM_SETTING_FAIL(5054)
    [EMI]obtain DRAM Failed!
    [HINT]:Please check your load matches to your target which is to be download.

    Do you have experience with this error? The size must be correct as i first read back the image, and then try to flash it back.

    ReplyDelete
    Replies
    1. I have same error, any kind of how to fix?

      Delete
  21. Hi there,
    I installed the MT6575 USB VCOM drivers whit no problem (both on Win7 and xp systems), but wen I connect my U8836D there is no connection with Flash tool. In the device manager appears: Huwaei Incorporated GSM handset with advise of missing driver and isn't possible to update it, and any mediatek ports appears.
    Thanks for help!

    ReplyDelete
    Replies
    1. You don't seem to be following the tutorial as explained because from what you have said I would say that you are keeping your phone turned on when you connect it with SP Flash Tool. That is based on the fact that your computer is detecting the phone while in a normal status, not in bootloader mode.

      Delete
  22. Hi there,
    What if the battery was built-in? any procedure?

    ReplyDelete
    Replies
    1. Just make sure that your device is completely powered off, without quick boot enabled. Some MediaTek based devices have quick boot feature. While such feature makes the phone boot quicker it prevents the phone from completely shutting down. Just go to Settings / Accessibility, check if your device has that feature and disable it.

      Delete
  23. Hello there,
    I have a dilema (noobish one, won't take long ;D) preventing me to do this, and make my new zte v970 usable, so please help if you can.
    1.After the driver is installed (I right clicked Install on the proper driver,) when will COM37 Port appear in Device Manager? When the phone is connected via usb? After the driver installation or detected when connected via usb and executing sp tools?

    Thx in advance,

    p.s.I remember migrating to custom ROM with my zte blade and boy I had trouble finding the right version of files needed.

    ReplyDelete
    Replies
    1. If you have already run driver installer just follow the rest of the tutorial. The new device will be detected as soon as the phone enters into bootloader mode.

      Delete
  24. thx i have been succes rooting my android

    ReplyDelete
  25. Thanks a Lot Bruno... Kudos to u..!!
    I was in very bad shape when my Canvas 2 stuck on boot loader.
    but then after huge search I landed to your post and I went back to my stock ROM.

    Keep up good work ,.... thanks a lot again..
    I will spread the word.. thanks again...

    For Micromax a110 (Canvas 2):
    Guys, to download Mediatek Drivers go to 4shared.com and search "MT6577 USB VCOM drivers". and for Tool go to:
    http://www.droidiser.com/2012/11/micromax-a110-rooted-how-to-guide.html
    Also, restart your machine and try one or more time with exact above steps.
    All d best.

    Thanks Bruno once again.

    ReplyDelete
  26. Minimum system requirement to running spflashtools is windows xp sp3 ? we found when loading from some else computer with xp sp2 is failed.

    ReplyDelete
    Replies
    1. I know it works on Windows XP SP3. If you found it was not working with SP2, then probably it requires SP3 to be installed.

      Delete
  27. My ZTE V970 stucked on bootloader, I tried to make a factory reset and now I see VVO logo screen and a Android loading, and it's all I see.

    What should I do to get the scatter file and try to revive my smartphone?

    Thanks!

    ReplyDelete
    Replies
    1. For your case, just go to my ZTE V970 thread and get support there.

      Delete
  28. Hi Bruno!
    Do you by chance know where MTK 6575 kernel source can be found?
    I have Tooky T1982 phone, and I really want to try to build ICS rom for it.
    AFAIK, all starts with kernel, and boot.img .
    It would be great , if you also can address me to some tutorial on that subject.
    Thank you in advance!

    ReplyDelete
    Replies
    1. Sorry if my answer will let you down, but MediaTek source code is not public.

      Delete
    2. Lets imagine I've found it :-).
      In such case, do you have a kernel compiling/boot.img creation tutorial?

      Delete
    3. No, I don't. I'm sure there are guides floating around the Internet. But please lets end this conversation for now as this is not the topic of this blog or this post in particular.

      Delete
  29. Hey My device just apear a few second and lost when i remove the battery and plug the cable into my phone connect to pc.I think this reason make BROM ERROR:S_DL_GET_DRAM_SETTING_FAIL hix hic i have settup driver mtk

    ReplyDelete
    Replies
    1. the battery is fully charged?
      I had this problem and it was the battery

      Delete
    2. load the full firmware i had the same error when trying to install recovery or boot img only full firmware installed fine

      Delete
  30. I can't read back the recovery.img in Windows 7 and 8. I apply the same steps in Windows XP and it works. Is there any special configuration need to be done in Windows 7 or 8? I did configure Windows 8 to install unsigned third party drivers.

    ReplyDelete
    Replies
    1. No, nothing special configuration under Windows 7 or 8. Just need to install the correct drivers. When the tutorial was written I was using Windows 7, but now I use Windows 8 and it still works flawlessly.

      Delete
    2. The driver install correctly. When I unplug the battery, plug in the USB cable, the device manager keep connect and disconnect "MT65xx Preloader" device. I install the VCOM Preloader driver for Win7 x64, and it stay disconnected with driver installed properly. I then try to use Flash tool's Read Back and hope it may wake up the device but it didn't. The same steps apply on Windows XP works. Just wondering what makes it not working for Win 7 or 8.

      Delete
    3. By the way, I am installing "MediaTek PreLoader USB VCOM Port (COM6)" on Windows 8 x64 using Win7 x64 drivers. My Android's CPU is MT6577 on S7180 phone.

      Delete
    4. Nothing wrong there. I also use Win7 x64 drivers on my Windows 8 x64 machine.

      Delete
  31. Is fastboot works on MT6577 device? I find no way to use fastboot on MT6577 device.

    ReplyDelete
    Replies
    1. No, there's no fastboot mode on MediaTek devices.

      Delete
  32. The MT6577 4shared folder is empty!

    ReplyDelete
    Replies
    1. No, it is not. I have doubled checked, all files are there. The same for the other MT65xx Tools folders.

      Delete
    2. i have used the password and pressed ok and then it says "no files in this folder"
      I'm in MT65xx Tools. Am I doing something wrong?

      Delete
    3. Are you logged into 4shared?

      Delete
    4. I also am having this same issue. Signed up for an account at 4shared and folder is empty. I went to other folders like the 6516 and 6573 and its empty also.

      Delete
    5. When I'm not logged in I can't see any files or folders either, but once I log in all files can be accessed. I will report this issue to 4shared support. Try again later.

      Delete
    6. The problem remains. Please consider making a link with mediafire or another server.

      Delete
    7. I have been in contact with 4shared support and the problem should be solved by now. Please try to access the shared folder and let me know if there's any issue.

      Delete
  33. Poxa vida.. eu só quero rootear meu MT6515 hsdroid. alguem pode me ajudar?

    ReplyDelete
  34. Hello there!! i have problem with install MediaTek DA USB VCOM drivers on win 8, it say INF does not signature and fail to install. Any idea to help for install MediaTek DA USB VCOM drivers? Please help.

    ReplyDelete
    Replies
    1. You have to disable driver signature enforcement. Read here to know how to disable it.

      Delete
  35. hey, i'm new to this. will this work on windows 8 os?

    ReplyDelete
    Replies
    1. Yes, the tool works also on Windows 8 and the drivers are compatible.

      Delete
  36. Is the purpose of flashing the the OS and re-installing the above softwares changing the language from chinese to english?

    ReplyDelete
    Replies
    1. Not just that. The purpose is generic, describe how to flash MT65xx devices.

      Delete
  37. HI, is it possible to flash my smartphone(i9220 mkt6575) while i am not able even to reach the boot menu, i am only able to see a dark laminated

    ReplyDelete
    Replies
    1. It is possible to recover as far as phone is detected by your computer, but you have to find the original firmware somewhere.

      Delete
  38. Hi, I am facing the error S_COM_PORT_OPEN_FAIL (1013) when I give download on SP_flash_tool, I am using windows 7 64bit OS.I guess it is the problem with the drivers for my phone, Any suggestions on how to get going from this state. I tried different drivers over the internet, but same case with all.

    ReplyDelete
  39. I can't get pass the red bar when I only want to flash recovery.img.

    ReplyDelete
    Replies
    1. Make sure that drivers are correctly installed and you're not using any USB hub. Check the USB cable and if problem persists try connecting the phone into another USB port.

      Delete
  40. Where can I find drivers for my FLY-F350 (MT6575 device) Drivers? The ones on internet dont work... Device keeps flickering like pluging in and out again and again.... I need to flash stock recovery.. Help please...! :)

    ReplyDelete
    Replies
    1. The drivers are generic, so should work on your phone as well.

      Delete
  41. Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaank you so much. Finally, my device regained its consciousness.

    ReplyDelete
  42. I am getting this error every time I click the "Download" button on SP Flash Tool after loading a scatter file
    Image PRELOADER checksum failed! Checksum reference value(0x7eb82) in the config ini file.
    Please re-fill correct checksum valies in Checksum.INI under tool folder and re-load scatter file again!
    for all .iso files included in the Stock ROM of iBall Andi 3n which I am trying to install since months.

    This is the complete image of the error : (http://i.imgur.com/U2YnCVt.png)

    I tried copying all address values from checksum.ini of my stock ROM image's folder to the checksum.ini of the SP Flash tool's folder. Still shows the same error.

    Please help.

    ReplyDelete
    Replies
    1. Simply delete checksum.ini file and proceed with flashing.

      Delete
    2. Thanks for the reply, that worked, it did not show that error anymore.
      However when I connected my USB cable after clicking the Download button, it shows this error

      BROM ERROR : S_BROM_CMD_STARTCMD_FAIL (2005)
      [BROM] Can not pass bootrom start command via USB cable!
      Image for complete error : http://i.imgur.com/oMxU9S5.png

      I followed the steps given in hint, it still shows the same error every time.
      I enabled trace mode with Ctrl + Alt + T, and here are the two log folders created at the same minute when I connected the USB cable. https://app.box.com/s/nbngxdhve7ni34g4r7v7

      Any help would be appreciated.

      Delete
    3. I fixed it :D :D :D :D :D :D :D :D (YAAAAAAAAAAAAAAAAAAAAAAAAY)
      Just had to keep holding the Volume UP key while the entire process, or otherwise the phone got un-detected by Mediatek drivers.

      Thanks a lot bgcngm. :D

      Delete
  43. BROM ERROR:S_DL_GET_DRAM_SETTING_FAIL(5054)
    Anyone know how to fix this error ?

    ReplyDelete
  44. If you use MTK Droid tools to backup your rom, it will also create a scatter file. Also great for flashing other roms. Just copy the image files for the new rom to a directory with the scatter file. Open up the scatter file and make sure that all the image names correspond with your images you want to flash. Also a great tool, the spflash, saves a brick. I just had a bad brick....brick brick brick..

    The MTKDroid is cool as well because it creates a CWM recovery that works with your phone, will also generate your userdata, sometimes as a *.img depending on your tablet. If not it makes a tar file that you can flash later in your custom made CWM.

    ReplyDelete