Ulefone
  • 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 : 2

9176 total views, 9 today

10 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


DESCRIPTION


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.Thefirmware

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:

"install SelectShow

Download sp_flash_tool_linux.For 64-bit-systemsI recommend version

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

 

Step 2:

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

extract. Terminal:

"unzip" SelectShow
(from now on:

pleaseadapt pathsto your ownsettings)

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

Example:

"move SelectShow

 

Step 3:

Change into the newly created directory:

"change SelectShow

The output of

"list" SelectShow
should look like this (apart from the black

marks ;-) ):

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We make flash_tool.sh and flash_tool executable by typing:

"make SelectShow

 

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")

"add SelectShow

"(Arch SelectShow

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

"activate SelectShow

or

"Arch SelectShow

Then you can start the tool:

run SelectShow

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

"look SelectShow
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:

"create SelectShow

Add the following line to the file:

"add SelectShow

Save the file and exit.

Reload the usb-rules:

"restart SelectShow

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:

S_BROM_CMD_JUMP_DA_FAIL (2035)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

There is a connection, butalsoone more obstacle toovercome

 

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 defaultwithin 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:

"create SelectShow
and insert these two lines:

"blacklist SelectShow

Save the file and exit.

Now you restart udev once more:

"restart SelectShow

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

mode will do) and off again. Type 

"run SelectShow

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.

 

 


Share Button

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


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







  1. 11/23/2015
    Posts: 1

    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
    steve@steve:/SP_Flash_Tool_exe_Linux_v5.1532.00.100$

    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




    09/26/2014
    Posts: 3

    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
    Posts: 1

    Linux 32bit flash tool fails to execute, errors:

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

    ./flash_tool: Syntax error: "("unexpected

     

    &nb