Home page of this blog

Sunday, August 19, 2012

Flashtool in Ubuntu Linux

Everytime I wanted to change firmware for my Xperia phone, I used to reboot into Windows 7

Recently I feel lots of Blue Screen Of Death in Windows 7 (think due to nvidia driver problem), and did not want to reinstall Windows 7

I tried flashtool in Ubuntu Linux and it worked, I changed firmware in my Xperia phone!! Thanks XDA devs and Flashtool devs

Here is how

Download flashtool for Linux from (Refer, http://forum.xda-developers.com/showthread.php?t=1588586)

http://androxyde.github.com/Flashtool/


After downloading the linux version with extension tar.7z, unzip it

To do this, install p7zip, p7zip-full from synaptic or from software center




Unzip the Flashtool folder,

Add this rules to following file (create this file by copying existing 70-persistent-net.rules as follows,
sudo cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-usb.rules)



sudo vi /etc/udev/rules.d/80-persistent-usb.rules

and add


SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777"


Should look like this




Before running flashtool install ia32-libs

sudo apt-get install ia32-libs

To run the flashtool enter the directory where the 7zip got extracted and run FlashTool as super user

For e.g I did this



cd Downloads/FlashTool/




sudo su


 ./FlashTool


It should look like this



I choose to install a firmware to my Xperia phone and Flashtool in action





After installing new Firmware my phone screen looks as below 


19 comments:

  1. I rooted my phone with latest flashtool 0.9.8

    and what a difference it made to ICS, I removed power saver app as I suspected it is keeping my screen awake always. Till now I could not reproduce screen wakeup issue after freezing power saver app

    I have disabled google+,facebook, twitter, all extensions to album app and unplug charger reminder earlier in ICS without rooting (before rooting to check if they were causing screen wake up issue)

    Now I left all the disabled apps as is, I have browser to check facebook, no need for a battery gobbler service running in background

    ReplyDelete
  2. I, for one, would appreciate if you updated this guide to work with the latest (0.9.9.0) version of FlashTool that uses libusbx 1.0.14.

    Right now I'm stuck at something like "libusbx 1.0.14 needed libusbx 1.0.12 found" or some such...

    ReplyDelete
    Replies
    1. Oh ok, will try it and update this guide. Meanwhile (you already know this I think) have multiple flashtool folders so that there is a fallback when there is some problem

      Delete
    2. I tested with 0.9.9 and it works, could you tell me which version of Ubuntu you used

      I am using Ubuntu 12.04

      Delete
  3. Hello Sankaran,

    I've just install all and run Flashtool but is this version only for XPERIA devices ¿?

    ReplyDelete
    Replies
    1. OK :) do you know if there is another app available for the rest of devices ?¿¿?

      Specially for MTK devices. I'm using MTK6577 :)

      Delete
    2. Check this, http://forum.xda-developers.com/showthread.php?t=1846397

      The thread explains about a program called TSsparky for rooting

      For rooting any device, refere superoneclick,

      http://www.xda-developers.com/android/do-everything-with-superoneclick-for-android/

      and

      http://www.xda-developers.com/android/superoneclick-updated-to-2-2-now-features-zergrush-exploit/

      Delete
    3. Just search for superoneclick and you could see thousands of results

      Delete
  4. Thanks.. but it's already rooted. My intention is flashing cooked ROMS from LINUX Ubuntu or Debian without use Windows.

    I was thinking to change
    SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777"

    for my idvendor code.. but is not possible ¿?



    ReplyDelete
    Replies
    1. If superoneclick is written in java, we could move share adb from flashtool and try with other phone

      as far as the idVendor, I guess

      sudo lsusb

      should help (or sudo lspci) to get the vendor id

      Delete
  5. how to save that addition :/


    SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777"

    ReplyDelete
    Replies
    1. if you don't know how to use vim, use nano or gedit

      anyhow, to save in vi editor, use :wq (to come to command mode, use escape keystroke)

      Delete
  6. no idea wat u said..
    lol
    i'm new to linux

    ReplyDelete
    Replies
    1. :)

      Download the rules file from below link(I uploaded my rules file)

      https://docs.google.com/file/d/0B_nTbpzPbbNJOExLbzVBTWhHSmc/edit

      Copy this file into /etc/udev/rules.d/ from command line, say you downloaded the rules file into Downloads folder, open terminal,

      cd Downloads
      sudo cp 80-persistent-usb.rules /etc/udev/rules.d/

      the above command will ask your password, just key in and the rules will get copied

      Delete
  7. Hi there,

    I just tried installing Flash onto my system (Ubuntu 11), tried installing Libusb dev package - didn't worked, and I tried doing it by compiling Libusbx from binary, but it didn't worked out.It gives me the same error when I try to run Flash tool,

    Libusb not found. Minimum libusb version is 1.0.14
    It can be downloaded on http://www.libusbx.org

    I can not figure what more to do, as I have bricked my phone very badly.

    Hope to see you reply soon on this.

    ReplyDelete
    Replies
    1. Could you try flashtool from Ubuntu 12.04, libusb in Ubuntu 11 maynot be having recent versions of libusb

      Delete