Friday, December 28, 2012

Installing and Configuring FlashTool for Xperia Devices in Ubuuntu

I've been constantly switching between my two OSs, Win7 and Linux Mint for just flashing a ROM to my Xperia device. And ofcourse, I hate being in Windows. So, I found this nice little method to do the same in my Linux.
Credits go to these two pages:
http://duopetalflower.blogspot.com/2012/08/flashtool-in-ubuntu-linux.html
http://ubuntuforums.org/showthread.php?t=2084266
1. First of all go to
http://www.flashtool.net/downloads.php
and download the Linux version
2. Extract the 7z then the TAR somewhere and you find the directory FlashTool
3. Now some configuring, first of all you need a package called libusb. By the time you might come to this post the lib may get upgraded so just use your head to handle the scenarios a bit. First off, go to the site
http://libusbx.org
and download the latest tar.bz2 version.
4. Place it somewhere and cd into that directory
5. Type
sudo su
6. You're given root rights, type
tar xvf $(ls | grep "libusb")
This will extract the tar.bz2 file you've downloaded, considering that directory has no other file whose name contains "libusb".
7. Now type
cd $(ls | grep "libusb")
and you'll be inside the extracted directory.
8. Type
$ sudo su
$ ./configure && make && make install && sudo ldconfig
9. Now type this command the configure some USB settings for Flashing interface
sudo cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-usb.rules
10. Open that newly created file in nano using
sudo vi /etc/udev/rules.d/80-persistent-usb.rules
11. Add these lines to the end of the document
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777"
12. Most of the hard part is done, now just a final installation of the ia32-libs using
 sudo apt-get install ia32-libs 
13. Now you're good to go just go to the directory where your Flash Tool executable is and just type
./FlashTool

5 comments:

  1. Anonymous7:55 PM

    github link not working

    ReplyDelete
  2. Didn't know he moved the page. Updated, thanks for notifying :)

    ReplyDelete
  3. After step 8 i get this error: "udev support requested but libudev not installed"

    ReplyDelete
  4. ia32-libs has dependency problems..

    ReplyDelete
  5. This might solve the problem. I don't have the device anymore so can't check at the moment. http://stackoverflow.com/questions/23712859/libusb1-fails-do-configure-task-with-udev-support-requested-but-libudev-not-ins

    ReplyDelete

Post your comment here. If you want to say something about programming problems, scripts, software etc, please try to be as descriptive as possible.

Connect Rapoo MT750S with Linux (Tested on Manjaro)

 I bought this obvious copy of MX Master 2S in hopes of having the device switching functionality along with a lightweight body because I ha...