Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,332 Members 51,771 Now Online
XDA Developers Android and Mobile Development Forum

[HOW TO][Unlocked Bootloaders]Install Fastboots, CWM, Tips & Ticks, and More

Tip us?
 
skeevydude
Old
(Last edited by skeevydude; 15th April 2014 at 03:32 PM.)
#1  
skeevydude's Avatar
Recognized Contributor - OP
Thanks Meter 2854
Posts: 2,850
Join Date: Feb 2012
Location: Hot Springs
Info [HOW TO][Unlocked Bootloaders]Install Fastboots, CWM, Tips & Ticks, and More

Now that the bootloader is unlocked, everyone is asking "WTF do I do now?". Well, here's a bit of help to get you started. I'm assuming you already have adb and fastboot setup and working -- if not, quit reading and get that taken care of. Also, I only run Linux...so I'll try to be transparent and only list the fastboot commands.

I assume that you're not a complete moron and can Google what you don't understand.

Don't use the stock\SDK fastboot binary for flashing /system.
An updated fastboot binary for Lin\Win\Mac can be found here on the Batakang FTP from our local, neighborhood Mattlgroff.
Linux -- Rename the file to moto-fastboot and add it to a directory in your $PATH -- Ubuntu\Debian users can just add it to ~/bin (enabled by default)
Windows -- Rename the file to moto-fastboot and put it somewhere handy...that's on you to decide.

ROOT\ADMINISTRATOR INFO
On Linux, you might have to run as root in order to run some of the fastboot commands. If your system uses sudo for root commands, typing "sudo -i" will bring up an interactive sudo shell so you don't have to type sudo over and over again. If your system uses su for root, well, you already know the command.

On Windows, you have to enable Administrator Privileges to be able to run some of the fastboot commands.

Linux Terminal Hints
~/ means your home directory -- example -- "gedit ~/Documents/file.txt" would open file.txt in gedit easier than /home/yourusername/Documents/file.txt

You can add a * to file names and directories to not type as much -- example -- "gedit ~/Doc*/file.txt" is the same as the command above, only shortened. If two files have similar names, like Documents and Downloads, then you have to type the name up until the firs different character then add *.

Use the command "../" to go up\back one directory. The command is stackable so "../../" would go back 2 directories and so forth and so on.

Use "cd" to change directories. Is an example really needed for this...

Proper Apps to Use
For zip file editing, use 7-zip on Windows and Archive Manager (file-roller) on Linux
For editing text files on Windows use Notepad++ or any text editor that has unix line breaks -- do not use default Notepad or Wordpad -- you've been warned. Use what ever you prefer on Linux. I prefer Gedit myself.

Basic Fastboot Command Syntax
  • fastboot flash "partition" "image" -- flashes partition image where partition is where to write to and image is the path to the image being written.
    example -- fastboot flash system /path/to/system.img
  • fastboot -w -- does a factory reset; to expedite things, "-w" can be added to "fastboot flash system system.img -w"
  • fastboot continue -- continue with the boot process
  • fastboot devices -- list devices fastboot recoginzes
  • fastboot -s "device model number" -- set the device fastboot will write commands to; use "fastboot devices" to find model number
  • fastboot reboot bootloader -- reboot phone into fastboot mode (or restart fastboot mode while in fastboot); same as "adb reboot bootloader"
  • fastboot help -- list all of this & more

Command Info
Not all the fastboot commands work for us. Specifically, the "erase" commands. If a wipe command doesn't work, skip it. I'll mark them with a ! at the end if it might fail.

Install CWM Recovery by Epinter
  1. Read Epinter's RAZR HD CWM Thread
  2. Download the recovery image
  3. On stock rom, navigate to /system/etc and rename install-recovery.sh to install-recovery.sh.bak
  4. Reboot into fastboot -- use "adb reboot bootloader" from Terminal\Command Prompt
  5. Wipe the existing recovery -- "fastboot erase recovery" !
  6. Flash the recovery with "fastboot flash recovery cwmrecovery6028-xt925_20130219-epinter.img"
  7. That's it, CWM is installed.

Install Stock Fastboots JB
  1. Download the respective fastboot zip you want to use
  2. Extract the zip
  3. Open a terminal to the extracted zips directory
  4. Reboot into fastboot
  5. Type the following commands in this order
  6. fastboot flash boot boot.img
  7. fastboot flash devtree device_tree.bin
  8. fastboot erase system -w !
  9. fastboot flash system system.img
  10. fastboot -w
  11. fastboot erase cache !
  12. fastboot reboot

Install Stock Fastboots ICS
  1. Download the respective fastboot zip you want to use
  2. Extract the zip
  3. Open a terminal to the extracted zips directory
  4. Reboot into fastboot
  5. Type the following commands in this order
  6. fastboot flash boot boot.img
  7. fastboot flash devtree device_tree.bin
  8. fastboot erase system -w !
  9. fastboot flash system system.img.ext4
  10. fastboot erase cache !
  11. fastboot -w
  12. fastboot reboot

Install Alternate Radio
  1. Reboot into fastboot
  2. fastboot flash modem NON-HLOS.bin
  3. fastboot flash fsg fsg.mbn
  4. fastboot erase modemst1
  5. fastboot erase modemst2
