Figured out what i was doing wrong please close.
i was trying to flash the radio for the droid 3 to use US AT&T and T-mobile and i always get stuck at this step i need some help i have the device already in AP Fastboot mode and ive tried various combination of the command moto-fastboot flash radio radio.img and nothing seems to work
heres what ive done on cmd
C:\Users\User>cd desktop
C:\Users\User\Desktop>cd fastboot
C:\Users\User\Desktop\fastboot>moto-fastboot flash radio radio.img
'moto-fastboot' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe flash radio
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe flash radio radio.img
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>
You need to have the cmd in the folder where the files are allocated. You can't just enter a command from any folder.
Example: if your files are in c:/fastboot, these are the commands you need to run before using the program commands :
CD.. (repeat this until you are in c
CD fastboot
CD moto-fastboot.exe yadda yadda yadda you get it
Rocking with my M3 and XDA app
There is not such folder that has this command on the file, I need to do this, PLEASE SOMEONE HELP....
where are you files?
for example
2) boot device to fastboot mode.(make sure to have all motorola drivers installed on your PC)
3) move the radio img and the MOTO-FASTBOOT to a folder (ex. c:/Root)
4. unzip files if zipped
5) Open the CMD, and enter the these commands.
cd/
cd c:root
moto-fastboot.exe flash radio radio.img
Related
Through fastboot do you extract the .img file and then place that in your SD card?
Or can you simply flash the .zip file through fastboot?
Extract the .img to your pc.
fastboot flash radio c:\locationof.img
Sorry I don;t understand what you said or maybe I did.
Extract the .img to your pc
Place the .img in your sd card
start up fastboot and flash?
AustinAce said:
Sorry I don;t understand what you said or maybe I did.
Extract the .img to your pc
Place the .img in your sd card
start up fastboot and flash?
Click to expand...
Click to collapse
after you placed .img to your pc, you dont need to place it again on your sdcard!!
fastboot your mobile and connect it via USB
do you remember what you did when you installed recovery??
fastboot flash recovery recovery-RA.img
you should do the same, but with radio!!
fastboot flash radio c:\location_of_radio.img
Extract it to a folder on your pc, such as your desktop, then use the command to flash the radio
fastboot flash radio C:\Users\NAME\Desktop\radio.img
Obviously, you replace NAME with your username for your computer, and you do a similar code to flash the spl.
assuming your not on vista you can simply type fastboot flash radio, then physically drag the radio file onto the cmd line and it will input the file location....
Apparently I have to download some SDK files in order to fastboot over USB. So this was entirely no help unless someone wants to take me step by step on THEE ENTIRE PROCESS then be my guest.
or your could do your own work and read the FASTBOOT for dummies thread....
literally 3 lines up from this thread
Hey guys im trying to flash CWM onto my incs, I have already unlocked the bootloader via htcdev site.
Every time i attempt to flash it through fastboot usb it doesnt work
I have downloaded the cwm img file for the incs, but have no idea what the md5 txt under the download link means, do I have to do something with that txt in order to do it correctly?
I have the img file saved into the same folder on my pc along with fastboot.exe, adb.exe adbwinapi.dll and adbwinusbapi.dll
I then open cmd and type in cd c:\android (andoid is the folder name with the files above)
After this I connect my phone via usb to the pc and put it into fastboot usb mode
I then type into cmd the following command fastboot flash recovery recovery.img and it gives me the message error: cannot load recovery image, I renamed the cwm img file to recovery.img
Ive even tried entering this command fastboot flash recovery c:\android\recovery img but it gives me the same error message am I doing this right or am i missing something? ive followed all the steps from this thread even read all comments http://forum.xda-developers.com/showthread.php?t=1122694
any help would be greatly appreciated, Thanks
Never mind I managed to flash CWM and Flash CM7
when I use NVflash to open this file "flash-recovery.bat" in "o2x-nvflash-recovery-v5_v30a_smaller_font.rar" then I got this message:
NVFlash Recovery Flasher
1. bootloader unlock
X. Exit
"choice" is not recognized as an internal or external command, operable program or batch file.
Anyone can help me ?
I have an xt1060 that i'm trying to flash twrp onto.. I have adb and fastboot (mfastboot as well). When trying to flash twrp from philz touch i get error:
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'recovery.img': No error
Anyone know what the heck i've done wrong?
What command are you using to flash? Do you have the filename right? Are you in the proper directory or referencing the proper location of the recovery image?
Sent from my Moto X
imnuts said:
What command are you using to flash? Do you have the filename right? Are you in the proper directory or referencing the proper location of the recovery image?
Sent from my Moto X
Click to expand...
Click to collapse
1 & 2) (from bootloader scren) mfastboot flash recovery recovery.img (i've renamed my file believing that could have been the problem)
Also i've tried twrp 2.7, 2.8, and philz touch just to see if it was the file or a mfastboot problem. They all result in the same message.
3) My files are placed in my adb folder.
Is your bootloader unlocked?
Sent from my Moto X
Yes sir it is.
http://android.stackexchange.com/qu...error-cannot-load-recovery-clockwork-no-error
that is, make sure your command prompt path is the fastboot folder, or use the full path name for the recovery file.
easy shortcut fix: create a shortcut to cmd.exe in windows, then right click it and choose properties, then set start from box to be your fastboot/adb folder
note that this is basically what imnuts asked you initially but you must have misunderstood:
Are you in the proper directory or referencing the proper location of the
recovery image?
Click to expand...
Click to collapse
Sorry for misunderstanding. I'm opening cmd from the adb and fastboot folder. This is also where my recovery img is. Edited environmental variable path to minimal adb and fastboot folder as well.
Still, folder referencing issues seem to be the most likely source of the problem. Here's another example of the exact same issue. Try what the guy did, which was to create a new folder, move everything to that folder, then run command prompt from that folder, and try mfastboot flash again.
http://forum.xda-developers.com/moto-x/moto-x-qa/fastboot-flash-error-t2808229/page2
You can also try running command as administrator, see if that helps. But again, make sure of the path.
I tried twice now with the new folder.. once, opening cmd from within the folder and once cd to file path. I got the same result.
Stupid me
I apologize to all of you who have been helping me figure out my flashing problems. I just managed to flash TWRP. My issue was when i renamed the twrp file to "recovery.img" the computer also attributed the file extension so what i was actually trying to flash appeared to the computer as (recovery.img.img)! Sorry again fellas. I found out by looking at the properties of the recovery.img and I saw my error.
So i kind of got a situation here , i originally wanted to be rooted and have my nexus 6 non encrypted so i had unlocked and rooted my phone. After i ran the "./fastboot erase userdata" command i flashed the custom recovery again and booted into it. From there i thought i would be able to "./adb sideload" a stock custom rom non encrypted but for some reason i was having difficulty running that command. My laptop was not seeing the phone, so after about 30 min of playing around with it trying to get it to work i figured id just start over fresh. From this point i dont have an OS installed so i knew i would have to download the appropriate files for the nexus 6 so i did. I tried both methods, the "./flash-all.sh" command and flashing everything one by one rebooting the bootloader in between flashes and still kept getting this same error
fastboot(1561,0xa04aa1d4) malloc: *** mach_vm_map(size=1681293312) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1679613116 bytes
error: update package missing system.img
and now im stuck in fastboot mode at least, but cannot revert back to stock unless im missing something here. Can someone help please
AnthonyAldrete said:
So i kind of got a situation here , i originally wanted to be rooted and have my nexus 6 non encrypted so i had unlocked and rooted my phone. After i ran the "./fastboot erase userdata" command i flashed the custom recovery again and booted into it. From there i thought i would be able to "./adb sideload" a stock custom rom non encrypted but for some reason i was having difficulty running that command. My laptop was not seeing the phone, so after about 30 min of playing around with it trying to get it to work i figured id just start over fresh. From this point i dont have an OS installed so i knew i would have to download the appropriate files for the nexus 6 so i did. I tried both methods, the "./flash-all.sh" command and flashing everything one by one rebooting the bootloader in between flashes and still kept getting this same error
fastboot(1561,0xa04aa1d4) malloc: *** mach_vm_map(size=1681293312) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1679613116 bytes
error: update package missing system.img
and now im stuck in fastboot mode at least, but cannot revert back to stock unless im missing something here. Can someone help please
Click to expand...
Click to collapse
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
funny i just did this exact same thing like you instructed and was about to reply to this post saying i resolved it hahah. Thanks anyways though =), i dont understand why i was getting that though because i had every file in the same place
No worries glad you got it working
qnc said:
No worries glad you got it working
Click to expand...
Click to collapse
Also found out that you Dont do the ./fastboot erase userdate command because it puts 0s in and leaves the phone unbootable which was my root cause for my phone being stuck. Instead, after flashing the boot.IMG you do the ./fastboot partition userdata instead and it will do a factory reset and when booting it will not encrypt the phone.
qnc said:
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
Click to expand...
Click to collapse
And I was having the same issues executing the flash all command too until I opened the command in a text editor and for every command put the "./" in front and was able to execute it but this is the first time I've gotten an error. My nexus5 worked with this command no problem
worked for me but still could not decrypt
qnc said:
it looks like the script is looking for a file that is not in the proper directory
the flash all script has never worked for me I have always had to manually flash the images.
looks like you are on a mac since you are using the ./with the command
follow the directions below and you should get back to stock
since you are already in bootloader mode
Download the required factory image files to your computer and extract them
Create an empty directory. All of the files that are required, need to be in one (i.e., the same) directory. It does not matter what it is called, but all the files need to be in there, with NO subfolders. EVERYTHING needs to be extracted into this one directory; (it is easier this way)
Download the version of Android you want to your new directory. Make sure you are using a nexus 6 image.
Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;
Open a command prompt in the same directory (i.e., make sure you are in the same directory as your files are located). You can hold the shift key when you are in the folder in Windows explorer and right-click in a blank spot and it will open a command prompt. In Ubuntu or MAC just cd to the directory.
Type in the commands into the command prompt
Make sure your computer recognizes your device by typing: fastboot devices
Flash the bootloader: fastboot flash bootloader bootloader-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the radio: fastboot flash radio radio-some-description-number.img
Reboot: fastboot reboot-bootloader
Flash the system partition: fastboot flash system system.img
Flash the data partition: fastboot flash userdata userdata.img
Flash the kernel/ramdisk: fastboot flash boot boot.img
Flash the recovery partition: fastboot flash recovery recovery.img
Erase the cache partition: fastboot format cache
Reboot: fastboot reboot
Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked.
No you can root or decrypt. Search for directions on the forum or the internet.
Click to expand...
Click to collapse
so all of this worked for me and its back up and running, but my phone still says that its encrypted