How to setup SP_Flash_Tool_Linux (MTK/MediaTek Soc)

Started By: wangxiaoli Started On: 2017-12-22 20:16:28
739 0
Edited by wangxiaoli at 2017-12-22 20:20

This works only on 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 phone's battery should be at least half charged (50 percent) before you start this.

So here we go:

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

Code:
  • sudo apt-get update
  • sudo apt install libusb-dev
               
Download SP Flash Tool Linux (latest version): http://mtk2000.ucoz.ru/load/soft/sof..._tool/5-1-0-14 (Password to extract currently is mtk2000v3)
or here https://androidmtk.com/smart-phone-flash-tool
In case you haven't done before, install unrar:
  Code:
  • sudo apt install unrar
Extract the downloaded file -> graphic file manager (e.g. Nautilus): double-click and extract. Terminal:        
Code:
  • unrar x path_to_file
(from now on: please adapt paths to your own settings)
Move the new folder „sp_flash_tool“ to a directory of your choice.         
Code:
  • mv /home/username/Downloads/sp_flash_tool /home/username/...
You might also need to install libqtwebkit4 (it just happened to me on Linux Ubuntu 16.04):         
Code:
  • sudo apt install libqtwebkit4
[Only For Ubuntu 16.10 and newer]
Run        
Code:
These libraries are still required for the flash tool but have been removed from new Ubuntu versions.  

Step 2:

Change into the newly created directory:        
Code:
  • cd /sp_flash_tool
We make one file executable by typing:        
Code:
  • chmod +x flash_tool
In order to avoid running the flash_tool as root user, you need to add a standard user to the usergroup "dialout"
Code:
  • sudo adduser username dialout
For Arch Linux:        
Code:
  • gpasswd -a username uucp
and activate the membership immediately
Code:
  • newgrp - dialout
(Arch Linux):        
Code:
  • newgrp - uucp

Step 3:

Now you can open the tool:
  
Code:
  • ./flash_tool
or double-click on the flash_tool icon.

You have to log in before you can reply Login | Register now Sign in with facebook Sign in with google

Points Rules

International