5

It is easy to root an MTK device in MS Windows using powerful tool like SP Flash Tools, or a one-click root solution. Can it be done (especially with that flash tool) using a Linux machine?

I've Lenovo P780 (Chipset: Mediatek MT6589) and a Linux machine running Ubuntu 14.04.

1
  • Hi! I overhauled your question. I know you want this post to be a guide but we try to maintain a question as a question and an answer as an answer so that the structure of Q/A is always preserved. I moved that ADB and Fastboot link into the answer. I believe that's fine with you! :)
    – Firelord
    Aug 12, 2015 at 22:45

1 Answer 1

8

Rooting MTK based 'China' phones using SP Flash Tool.

I've tested this on my Ubuntu 14.04 laptop by rooting a Lenovo P780. @Paul Mahieu tested on Huawei Ascend Y221 using Ubuntu 16.04 and reports that it works.

First of all, install libusb-dev pacakage:

apt-get install libusb-dev

Now you need to download SP Flash Tool v5 from here.

Assuming it is downloaded to your Downloads directory extract it's content:

cd Downloads 
unzip SP_Flash_Tool_*.zip

Enter the extracted directory, and run it with root privileges:

cd SP_Flash_Tool_*
sudo ./flash_tool.sh

Pretty simple, right?

Now you have flashtool setup on your Linux box. There are plenty of guides for rooting, flashing recovery and so on for doing whatever you intend to do. The tool will dump important debugging information to the terminal from which you ran it. This is very useful if you ever get stuck.

The only error I got is this:

S_BROM_CMD_JUMP_DA_FAIL 

The reason and its solution is mentioned in this XDA thread:

This is because the 'modemmanager` package integrated by default within Linux Ubuntu 14.04 and later is not compatible with the MTK Flash Tool.

We can solve this issue by creating a udev rule blacklisting modemmanager for MediaTek devices. Create a file sudo gedit /etc/udev/rules.d/20-mm-blacklist-mtk.rules with the following contents:

ATTRS{idVendor}=="0e8d", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="6000", ENV{ID_MM_DEVICE_IGNORE}="1"

Restart udev for the changes to take effect:

service udev restart

If you run into more errors, you could get a hint about what is wrong from here: Flashtools errors and their solutions! - MIUI

Here is a guide on installing adb and fastboot on Ubuntu.

3
  • I've not tested the solution but it would be really great if it work on other Linux machines. I've two MTK devices and I have to use MS Windows just to use that tool. Thanks for the info!
    – Firelord
    Aug 12, 2015 at 22:47
  • @Firelord Which version of flashtool do you use on windows? If it's v5.x, this should work. Say, one of your devices can be flashed only with Flashtool v3, I could not find v3 for linux. Aug 13, 2015 at 2:30
  • if you do not want to run flashtool using sudo/root you have to add your user to the groups dialout and uucp Dec 14, 2015 at 12:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .