[Q] Flashing rom in Linux (Arch Linux)

Search This thread

shashpant

Member
May 10, 2012
30
3
Hi

I have installed Arch Linux but cannot find suitable material on setting up drivers and utilities for flashing rom on Linux specifically arch linux.

I can setup arch even if instructions are available for other distro Linux Mint and Ubuntu so any link can come in handy.

I was using flashtool in windows but after shifting to Arch, I am not sure whats the right procedure to do it.

I have unlocked bootloader and rooted rom (FXP kernel + MIUI) installed as of now which I want to change asap.

Please help.

Regards
 
G

GuestK00120

Guest
Hello,

You don't need any drivers,just install android-udev and android-sdk-platform-tools for adb and fastboot (both from aur).
Download latest flastool and run it from the terminal just like you do in windows (it requires jre and libusbx from official repos ).
 
Last edited:

shashpant

Member
May 10, 2012
30
3
Ok I have reinstalled fatsboot, android-sdk-platform-tools and openjre

Now I still cannot use fastboot devices , its list nothing.

Also since I should have adb available (from sdk-platform) when I run adb it says no command ?

Code:
[shashwat@arch fastboot]$ fastboot devices
[shashwat@arch fastboot]$ sudo fastboot devices
[shashwat@arch fastboot]$ sudo fastboot devices
[shashwat@arch fastboot]$ sudo adb
sudo: adb: command not found
[shashwat@arch fastboot]$ adb
bash: adb: command not found

I have also installed udev-android , previous I created 51-android.rules manually but still doesnt work.

fastboot won't list the devices nor it works.

Code:
[shashwat@arch fastboot]$ lsusb
Bus 002 Device 005: ID 413c:2107 Dell Computer Corp. 
Bus 002 Device 003: ID 046d:c051 Logitech, Inc. G3 (MX518) Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 021: ID 0fce:5146 Sony Ericsson Mobile Communications AB 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
G

GuestK00120

Guest
First of all make sure you have enabled usb debugging on your phone.Adb and fastboot should be under /opt/android-sdk/platform-tools/ and also 51-android.rules file in /usr/lib/udev/rules.d/ (with -rw-r--r-- permissions).

With these things i have everything in my sytem to flash roms etc,maybe you're missing something with your installation.
Also for more information check wiki from archlinux wiki.archlinux.org/index.php/android