[Q] Dumping Boot.img - Xoom Q&A, Help & Troubleshooting

Last night, after losing 5 hours trying to root my stock Brazilian MZ605 (wifi + 3G, H.6.3-28.6), I had to flash the stock firmware because after rooting neither the wifi or 3G wouldn't work.
I guess it is because I flashed a boot.img that is incompatible with my wifi drivers (bcm4329.ko). Everything else was fine.
So I was thinking: what if I can dump my own boot.img, set ro.secure=0 on it and then flash it back to acquire root?
So, my question is this: how can I dump my own boot.img?
Other than root, I want to keep my Xoom as stock as possible.

You will need the Clockwork Mod Recovery installed it will allow you to create a backup of your existing ROM.
Look here for instructions:
http://forum.xda-developers.com/showthread.php?t=1074979

Sniperet said:
You will need the Clockwork Mod Recovery installed it will allow you to create a backup of your existing ROM.
Look here for instructions:
http://forum.xda-developers.com/showthread.php?t=1074979
Click to expand...
Click to collapse
Thanks, Sniperet.
Supposing I install CWM Recovery, can I go back to my stock Recovery image using the IMG files downloaded from Motorola?

Related

[Q] Custom Recovery neccessary to perform Nandroid Backup?

Hi,
I already searched the forums, but couldn't find a clear answer. If you would be so kind, just answer the questions with yes/no
A custom recovery is just more capable than the normal recovery?
A custom recovery image is neccessary for a nandroid backup?
Does the custom recovery image overwrites the normal recovery?
Does the original recovery gets restored, if I restore a nandroid backup, which was made at the very first start of the phone (for warranty purpose)?
Is it possible to flash a kernel without a custom recovery or do I need it anyway?
Finally this is what I'm planning to to:
I'll receive my Nexus s today and want to change the carrier-info and install a custom kernel. Therefore I'd like to proceed as follows:
Create a nandroid backup with the original recovery for warranty purpose
Install a custom recovery image (clockworkmod recovery?)
Change carrier-info according to the how-to
Update to stock 2.3.4
Root the phone
Install netarchy kernel
Lock bootloader
Are the steps fine or did I miss something. I would be very delighted if one of you guys could help me!
Thanks in advance!
Long story short you'll need the custom recovery to do anything you see on xda.
Thanks, but that still leaves me 2 questions:
Does the custom recovery overwrite the original recovery?
Is the original recovery restored when I install the original stock rom / nandroid backup?
ca509 said:
Thanks, but that still leaves me 2 questions:
Does the custom recovery overwrite the original recovery?
Is the original recovery restored when I install the original stock rom / nandroid backup?
Click to expand...
Click to collapse
You have two options:
Code:
fastboot boot recovery.img
In case you just want to make a nandroid backup and preserve stock recovery, no flashing process through this command, phone simple boots into a custom recovery.
Code:
fastboot flash recovery recovery.img
Flash any custom recovery and replace stock or wherever recovery was installed before. Very useful if you want to install different kind of ROMs or kernels.
Restoring a backup or flashing a stock ROM will bring back stock recovery. Just make sure this script is present in your phone: /etc/install-recovery.sh It will do the job for you after reboot.

[req] Downgrade from ICS to stock 2.3 Fastboot

I'm having some issues with ICS and I would like to revert to stock as simply as possible. Where can I find the stock .img files for a 2.3 release for fastboot? Searched for like an hour. I don't want any root whatsoever. Any build of 2.3 is fine. Just need stock imgs
http://forum.xda-developers.com/showthread.php?t=1063664
Anderdroid said:
I'm having some issues with ICS and I would like to revert to stock as simply as possible. Where can I find the stock .img files for a 2.3 release for fastboot? Searched for like an hour. I don't want any root whatsoever. Any build of 2.3 is fine. Just need stock imgs
Click to expand...
Click to collapse
http://theunlockr.com/2011/01/20/how-to-unroot-the-nexus-s/
Guide all you do is flash the backup in clockwork
I do not have clockwork
You don't require CWM with the stock rom. Works with Stock recovery. Rename zip file to update.zip and use apply sdcard update.zip option. Assuming you are using T-Mobile's Nexus S I9020T.
Android 2.3.6/GRK39F/XXKF1 Radio/KA3 Bootloader
Link from http://forum.xda-developers.com/showthread.php?t=1063664
_android_ said:
You don't require CWM with the stock rom. Works with Stock recovery. Rename zip file to update.zip and use apply sdcard update.zip option. Assuming you are using T-Mobile's Nexus S I9020T.
Android 2.3.6/GRK39F/XXKF1 Radio/KA3 Bootloader
Link from http://forum.xda-developers.com/showthread.php?t=1063664
Click to expand...
Click to collapse
I guess you need clockwork which you can flash via fastboot.
because if you are coming from ICS to GB then..the recovery ICS does not display properly so to be safe u need to fastboot flash recovery (CWM recovery would do)
and then flash the zip

