I have a vzw moto x and I'm looking to unroot. Unfortunately, I have a mac, so the RSDlite that works only with Windows will not install. I don't have access to any vmware or a windows disc, so my question is, is there any way to fully unroot using only mac software? Thanks!
You can use fastboot to flash the files instead of rsdlite.
Sent from my XT1058 using Tapatalk 4
jhnl33 said:
I have a vzw moto x and I'm looking to unroot. Unfortunately, I have a mac, so the RSDlite that works only with Windows will not install. I don't have access to any vmware or a windows disc, so my question is, is there any way to fully unroot using only mac software? Thanks!
Click to expand...
Click to collapse
I just tried that and could do everything except for `system.img`. Worked fine with the same files and everything using RSDLite. I am not sure why, but that was my experience.
jhnl33 said:
I have a vzw moto x and I'm looking to unroot. Unfortunately, I have a mac, so the RSDlite that works only with Windows will not install. I don't have access to any vmware or a windows disc, so my question is, is there any way to fully unroot using only mac software? Thanks!
Click to expand...
Click to collapse
Download the FXZ for whichever version you have (ATT, VZW, etc.) then just extract the recovery.img and system.img. fastboot flash the recovery.img and system.img. reboot and you should be able to then just do a standard factory reset and you'll be back to stock. worked for me at least. I did the factory reset for good measure but flashing the system may suffice.
SnowKing25 said:
Download the FXZ for whichever version you have (ATT, VZW, etc.) then just extract the recovery.img and system.img. fastboot flash the recovery.img and system.img. reboot and you should be able to then just do a standard factory reset and you'll be back to stock. worked for me at least. I did the factory reset for good measure but flashing the system may suffice.
Click to expand...
Click to collapse
I'm having trouble flashing system.img. Terminal tells me that "bootloader variable not supported", "invalid sparse file format at header magi" and then "bootloader prefllash validation failed" and then "FAILED (remote failure)."
What do I do? I don't want to risk getting stuck in boot loop so I just have it sitting in fastboot mode...
Well, I'm not terribly adept at this myself, but I would say make sure that you downloaded the proper version of the FXZ. Extract the files, and I would flash the boot.img first, then the system.img. Mine worked flawlessly. Make sure you have the most updated fastboot and and stuff?
Sent from my XT1058 using xda app-developers app
jhnl33 said:
I'm having trouble flashing system.img. Terminal tells me that "bootloader variable not supported", "invalid sparse file format at header magi" and then "bootloader prefllash validation failed" and then "FAILED (remote failure)."
What do I do? I don't want to risk getting stuck in boot loop so I just have it sitting in fastboot mode...
Click to expand...
Click to collapse
Sounds like you have the wrong FXZ or the files may be corrupt. Try downloading again.
Tried again, still get the same error. Have the latest fastboot and got the right vzw firmware...idk what's wrong
Sent from my XT1060 using Tapatalk
In the same boat as the OP.
jhnl33, did you get the FXZ from here: sbf.droid-developers(dot)org/ghost_rcica/list.php
A lot of people have suggested using mfastboot.exe instead of regular fastboot. The file is too big to flash the system.img. mfastboot breaks the file down for flashing. I'm on the phone otherwise I would add the link. This is what I used and it worked flawlessly.
Sent via my MOTO X Press
buyayo said:
In the same boat as the OP.
jhnl33, did you get the FXZ from here: sbf.droid-developers(dot)org/ghost_rcica/list.php
Click to expand...
Click to collapse
Yeah, that's were I got it. I'm fine now; I just borrowed a friends Windows computer and used RSDLite.
lilcdroid said:
A lot of people have suggested using mfastboot.exe instead of regular fastboot. The file is too big to flash the system.img. mfastboot breaks the file down for flashing. I'm on the phone otherwise I would add the link. This is what I used and it worked flawlessly.
Sent via my MOTO X Press
Click to expand...
Click to collapse
Yeah, unfortunately, mfastboot.exe is a windows only thing, as far as I know...
jhnl33 said:
Yeah, that's were I got it. I'm fine now; I just borrowed a friends Windows computer and used RSDLite.
Click to expand...
Click to collapse
Yeah, I've been in the same boat. Typically I wind up using my work computer which is running XP. Fortunately, I have install privileges and a good boss =)
FYI: I've used Linux scripts on my previous phone (Atrix 2) but I don't code much. So if you find, or someone develops, a Linux option it'll work on Mac.
Sent from my XT1058 using xda app-developers app
http://forum.xda-developers.com/showthread.php?p=33228220
I believe the third post is the one for Linux.
Sent via my MOTO X Press
lilcdroid said:
http://forum.xda-developers.com/showthread.php?p=33228220
I believe the third post is the one for Linux.
Sent via my MOTO X Press
Click to expand...
Click to collapse
I'm in the same boat here- I only have a mac at home AND at work... No access to a windows machine without bothering a friend. I found the motofastboot osx32 and 64bit files but am kind of stumped as to how to execute those mfastboot over the usual fastboot I've been using this whole time. I've been able to flash everything back to stock but system.img because the file is too large, so if anyone can somehow explain to me how I can execute motofastboot commands using these files I'd really appreciate it, as it's really my only option to have the .img broken up and successfully installed.
Thanks!!!
Any update on this?
Same boat as OP.
---------- Post added at 08:49 AM ---------- Previous post was at 08:41 AM ----------
I tried using BHUNDVEN's [TOO] found in OG Android Dev but keep getting
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$ moto-x-flash VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-53_CFC_1FF.xml
Traceback (most recent call last):
File "/usr/local/bin/moto-x-flash", line 24, in <module>
tree = ET.parse(firmware_xml)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 2
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$
Thanks for the help!
---------- Post added at 09:18 AM ---------- Previous post was at 08:49 AM ----------
Ok so I needed to rename the .xml file to a .zip file ... extract it. I put the contents into the "moto-x-tools" folder and then run the command and keep getting "command not found".
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$ moto-x-flash VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-53_CFC_1FF.xml
Running: fastboot oem fb_mode_set
/bin/sh: fastboot: command not found
Running: fastboot flash partition gpt.bin
/bin/sh: fastboot: command not found
Running: fastboot flash motoboot motoboot.img
/bin/sh: fastboot: command not found
Running: fastboot flash logo logo.bin
/bin/sh: fastboot: command not found
Running: fastboot flash boot boot.img
/bin/sh: fastboot: command not found
Running: fastboot flash recovery recovery.img
/bin/sh: fastboot: command not found
Running: fastboot flash system system.img
/bin/sh: fastboot: command not found
Running: fastboot flash modem NON-HLOS.bin
/bin/sh: fastboot: command not found
Running: fastboot erase modemst1
/bin/sh: fastboot: command not found
Running: fastboot erase modemst2
/bin/sh: fastboot: command not found
Running: fastboot flash fsg fsg.mbn
/bin/sh: fastboot: command not found
Running: fastboot erase cache
/bin/sh: fastboot: command not found
Running: fastboot erase userdata
/bin/sh: fastboot: command not found
Running: fastboot erase customize
/bin/sh: fastboot: command not found
Running: fastboot erase clogo
/bin/sh: fastboot: command not found
Running: fastboot oem config carrier vzw
/bin/sh: fastboot: command not found
Running: fastboot oem fb_mode_clear
/bin/sh: fastboot: command not found
Flashing was successful!
Running: fastboot reboot
/bin/sh: fastboot: command not found
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$
cscohammers7 said:
I'm in the same boat here- I only have a mac at home AND at work... No access to a windows machine without bothering a friend. I found the motofastboot osx32 and 64bit files but am kind of stumped as to how to execute those mfastboot over the usual fastboot I've been using this whole time. I've been able to flash everything back to stock but system.img because the file is too large, so if anyone can somehow explain to me how I can execute motofastboot commands using these files I'd really appreciate it, as it's really my only option to have the .img broken up and successfully installed.
Thanks!!!
Click to expand...
Click to collapse
I just got mine to flash system with the 64 bit on my MacBook Pro just renamed the moto-fastboot-osx64 to mfastboot and did the command: mfastboot flash system system.img and it worked like a charm! Unrooted and took the OTA no issues! Then I unlocked the bootloader since it no longer voids the warranty on the Dev Ed.
lilcdroid said:
http://forum.xda-developers.com/showthread.php?p=33228220
I believe the third post is the one for Linux.
Sent via my MOTO X Press
Click to expand...
Click to collapse
Tried to use the Linux one, but got an error, any help with how to get this to work?
Try snapdragon-fastboots
Try snapdragon-fastboots, from skeevydude post 21, but I was able to flash twrp-2.6.3.1-ghost-4.4.img in Linux Mint 13 on my Moto X dev using ... fastboot flash recovery twrp-2.6.3.1-ghost-4.4.img and it gave me the option to flash root. I saw for Mac/Darwin also.
For anybody still wondering, here is a link to download the mfastboot files for mac 32 and 64bit
https://gist.github.com/crazed/7670423
Related
A few days ago I got my Atrix HD and immediately rooted and subsequently unlocked the bootloader. Later I successfully flashed EcHoFiiVe's paranoidAndroid port... I didn't really like it because of the aspect ratio (too tiny) so I tried to flash back to a stock ROM. I lost and later accidentally deleted the backup I had made of the stock ROM that came on the device so that is now out of the question but for some reason, no matter what I do, I can't make changes to /system from the recovery or from the bootloader using fastboot commands. I've tried inputing
Code:
fastboot erase system -w
and it told me that I didn't have sufficient permissions and that the command failed. Therein lies my problem. Fortunately, I have a runnable backup (PA) I just really wish to try something different and the device is adamantly against the idea. According to the bootloader the device is unlocked with status code 3. Any help will be greatly appreciated!
read this
http://forum.xda-developers.com/showthread.php?t=2226527
frog1982 said:
read this
http://forum.xda-developers.com/showthread.php?t=2226527
Click to expand...
Click to collapse
I've read through that and I can now see a line that I missed that said that it was a common issue for that particular command to not work but I still don't know what to do about my inability to flash a different ROM. I have tried to mount /system before flashing and I've tried wiping /system using the recovery before flashing, all without avail. Do you have any advice on how to wipe the system partition?
you do not have to wipe it just fastboot flash Mex retail to overwrite it and you will be starting over.
frog1982 said:
you do not have to wipe it just fastboot flash Mex retail to overwrite it and you will be starting over.
Click to expand...
Click to collapse
to be clear, are you saying I can just do this:
Extract the zip
Open a terminal to the extracted zips directory
Reboot into fastboot
Type the following commands in this order
Code:
fastboot flash boot boot.img
fastboot flash devtree device_tree.bin
fastboot flash system system.img
fastboot -w
fastboot reboot
sparkplugDev said:
to be clear, are you saying I can just do this:
Extract the zip
Open a terminal to the extracted zips directory
Reboot into fastboot
Type the following commands in this order
Code:
fastboot flash boot boot.img
fastboot flash devtree device_tree.bin
fastboot flash system system.img
fastboot -w
fastboot reboot
Click to expand...
Click to collapse
yes but make sure you also have the snap-fastboot files in the folder you are working in or in your path
Hey guys I'm mostly a lurker not too much of a poster I would respond to "BHUNDVEN"'s thread ([TOOL] Moto X FXZ Flashing Script (100% back to stock) [10/03/2013]) over on the OG Android development sections but alas my "Post count" is too low.
I keep getting this when trying to run the final command "moto-x-flash [insert .xml file]"
Any help? Thanks!
Last login: Thu Nov 7 00:31:17 on ttys001
jeffreys-mbp:~ jeffreymarshall$ cd desktop/moto-x-tools-0.2.0
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$ sudo python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/moto-x-flash to 755
running install_egg_info
Removing /Library/Python/2.7/site-packages/moto_x_tools-0.2.0-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/moto_x_tools-0.2.0-py2.7.egg-info
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$ moto-x-flash VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-53_CFC_1FF.xml
Traceback (most recent call last):
File "/usr/local/bin/moto-x-flash", line 24, in <module>
tree = ET.parse(firmware_xml)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 2
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$
I'm not to sure I have the python pkg installed correctly. Had to use the "sudo" command to get it to take.
AceBoonKoon said:
I'm not to sure I have the python pkg installed correctly. Had to use the "sudo" command to get it to take.
Click to expand...
Click to collapse
i cant help you with that toolkit as i don't use it. But if you are merely trying to flash your phone to stock then find the rsd back to 100% stock thread and do that. Just as simple as any other tool you can find.
But honestly, if you spent say 4 hours reading and installing things for adb/fastboot stuff, you won't ever need one of those tools and you won't ever again spend countless hours trying to figure out how to get some tool someone created to work correctly for your phone. The simple sometimes becomes the most time consuming.
Once you figure out a few commands and realize whats going on, you will understand how simple all of that stuff is, and then will be confused as to why anyone ever created a tool for that simple task. Not bashing on the people that created the toolkit, that helps hundreds of people out I'm sure that dont feel like reading a little bit.
memapp can
I would but this [TOOL] is for mac.
No windows machine ala no rsdlite. I did however see that I needed to rename the .xml file to a .zip file ... Then extract the contents and move them over to the moto-x-tools folder and tried flashing it that way but got a "Command not found" error.
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$ moto-x-flash VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-53_CFC_1FF.xml
Running: fastboot oem fb_mode_set
/bin/sh: fastboot: command not found
Running: fastboot flash partition gpt.bin
/bin/sh: fastboot: command not found
Running: fastboot flash motoboot motoboot.img
/bin/sh: fastboot: command not found
Running: fastboot flash logo logo.bin
/bin/sh: fastboot: command not found
Running: fastboot flash boot boot.img
/bin/sh: fastboot: command not found
Running: fastboot flash recovery recovery.img
/bin/sh: fastboot: command not found
Running: fastboot flash system system.img
/bin/sh: fastboot: command not found
Running: fastboot flash modem NON-HLOS.bin
/bin/sh: fastboot: command not found
Running: fastboot erase modemst1
/bin/sh: fastboot: command not found
Running: fastboot erase modemst2
/bin/sh: fastboot: command not found
Running: fastboot flash fsg fsg.mbn
/bin/sh: fastboot: command not found
Running: fastboot erase cache
/bin/sh: fastboot: command not found
Running: fastboot erase userdata
/bin/sh: fastboot: command not found
Running: fastboot erase customize
/bin/sh: fastboot: command not found
Running: fastboot erase clogo
/bin/sh: fastboot: command not found
Running: fastboot oem config carrier vzw
/bin/sh: fastboot: command not found
Running: fastboot oem fb_mode_clear
/bin/sh: fastboot: command not found
Flashing was successful!
Running: fastboot reboot
/bin/sh: fastboot: command not found
jeffreys-mbp:moto-x-tools-0.2.0 jeffreymarshall$
jayboyyyy said:
i cant help you with that toolkit as i don't use it. But if you are merely trying to flash your phone to stock then find the rsd back to 100% stock thread and do that. Just as simple as any other tool you can find.
But honestly, if you spent say 4 hours reading and installing things for adb/fastboot stuff, you won't ever need one of those tools and you won't ever again spend countless hours trying to figure out how to get some tool someone created to work correctly for your phone. The simple sometimes becomes the most time consuming.
Once you figure out a few commands and realize whats going on, you will understand how simple all of that stuff is, and then will be confused as to why anyone ever created a tool for that simple task. Not bashing on the people that created the toolkit, that helps hundreds of people out I'm sure that dont feel like reading a little bit.
Click to expand...
Click to collapse
In response to the fastboot commands suggestion - I have already tried using the adb/fastboot methods didn't work. Did a search for people with similar issues and found that it has something about it being on a mac or some other nonsense. That's the reason for the [TOOL] I think. It's a workaround.
AceBoonKoon said:
In response to the fastboot commands suggestion - I have already tried using the adb/fastboot methods didn't work. Did a search for people with similar issues and found that it has something about it being on a mac or some other nonsense. That's the reason for the [TOOL] I think. It's a workaround.
Click to expand...
Click to collapse
don't know where you fastboot is but i believe its trying to call it and its not in the directory that the cmd is pointed to.
Ok I've went down the list and manually flashed each command.
When I get to ./fastboot flash system system.img
I keep getting this error
"Mismatched PIV partition name for system
Invalid PIV image: system"
I can successfully flash all other commands except this one. I went into the .xml file and deleted the "getvar" portion already. Any help?
AceBoonKoon said:
Ok I've went down the list and manually flashed each command.
When I get to ./fastboot flash system system.img
I keep getting this error
"Mismatched PIV partition name for system
Invalid PIV image: system"
I can successfully flash all other commands except this one. I went into the .xml file and deleted the "getvar" portion already. Any help?
Click to expand...
Click to collapse
not sure about the error sorry. also you might want to click on the reply button so it appears as a notification for me or i might not ever look at the thread again if i forget, jsut fyi.
are you sure you are using the right fxz for your phone? also when you run manual commands in fastboot, the xml file doesn't matter. that file is just there for rsd and other programs to use (it is basically just a script of commands that gets called on by programs to run). i don't know if you are typing "./fastboot" instead of just "fastboot" in cmd prompt but you only need to type "fastboot flash system system.img"
jayboyyyy said:
not sure about the error sorry. also you might want to click on the reply button so it appears as a notification for me or i might not ever look at the thread again if i forget, jsut fyi.
are you sure you are using the right fxz for your phone? also when you run manual commands in fastboot, the xml file doesn't matter. that file is just there for rsd and other programs to use (it is basically just a script of commands that gets called on by programs to run). i don't know if you are typing "./fastboot" instead of just "fastboot" in cmd prompt but you only need to type "fastboot flash system system.img"
Click to expand...
Click to collapse
Thanks for the fyi didn't know. I've tried flashing both fxz's for my phone and nothing both keep saying the same error Mismatched PIV. Thanks for the schooling on the xml file didn't know that. Going to keep searching.
AceBoonKoon said:
Thanks for the fyi didn't know. I've tried flashing both fxz's for my phone and nothing both keep saying the same error Mismatched PIV. Thanks for the schooling on the xml file didn't know that. Going to keep searching.
Click to expand...
Click to collapse
both? you can't just flash both like that. are you sure you are doing all of this right? one for your phone is a different FW version than the other one. This could be why you are getting this mismatch. Also, you would need to unzip and move all of the files to the directory that your fastboot is in. Then if you were trying to flash a different fxz, you would need to remove the old files from that directory and replace them with the new fxz files.
Finally, the commands to run manually will be found at this link. http://forum.xda-developers.com/showthread.php?p=46712761&highlight=flash+stock#post46712761
jayboyyyy said:
both? you can't just flash both like that. are you sure you are doing all of this right? one for your phone is a different FW version than the other one. This could be why you are getting this mismatch. Also, you would need to unzip and move all of the files to the directory that your fastboot is in. Then if you were trying to flash a different fxz, you would need to remove the old files from that directory and replace them with the new fxz files.
Finally, the commands to run manually will be found at this link. http://forum.xda-developers.com/showthread.php?p=46712761&highlight=flash+stock#post46712761
Click to expand...
Click to collapse
Now it's saying that can't downgrade when trying to flash the bootloader and it still won't flash the system.img same error.
I think I messed up when I tried to flash the "newer" FXZ. To see if I could get it to go through.
AceBoonKoon said:
I think I messed up when I tried to flash the "newer" FXZ. To see if I could get it to go through.
Click to expand...
Click to collapse
ya you can't flash the old one anymore. it will fail. you should be able to flash the new system img though. just make sure you are using the right one for your device. couldn't find anything on the internet for that particular error. So not many people run into it. It has to be something you are doing. try redownloading the fxz (the correct new fxz for your phone) and then start over from the beginning of the code and flash all the new stuff.
jayboyyyy said:
ya you can't flash the old one anymore. it will fail. you should be able to flash the new system img though. just make sure you are using the right one for your device. couldn't find anything on the internet for that particular error. So not many people run into it. It has to be something you are doing. try redownloading the fxz (the correct new fxz for your phone) and then start over from the beginning of the code and flash all the new stuff.
Click to expand...
Click to collapse
The fastboot flashes through every command flawlessly all EXCEPT the system.img. Keeps saying the bootloader preauthorization failed. I've flashed it every which way, straight through, at random, only the recovery, bootloader, and system.img. Can't get it to play nice.
I did read somewhere that mac fastboot had an issue with how large the system file was for VZW's moto x and couldn't flash it. Someone said that rsd lite breaks it up into smaller pieces in order to get it to flash. I wonder if there is a manual way to do this?
AceBoonKoon said:
The fastboot flashes through every command flawlessly all EXCEPT the system.img. Keeps saying the bootloader preauthorization failed. I've flashed it every which way, straight through, at random, only the recovery, bootloader, and system.img. Can't get it to play nice.
I did read somewhere that mac fastboot had an issue with how large the system file was for VZW's moto x and couldn't flash it. Someone said that rsd lite breaks it up into smaller pieces in order to get it to flash. I wonder if there is a manual way to do this?
Click to expand...
Click to collapse
forgot you were using a mac. just throw that thing away and get a big boy computer. lol. jk. don't need to start hearing a bunch of people chime in but here is a link to a fastboot file that splits it up for you. don't know if it will help or not.
http://forum.xda-developers.com/showthread.php?t=2489249
jayboyyyy said:
forgot you were using a mac. just throw that thing away and get a big boy computer. lol. jk. don't need to start hearing a bunch of people chime in but here is a link to a fastboot file that splits it up for you. don't know if it will help or not.
http://forum.xda-developers.com/showthread.php?t=2489249
Click to expand...
Click to collapse
I went and downloaded the "motofastboot-olympus" file and extracted the Linux fastboot file and placed in my folder replacing the current fastboot and now when I try to run a fastboot command I get "./fastboot: cannot execute binary file" I've tried the "Darwin" fastboot as well same thing.
AceBoonKoon said:
I went and downloaded the "motofastboot-olympus" file and extracted the Linux fastboot file and placed in my folder replacing the current fastboot and now when I try to run a fastboot command I get "./fastboot: cannot execute binary file" I've tried the "Darwin" fastboot as well same thing.
Click to expand...
Click to collapse
i see that you actually searched for this answer because i went to that mac thread i remembered seeing to see if there was a solution there. so you can just factory reset the device right? you don't need the system.img there to factory reset i don't think. just try a factory reset.
just found this. try downloading the nexus for stuff. pull the fastboot-mac file or whatever it is out of it. run all your commands with the "./fastboot-mac" and see if it works now.
jayboyyyy said:
i see that you actually searched for this answer because i went to that mac thread i remembered seeing to see if there was a solution there. so you can just factory reset the device right? you don't need the system.img there to factory reset i don't think. just try a factory reset.
Click to expand...
Click to collapse
I've been searching all day for all of these answers. Just thought it would help to ask as well.
I found the solution to my problem. For any of those who are having trouble flashing back to stock ON A MAC It will not flash because the system.img file is TOO BIG you need the CORRECT version of Moto-Fastboot. Here's the link that you can download and place it in your "Fastboot" folder. http://forum.xda-developers.com/showthread.php?t=1138092
I suggest you hold on to that fastboot for future flashes/return to stock. Thank you for your help jayboyyyy!
AceBoonKoon said:
I've been searching all day for all of these answers. Just thought it would help to ask as well.
I found the solution to my problem. For any of those who are having trouble flashing back to stock ON A MAC It will not flash because the system.img file is TOO BIG you need the CORRECT version of Moto-Fastboot. Here's the link that you can download and place it in your "Fastboot" folder. http://forum.xda-developers.com/showthread.php?t=1138092
I suggest you hold on to that fastboot for future flashes/return to stock. Thank you for your help jayboyyyy!
Click to expand...
Click to collapse
nice find. im going to update that thread i made with this link instead of the link i had because it seems to have fastboot for everyone.
Does this fail in the Nexus 6 now? I get an error message saying raw types cannot be formatted. I remember I could do this in my N4.
Also, is fastboot erase necessary at all when using the fastboot flash command? I've always thought the fastboot flash command was overriding the whole partition instead of just copying individual files into it.
Thanks!
rasengan82 said:
Does this fail in the Nexus 6 now? I get an error message saying raw types cannot be formatted. I remember I could do this in my N4.
Also, is fastboot erase necessary at all when using the fastboot flash command? I've always thought the fastboot flash command was overriding the whole partition instead of just copying individual files into it.
Thanks!
Click to expand...
Click to collapse
I know this is an older question, but since I just ran into it myself, here's what you have to do:
fastboot erase system
fastboot format:ext4 system
You need to specify the filesystem in order for the newer fastboot files to format the system partition. I used TWRP to verify system was EXT4 prior to formatting.
rasengan82 said:
[snip]
Also, is fastboot erase necessary at all when using the fastboot flash command? I've always thought the fastboot flash command was overriding the whole partition instead of just copying individual files into it.
Click to expand...
Click to collapse
No, it is not needed. The latest version of fastboot will automatically perform a fastboot erase before flashing the image.
In the past "flash" wouldn't perform an "erase", but even then, a "fastboot erase" is not needed before a "fastboot flash" because as you stated, it overwrites the entire partition rather than writing individual files.
when I try to do these commands, the latter comes back with: FAILED (remote: GetVar Variable Not found)... what do I do?
I have requested the stock 5.1 file from motorola and it comes with everything to flash it on the phone via fastboot which also comes in the file. I know what im doing but for some reason everytime i get to flashing the system file it says this?
$ fastboot flash system system.img
sending 'system' (1404896 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
Does anybody have a clue i cant get a system img on my phone and I kinda need my phone
Shafty6 said:
I have requested the stock 5.1 file from motorola and it comes with everything to flash it on the phone via fastboot which also comes in the file. I know what im doing but for some reason everytime i get to flashing the system file it says this?
$ fastboot flash system system.img
sending 'system' (1404896 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
Does anybody have a clue i cant get a system img on my phone and I kinda need my phone
Click to expand...
Click to collapse
have you tried mfastboot, its modified version of fastboot for larger files
Download mfastboot-v2.zip
hugh a said:
have you tried mfastboot, its modified version of fastboot for larger files
Download mfastboot-v2.zip
Click to expand...
Click to collapse
When I requested the system image for 5.1 it came with fastboot in it everything is from motorola. Why would they not include a fastboot that can load a file that large?
Also i got the mfastboot v2 and it would not work as a fastboot, then i renamed it as fastboot and still will not load the system.img
Shafty6 said:
When I requested the system image for 5.1 it came with fastboot in it everything is from motorola. Why would they not include a fastboot that can load a file that large?
Also i got the mfastboot v2 and it would not work as a fastboot, then i renamed it as fastboot and still will not load the system.img
Click to expand...
Click to collapse
Make sure that the fastboot which is running is the one included with the moto download, and not the one from the Android SDK...
In other words, for Windows PC's, if the Android SDK Platform Tools folder is in the path, often its fastboot will be used instead of the one included in the moto download.
Try renaming the one which came in the moto download as mfastboot.exe, and running it that way, by typing mfastboot.....
KidJoe said:
Make sure that the fastboot which is running is the one included with the moto download, and not the one from the Android SDK...
In other words, for Windows PC's, if the Android SDK Platform Tools folder is in the path, often its fastboot will be used instead of the one included in the moto download.
Try renaming the one which came in the moto download as mfastboot.exe, and running it that way, by typing mfastboot.....
Click to expand...
Click to collapse
Im using mac because its much easier than windows, and ive used the fastboot that comes with everything to fast and everything works perfect till I try system.img
Hey guys. So I've been trying to manually update with no success so far. I was going to sideload, but I got the November security update ota and there is no ota file for LMY48X to Marshmallow (as far as I know). So I bit the bullet and unlocked the bootloader yesterday, and got the adb and fastboot set up and tried to run the ./flash-all.sh command. (I'm on a Mac) Everything was going fine until I came across an error. So I basically gave up and restored all my user data.
Today I figured I'd try again since I have already unlocked my bootloader and have nothing to lose. mra58k didn't work, so I figured I'd try the mra58n image and removed the -w command from the flash-all.sh and tried again. This is what I got:
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
fastboot(69137) malloc: *** mmap(size=2094391296) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 2092296104 bytes
error: update package missing system.img
Can anyone help me out? I have a feeling I won't be getting the ota through my phone anytime soon.
I may be wrong as this is a pure guess, but did you check the download to confirm it met the checksum? You might just try deleting your download and redownloading the latest version.
haibane said:
I may be wrong as this is a pure guess, but did you check the download to confirm it met the checksum? You might just try deleting your download and redownloading the latest version.
Click to expand...
Click to collapse
No it is Google. Same here. Flashall.bat stops after flashing m-bootloader and m-radio.
After that it is needed to extract all the images and fastboot flash every image.
Don't use the flash-all.sh file to flash, flash the files manually. Plenty of guides outline the commands to use. Plus, make sure that you're Android SDK Tools is updated to the latest version.
RMarkwald said:
Don't use the flash-all.sh file to flash, flash the files manually. Plenty of guides outline the commands to use. Plus, make sure that you're Android SDK Tools is updated to the latest version.
Click to expand...
Click to collapse
Thanks for the reply. So I went ahead and followed your advice and tried to do it manually. I checked everything was up to date. I flashed the bootloader, radio, recovery and boot images and rebooted the bootloader between every flash with no incident. Then I tried to flash the system.img and it first everything seemed to be ok but the terminal is stuck at "sending sparse 'system' " and hasn't done anything in 20 minutes. I'm afraid to do anything right now. Is it ok to close terminal, reopen it and try flashing the system.img again?
ICStevenC. said:
Thanks for the reply. So I went ahead and followed your advice and tried to do it manually. I checked everything was up to date. I flashed the bootloader, radio, recovery and boot images and rebooted the bootloader between every flash with no incident. Then I tried to flash the system.img and it first everything seemed to be ok but the terminal is stuck at "sending sparse 'system' " and hasn't done anything in 20 minutes. I'm afraid to do anything right now. Is it ok to close terminal, reopen it and try flashing the system.img again?
Click to expand...
Click to collapse
Hmmm...the system.img does take time but shouldn't take 20 minutes. Did you flash all the .img files separately, or did you use the command:
Code:
fastboot -w update image-shamu-mra58n.zip
?
I've never done any of this from a Mac, only Linux and Windows, but here's what I do when flashing manually. I extract the contents of the factory image zip, AND the image-shamu-mra58n.zip into my SDK directory (see image attached).
Once everything is extracted, after backing up things I wanna save on my device, I boot to the bootloader and go to town:
Code:
fastboot erase boot
Code:
fastboot erase cache
Code:
fastboot erase recovery
Code:
fastboot erase system
Code:
fastboot erase userdata
Code:
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.15.img
Code:
fastboot reboot-bootloader
Code:
fastboot flash radio radio-shamu-d4.01-9625-05.27+fsg-9625-02.104.img
Code:
fastboot reboot-bootloader
Code:
fastboot flash system system.img
Code:
fastboot flash boot boot.img
Code:
fastboot flash recovery recovery.img
Code:
fastboot flash cache cache.img
Code:
fastboot flash userdata userdata.img
Code:
fastboot reboot
RMarkwald said:
Hmmm...the system.img does take time but shouldn't take 20 minutes. Did you flash all the .img files separately, or did you use the command:
Code:
fastboot -w update image-shamu-mra58n.zip
?
Click to expand...
Click to collapse
No, I decompressed that zip and flashed them all separately using the
Code:
./fastboot flash
command and dragging the files directly to the terminal and then using
Code:
./fastboot reboot-bootloader
in between every flash.
ICStevenC. said:
No, I decompressed that zip and flashed them all separately using the
Code:
./fastboot flash
command and dragging the files directly to the terminal and then using
Code:
./fastboot reboot-bootloader
in between every flash.
Click to expand...
Click to collapse
Okay, seems like you're on the right path. See my post above. You'll erase everything first, then flash everything back one by one, kinda like what you are already doing. I've never had issues doing it this way ever, it may be overkill and it will wipe your phone completely, but if you've backed things up (pictures, docs, music, etc) beforehand, no biggie. The only times I reload the bootloader is after flashing the bootloader, and then the radio.
The system.img will take the longest, and userdata will take a little time too, but the others should be almost instant.
RMarkwald said:
Okay, seems like you're on the right path. See my post above. You'll erase everything first, then flash everything back one by one, kinda like what you are already doing. I've never had issues doing it this way ever, it may be overkill and it will wipe your phone completely, but if you've backed things up (pictures, docs, music, etc) beforehand, no biggie. The only times I reload the bootloader is after flashing the bootloader, and then the radio.
The system.img will take the longest, and userdata will take a little time too, but the others should be almost instant.
Click to expand...
Click to collapse
The terminal doesn't appear to be responding to any command now. I tried erasing boot and after pressing enter, nothing happened. Closing it and reopening it doesn't help. Should I try restarting my computer?
ICStevenC. said:
The terminal doesn't appear to be responding to any command now. I tried erasing boot and after pressing enter, nothing happened. Closing it and reopening it doesn't help. Should I try restarting my computer?
Click to expand...
Click to collapse
Yeah, give that a shot. As long as you have bootloader access you will be okay.
RMarkwald said:
Yeah, give that a shot. As long as you have bootloader access you will be okay.
Click to expand...
Click to collapse
I am now on 6.0 and everything appears to be functional. Thank you so much for all your help! I really appreciate it.
Awesome man! Glad I could help.