• Title: How to setup sp flash tool linux (MTK)
  • Listed: 07/20/2015 11:14 pm
  • ROM Version: all ROMs suitable for sp flash tool
  • You must be logged for ROM download.

Overall Rating : 4

18108 total views, 2 today

14 Total favorites


How to setup sp flash tool linux (MTK)
How to setup sp flash tool linux (MTK) - Image 1How to setup sp flash tool linux (MTK) - Image 2How to setup sp flash tool linux (MTK) - Image 3

Author adMember Info


How to setup SP_Flash_Tool_linux (MediaTek/MTK SoC)

Only for Linux 64-bit!!!

DISCLAIMER: It is always risky to flash your mobile device.

I do not and will not take any responsibility for bootloops

and bricks.

Please check carefully that the ROM or recovery.img you want to flash is

suitable for your specific device and for the sp_flash_tool. The firmware

directory should neither contain meta-inf nor system folder, but

something_with_a_scatter.txt and a system.img

Backup your phone before flashing!

Your phones battery should be at least half charged (50 percent) before you

start this.


I successfully ran these steps on my UMI Hammer with Linux Ubuntu 14.04 and

sp_flash_tool_linux_v.5.1520 from needrom. I do not have other devices or

Linux derivates and do not plan to buy/install any.


CREDITS and a zillion thanks to Sergio Rivero for his

excellent tutorial on mibqyyo.com!!!!

I just modified some bits and pieces… Thanks also to N2k1 for

more background information.


So here we go:


Step 1:

If you haven't done so before, install the Linux generic usb-drivers package:


Download sp_flash_tool_linux. For 64-bit-systems I recommend version

5.1516.00.100 or later, unfortunately I haven't found any valid 32-bit-version.


Step 2:

Extract the downloaded file (graphic file manager (e.g. Nautilus): double-click and

extract. Terminal:

(from now on:

please adapt paths to your own settings)

Move the new folder „sp_flash_tool“ to a directory of your choice.




Step 3:

Change into the newly created directory:


The output of

should look like this (apart from the black

marks ;-) ):






















We make flash_tool.sh and flash_tool executable by typing:



Step 4:

In order to avoid running the flash tool as root, you need to add your user to the group "dialout" (Arch Linux: "uucp")



In order to activate the membership, you need to logout your user and login again, or you run:




Then you can start the tool:


You can try at this stage if the flash tool connects to your phone:

In the user interface, choose tab „Download“. Load a scatter file (to be found in the

unpacked ROM directory) and choose a small partition for the test, e.g. logo.bin.

Uncheck all the other partitions. Press „Download“ on sp_flash_tool.

Switch off your device and connect it

to the computer. Some devices require you to take off the battery for abut 10 seconds,

with others you need to press Vol+ or Vol- while plugging the cable into the phone.

Please look up device-specific threads and try out different options.

If nothing happens at all, open a second terminal, run

and look out for a

MediaTek entry:





















If there is none → did you install libusb-dev (Step 1?)

If the answer is yes, you might need to create a persistent rule for the MTK Preloader:


Add the following line to the file:


Save the file and exit.

Reload the usb-rules:


Disconnect the usb data cable from the computer and the smartphone. Close the flash

tool. Switch on your phone (fastboot mode will do). Repeat the first paragraph of Step 4.

If the tool connects, within a few seconds a red progress bar will appear.

Unfortunately, in my case an error message came along with it:

























There is a connection, but also one more obstacle to overcome


Step 5:

Now we come to the interesting part, which cost me 2 weeks of (futile) research and

frustration. Finally I found Sergio Riveros tutorial on mibqyyo. Thanks to him again

and again and again for this priceless piece of information :-)

The “modemmanager” package integrated by default within Linux Ubuntu 14.04 and later is not compatible with the MTK Flash Tool for Linux.

To put it in different words: The modem manager controls port /dev/ttyACM0 and disables the

Flash Tool. So we blacklist it for the two MTK vendor IDs the flash tool uses:

and insert these two lines:


Save the file and exit.

Now you restart udev once more:


Disconnect the cable from the computer and from the phone. Switch your phone on (fastboot

mode will do) and off again. Type 


Now everything should run smoothly.

There are plenty of tutorials on the web for the further steps.























Happy flashing! When a green circle with a white checkmark appears on your desktop screen,

you are done. You can close the flash tool and disconnect your phone. Remove the battery for

about 10 seconds and reinsert it. For a clean start with a new ROM boot into recovery and wipe

data/factory reset.



※Please make a backup of your device before installing or updating ROM

13 Responses to“How to setup sp flash tool linux (MTK)”

  1. 11/23/2015

    South Africa

    steve@steve:/SP_Flash_Tool_exe_Linux_v5.1532.00.100$ sudo ./flash_tool
    [sudo] password for steve:
    ./flash_tool: 1: ./flash_tool: Syntax error: ")" unexpected

    Any ideas of how i can fix this? I have completed all previous steps and tried this one multiple times with the same result.

  2. dilnix



    Help me please to understand how to use FT to flash LeTV x600 in Fedora Linux 23.

    I tried to make all steps you provided. But stoped at step 5.

    Even after i made a file "/etc/udev/rules.d/20-mm-blacklist-mtk.rules" with correct contents and restarted udev i'm getting this error S_BROM_CMD_JUMP_DA_FAIL (2035).

    May be in Fedora there is something another than ModemManager making trouble? Can you suggest me something?

  3. 12/23/2015

    South Africa

    Linux 32bit flash tool fails to execute, errors:

    ./flash_tool: cannot execute binary file: Exec format error

    ./flash_tool: Syntax error: "(" unexpected



  4. 11/21/2015


    It worked for me. Thanks a lot. But i think it is a mistake at the create point, cause i couldn.t create the mtk rule from terminal with that command, i created it manually (i copied the file in the /etc/udev/rules.d with the extension .rules and i renamed it as 80-persistent-usb.rules and then i pasted the text inside it).

  5. 11/21/2015