Going to root, am I doing it right?

I am on stock 4.0.4 with a locked bootloader. I want to have root with the stock rom, nothing else just root.
So I am gonna use the tool provided here,
http://forum.xda-developers.com/showthread.php?t=1544940
I have already installed drivers and have the tool downloaded.
Then I would like to flash the stock google 4.0.4 rom that will let me receive OTA updates. Is this the right file?
http://forum.xda-developers.com/showthread.php?t=1569509
Or can I just flash the stock rom from here?
http://forum.xda-developers.com/showthread.php?t=1572307
I heard there are problems flashing stock rom with CWR if the stock recovery isnt removed? Thats why I dont know if I should flash the stock image.
Is the process of flashing rom with CWR recovery the same as with stock recovery?
My phone is the i9023.
Thanks a bunch in advance.
Gambler_3 said:
I am on stock 4.0.4 with a locked bootloader. I want to have root with the stock rom, nothing else just root.
So I am gonna use the tool provided here,
http://forum.xda-developers.com/showthread.php?t=1544940
I have already installed drivers and have the tool downloaded.
Then I would like to flash the stock google 4.0.4 rom that will let me receive OTA updates. Is this the right file?
http://forum.xda-developers.com/showthread.php?t=1569509
Or can I just flash the stock rom from here?
http://forum.xda-developers.com/showthread.php?t=1572307
Is the process of flashing rom with CWM recovery the same as with stock recovery?
Thanks in advance.
Click to expand...
Click to collapse
Baseband version? under about phone
billchen0014 said:
baseband version? Under about phone
Click to expand...
Click to collapse
i9023xxki1.
Sorry should have specified my phone in the OP.
Best way is to do it manually. You can find all of the steps required here. The only difference is that you should be flashing the latest recovery from here and the latest superuser.zip file when flashing with recovery.
Note, unlocking bootloader will cause loss of EVERYTHING on the device that you have put on there (sdcard, apps, data partition, etc).
Harbb said:
Best way is to do it manually. You can find all of the steps required here. The only difference is that you should be flashing the latest recovery from here and the latest superuser.zip file when flashing with recovery.
Note, unlocking bootloader will cause loss of EVERYTHING on the device that you have put on there (sdcard, apps, data partition, etc).
Click to expand...
Click to collapse
You suppose thats better to do manually so I will have latest version of recovery and superuser?
And yes I am aware of the data loss waited sometime to finish all my games now I am ready to lose all my app data.
Harbb said:
Best way is to do it manually. You can find all of the steps required here. The only difference is that you should be flashing the latest recovery from here and the latest superuser.zip file when flashing with recovery.
Note, unlocking bootloader will cause loss of EVERYTHING on the device that you have put on there (sdcard, apps, data partition, etc).
Click to expand...
Click to collapse
Do it this way. The one click is fine but using Android SDK and going through all that will help you in the long run. This way you know the process in case something goes wrong. It may be confusing at first but worth it. It will teach you a lot more than flashing a one click!
I learnt a lot from this and feel much more experienced and capable because of it. I know I will be able to solve any major issues using Android Debug Bridge (adb).
Okay then I am gonna try the manual way and gonna take out time for it. Now I just need to know what do I flash once I have unlocked bootloader and installed CWR?
I just want the stock google rom and receive OTA if nexus S continues to be supported by google.
You won't need to reinstall the ROM if you are currently on 4.0.4. The ROM stays there as-is. Feel free to do your wipes in recovery and reflash stock 4.0.4 through CWM if you must. You flash CWM to your phone and then superuser through CWM.
Steps:
Setup ADB/fastboot
Bootloader --> fastboot oem unlock --> agree
Bootloader --> fastboot flash recovery recovery.img --> this will give you CWM
Recovery --> flash superuser.zip and, if you must, wipe and reflash ICS (flash su AFTER this if done)
Reboot --> bingo
Also note, with stock ROMs it will replace your current recovery with stock recovery on each boot. If you want to keep CWM, delete /system/etc/flash-recovery.sh when you first boot. You'll have to reflash recovery afterward and it will stick.
Oh I was of the impression that unlocking bootloader wipes everything means it wipes the OS as well. That is nice if it's just data and not the OS, dont think I would reflash it if it's not needed.
Can you explain what you mean by will have to reflash recovery? I will have to do that even if I delete that file on first boot? And whats the drawback if I dont delete that file and stick with stock recovery?
As soon as you boot into stock android it will replace the recovery. So if that file is there on first boot, it will replace it while booting and you will be without CWM (stock instead). After first boot you can delete the file (you can reflash a ROM which has this deleted, or delete it yourself from a stock ROM, or even use adb or a recovery-based file manager to delete the file, then you won't have this problem at all) and it will no longer reflash stock recovery, but you would already have the stock one and need to flash CWM one more time to get it to stick. Easiest way is to just flash CWM and delete it within android imo, saves mounting commands and the such.
No downside really. If you need to flash something for one reason or another you'll just have to reflash CWM before you do so. Once rooted, ROM Manager can do this for you within android anyway.
I had already downloaded and installed the drivers from the one click root thread and my computer shows the android adb thing when I connect my phone with USB debugging.
But as you guys suggested I am gonna do the manual way. So do I just skip the installing driver on computer in the part 1 of this guide?
http://forum.xda-developers.com/showthread.php?t=1007782
In my bootloader menu why is it showing my phone as an i9020?? Is it normal?
Gambler_3 said:
In my bootloader menu why is it showing my phone as an i9020?? Is it normal?
Click to expand...
Click to collapse
Because you have a Nexus S with amoled. That's the i9020. The i9023 is SLCD.
DeuXGod said:
Because you have a Nexus S with amoled. That's the i9020. The i9023 is SLCD.
Click to expand...
Click to collapse
He has the i9023 to my knowledge. It is completely normal, though. Bootloader and recovery for i9020 and i9023 series are the same, this can be attributed to the issue with 4.0.3 recovery backlight not turning on.
If fastboot recognises your phone in the bootloader (the fastboot menu), your drivers are installed an working perfectly.
Finally got to the unlock bootloader screen, didnt do it just yet but now I know how to do it.
I must say the guide is a bit outdated, the software has changed quite a bit seems. The most frustrating part was that the fastboot file is actually in the platform tools folder instead of the tools folder which I didnt figure for a while. I will hold off rooting when I have a whole day off because once I lose everything I would be very anxious to get my phone back to normal which will take time.
Thanks for the help harbb, if I have any problem flashing recovery and superuser I will come back for more help.
And yes I have the LCD version i9023.
Btw the guide said the fastboot will be in the tools folder but the tools folder had a read me that "adb has moved to the platform tools folder" this is how I figured to go to that folder and thats where the fastboot file actually was.
Now it says I should put the recovery image in the tools folder so should I do that or put it in the platform tools folder?
In the instructions for the flashing recovery I am not understanding one thing.
6 - Then back on the SNS select Power Off (Reboot also works)
Part 4 - Root
1 - Power ON the SNS
So after flashing recovery I have to reboot? Since I am on stock rom that would bring back the stock recovery so how would I flash superuser then?
If I delete the stock recovery can I still get OTA updates?
fastboot and adb is now in platform tools, that is correct. Easiest way is to put your recovery in there too so you don't have to type in the absolute file path to it, don't put it in tools.
Don't power off or reboot the phone. After you flash recovery go straight into the recovery menu and root, flash custom ROMs, kernels, etc. You can transfer files to flash via the mounts and storage --> mount usb storage menu. After this feel free to reboot.
Harbb said:
fastboot and adb is now in platform tools, that is correct. Easiest way is to put your recovery in there too so you don't have to type in the absolute file path to it, don't put it in tools.
Don't power off or reboot the phone. After you flash recovery go straight into the recovery menu and root, flash custom ROMs, kernels, etc. You can transfer files to flash via the mounts and storage --> mount usb storage menu. After this feel free to reboot.
Click to expand...
Click to collapse
Just wanted to update that I successfully unlocked and rooted. Thanks a bunch mate.
Gambler_3 said:
Just wanted to update that I successfully unlocked and rooted. Thanks a bunch mate.
Click to expand...
Click to collapse
Good work, been wandering what you were up to on this
Hope you enjoy the possibilities.

[Q] Restoring stock boot.img

I intend to flash a custom ROM on my One S. I've noticed all roms require flashing boot.img
I did some searching on what boot.img is and found that it has the kernel and booting instructions.. Now, if I flash a new boot.img and some time in the future wanted to restore the stock rom, how do I restore the original one?
I have my nandroid and apps backup. Is that sufficient?
Pheroh said:
I intend to flash a custom ROM on my One S. I've noticed all roms require flashing boot.img
I did some searching on what boot.img is and found that it has the kernel and booting instructions.. Now, if I flash a new boot.img and some time in the future wanted to restore the stock rom, how do I restore the original one?
I have my nandroid and apps backup. Is that sufficient?
Click to expand...
Click to collapse
Restoring the Nandroid will restore the boot image, it is backed up during the Nandroid
If you use TWRP as your recovery, you won't need to flash boot image separate. TWRP bypasses the HTC restriction, allowing the boot image to be flashed with the rom.
If you want a copy of the stock boot.img, I know LeeDroid's Supreme ROM has it linked in the thread there. If you dig that thread out, you can download it and keep a copy of it.
Or run ruu if u want to go back to stock completely
Sent from my HTC One S using xda premium
Thanks all..
I should start my journey then
Good Luck and enjoy
Do as it seems you have done--read OP pages and beginning and ending pages of threads and include System wipes when wiping before flashing--
An update..
As I begun testing various roms.. I found out that neither TWRP nor CWM could manage to flash the boot.img from a nandroid.. I had to flash it via fastboot EVERY time.. TWRP took around 5 min just to flash the boot image and although it reported success, it didn't work! I got stuck at boot animation after flashing my stock nandroid until I flashed a stock boot.img..
No big deal, but just a note for those adventurers..
Flashing With RUU
I'm really new to Android. I've rooted my phone and installed something called TWRP. So will installing a RUU restore the original Boot Image and the Bootloader ? Please repli. Soon Thanks in advance.
AW: [Q] Restoring stock boot.img
The RUU will install stock recovery, stock boot.img and stock rom to your phone. You will lose root, custom recovery and your custom rom.
You have to relock your bootloader for running a RUU.
Sent from my HTC One S using xda app-developers app

[Q] Get back to Sock OS with Backup

Hi,
Before I flashed my first rom, I backed up the stock OS, and I still have it. If I wanted to flash it back onto my phone, can I just use the ClockworkMod recovery and choose restore? I know after that it will still have an unlocked bootloader and will be rooted, but I just wanna know if I need to use RUU to flash the stock rom which I still have because I backed it up.
Thanks!
elias.acab said:
Hi,
Before I flashed my first rom, I backed up the stock OS, and I still have it. If I wanted to flash it back onto my phone, can I just use the ClockworkMod recovery and choose restore? I know after that it will still have an unlocked bootloader and will be rooted, but I just wanna know if I need to use RUU to flash the stock rom which I still have because I backed it up.
Thanks!
Click to expand...
Click to collapse
I am assuming you made the backup of the stock with ClockworkMod.
Yes, you can restore it and do not have to RUU and you will be fine. Most likely you have fastboot flashed a new boot.img when you installed the new Rom. If you are S-on a restore will not be able to change your boot.img back.
You will need to fastboot flash the backup's boot.img.
This is why it is good to have your backup on your pc. When you open that backup file on your pc, you will see the boot.img file that you need to flash.
If you have changed your recovery or updated it you most likely will have to flash the recovery that made the backup.
The exceptions to the rule would be something like: Maximus HD, where you would need to downgrade your firmware, clear storage in bootloader when you have the stock recovery installed. Reinstall your custom recovery and restore your backup.
tivofool said:
I am assuming you made the backup of the stock with ClockworkMod.
Yes, you can restore it and do not have to RUU and you will be fine. Most likely you have fastboot flashed a new boot.img when you installed the new Rom. If you are S-on a restore will not be able to change your boot.img back.
You will need to fastboot flash the backup's boot.img.
This is why it is good to have your backup on your pc. When you open that backup file on your pc, you will see the boot.img file that you need to flash.
If you have changed your recovery or updated it you most likely will have to flash the recovery that made the backup.
The exceptions to the rule would be something like: Maximus HD, where you would need to downgrade your firmware, clear storage in bootloader when you have the stock recovery installed. Reinstall your custom recovery and restore your backup.
Click to expand...
Click to collapse
Yes! I made it with clockworkmod, thanks, I will try that!
Sent from my One S using xda app-developers app

Categories

Resources