NON-HLOS.bin is found inside a fastboot zip.

Easy Kernel Install
  1. Download kernel-flash.zip in the attachments[/URL]
  2. Open the zip
  3. Replace the zips current boot.img and device_tree.bin from the fastboot of your choice
  4. Install the zip with CWM
By default, kernel-flash.zip comes with Mex Retail kernel and devtree

Easy CWM Install
  1. Download recovery-flash.zip in the attachments[/URL]
  2. Install the zip with CWM
Not sure if its SS compatible, but it is CWM compatible (for the lazy Photon Q users).

Obtain root after installing a Stock Firmware
There are two choices for obtaining root after a stock flash. the closed source SuperSu by Chainfire & and the open source Superuser by Koush.
Download SuperSu zip from Chainfire (Closed Source)
Download Superuser from Koush (Open Source)
  1. Download the one of the root zips above.
  2. Reboot into CWM/TWRP -- adb reboot recovery
  3. Locate and flash the zip (see below for an alternative way)
  4. Reboot, that's it. Nice not having to run exploits\hacks\Linux just for root

Install Rom/Zip file with ADB + CWM
CWM has the awesome ability to install zip files without having to manually copy them to the phone first. All's necessary is a PC with working adb.
  • Reboot into recovery
  • Select "install zip from sideload"
  • On PC, type "adb sideload /path/to/zip" and press enter
  • The zip will now be copied to the phone's cache & install
  • Once installed, do any requirements you'd normally do like wipe caches, etc
Attached Files
File Type: zip kernel-flash.zip - [Click for QR Code] (5.55 MB, 548 views)
File Type: zip recovery-flash.zip - [Click for QR Code] (6.62 MB, 1149 views)
If I managed to help you, click Thanks.
Please post help questions in your respected devices Q&A forum. That's we have them.
If you need my help, add an @skeevydude to your post or quote me. I'll see it.
Thank You & Have a Nice Day.
Help Me Help You. Sign up for 15gb of free storage at Copy.com using this referral -- I get 5 more GB and you get 5 more GB. We both win.
Atrix HD Off Topic Thread
"Remember there are no stupid questions, just stupid people." -- Mr. Garrison
The Following 37 Users Say Thank You to skeevydude For This Useful Post: [ Click to Expand ]
 
miketravis
Old
#2  
Junior Member
Thanks Meter 3
Posts: 27
Join Date: Apr 2011
I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2
 
worlddominatiin
Old
#3  
worlddominatiin's Avatar
Senior Member
Thanks Meter 47
Posts: 179
Join Date: Dec 2012
Location: Houston
Quote:
Originally Posted by miketravis View Post
I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2
Unless you're not rooted with an unlocked BL, there's really no reason why it shouldn't work?

Sent from my N4'd Atrix HD
 
miketravis
Old
#4  
Junior Member
Thanks Meter 3
Posts: 27
Join Date: Apr 2011
I was rooted before unlocking... shouldn't it still be rooted?

Sent from my MB886 using Tapatalk 2
 
LeGenDz R3DeaDz
Old
#5  
LeGenDz R3DeaDz's Avatar
Senior Member
Thanks Meter 15
Posts: 170
Join Date: Jun 2012
Location: Montreal
Quote:
Originally Posted by miketravis View Post
I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2
Did you uninstall safestrap?
Devices: Google Nexus 5 Bright Red 32gb
Rom: Stock Rooted 4.4.4
 
miketravis
Old
#6  
Junior Member
Thanks Meter 3
Posts: 27
Join Date: Apr 2011
Yep. Should I reinstall it and try again?

Sent from my MB886 using Tapatalk 2

---------- Post added at 01:40 PM ---------- Previous post was at 01:30 PM ----------

reinstalled safestrap and tried again, success!!

Not sure why that made a difference but I got it so thank you very much.
 
tvd0405
Old
#7  
Senior Member
Thanks Meter 41
Posts: 339
Join Date: Oct 2011
Quote:
Originally Posted by miketravis View Post
Yep. Should I reinstall it and try again?

Sent from my MB886 using Tapatalk 2

---------- Post added at 01:40 PM ---------- Previous post was at 01:30 PM ----------

reinstalled safestrap and tried again, success!!

Not sure why that made a difference but I got it so thank you very much.
Still did not work for me
 
miketravis
Old
#8  
Junior Member
Thanks Meter 3
Posts: 27
Join Date: Apr 2011
Did you install recovery inside safestrap? Then fastboot cwm?

Sent from my MB886 using Tapatalk 2
 
tvd0405
Old
#9  
Senior Member
Thanks Meter 41
Posts: 339
Join Date: Oct 2011
Quote:
Originally Posted by miketravis View Post
Did you install recovery inside safestrap? Then fastboot cwm?

Sent from my MB886 using Tapatalk 2
Yes, I did. After fastboot, I followed the OP instructions to uninstalling the SS recovery and SS app. Boot into recovery and got the open android.
 
mandrsn1
Old
#10  
Senior Member
Thanks Meter 59
Posts: 401
Join Date: Jun 2009
Quote:
Originally Posted by tvd0405 View Post
Yes, I did. After fastboot, I followed the OP instructions to uninstalling the SS recovery and SS app. Boot into recovery and got the open android.
same here.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes