Flash CM9 on Linux - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Hi everybody
Trying to flash CM9 with recovery on my P7500 on Linux Mint 12 with no success since 24h. The following was already done:
Heimdall (1.3.0, 1.3.1, 1.3.2):
Code:
heimdall flash --recovery recovery.img
gives the usual
..Failed to initialise protocol..
Click to expand...
Click to collapse
SDK and ADB:
Code:
./adb devices
gives
List of devices attached 428000240201157 device
Click to expand...
Click to collapse
. But
Code:
./fastboot devices
does not give anything.
PS. Is it possible to copy the recovery or any ROM as a zip onto the sd card and "apply changes" from the standard recovery of the Gtab?
Thanks in advance for any suggestions.

First off, the GTab doesn't have fastboot.
Second, try this for your recovery image.
Code:
adb shell
dd if=recovery.img of=/dev/block/mmcblk0p2
Dd command taken from this thread.
forum.xda-developers.com/archive/index.php/t-1733045.html
Sent from my SGH-I747 using xda premium

d3athsd00r said:
First off, the GTab doesn't have fastboot.
Second, try this for your recovery image.
Code:
adb shell
dd if=recovery.img of=/dev/block/mmcblk0p2
Dd command taken from this thread.
forum.xda-developers.com/archive/index.php/t-1733045.html
Sent from my SGH-I747 using xda premium
Click to expand...
Click to collapse
Thank you very much. I think this should be corrected in the CM-Wiki, where it sais that fastboot works.
Sent from my Galaxy Nexus using xda app-developers app

Related

[Help] Add cwm in stock recovery. img

hello I own a galaxy grand duos I9082 and I tried to build cwm from source but no good! Odin says FAIL even the I created a tar.md5
tried web builder too ..there also it shows failed build
anyone can help me through this?
here is the link for stock recovery. img
https://hotfile.com/dl/193919917/5ddf947/recovery.img.html
Sent from my GT-I9082 using xda premium
chotu222 said:
hello I own a galaxy grand duos I9082 and I tried to build cwm from source but no good! Odin says FAIL even the I created a tar.md5
tried web builder too ..there also it shows failed build
anyone can help me through this?
here is the link for stock recovery. img
https://hotfile.com/dl/193919917/5ddf947/recovery.img.html
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
XDA university has a great guide for porting CWM to a new device http://xda-university.com/as-a-developer/porting-clockworkmod-recovery-to-a-new-device.
Sent from my SCH-I535 using xda premium
shimp208 said:
XDA university has a great guide for porting CWM to a new device http://xda-university.com/as-a-developer/porting-clockworkmod-recovery-to-a-new-device.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
I have tried that guide only ...all is perfect but when I flash through odin it says fail after md5 verification
Sent from my GT-I9082 using xda premium
chotu222 said:
I have tried that guide only ...all is perfect but when I flash through odin it says fail after md5 verification
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
Interesting that it say fail after md5 verification. Try manually flashing the partition using the dd command for example in adb shell or terminal emulator with the recovery.img your compiled:
Code:
su
dd if=/sdcard/recovery.img of=/path/to/recovery/partition
reboot recovery
shimp208 said:
Interesting that it say fail after md5 verification. Try manually flashing the partition using the dd command for example in adb shell or terminal emulator with the recovery.img your compiled:
Code:
su
dd if=/sdcard/recovery.img of=/path/to/recovery/partition
reboot recovery
Click to expand...
Click to collapse
Thank you it worked ...but the keys are not working properly ...especially the select key ...can't select any option with the power button
can anyone help me to map the key ???

How to flash DooMLoRD Recovery

ive been doing this over and over again and i cant do it..
it says:
[ how to flash this ]
download the advanced stock kernel (contains recovery)
reboot device into fastboot mode
Code:
adb reboot bootloader
now flash the recovery using
Code:
fastboot flash boot kernel.img
[where kernel.img is the name of the file image u downloaded]
thats it!
Click to expand...
Click to collapse
and im stuck at the 2nd code because it says "fastboot" is not recognized as an external or internal command..
any help guys?
Seems like no one knows how..
Sent from my SGP311 using xda app-developers app
are you using adb shell or flashtool?
andymg350 said:
are you using adb shell or flashtool?
Click to expand...
Click to collapse
Im using adb
Sent from my SGP311 using xda app-developers app
Try this one kababayan.. Try to uninstall and then install again the s1 boot. See the link below for reference
I think you have a fastboot driver problem..
http://forum.xda-developers.com/showthread.php?p=39856834
donedos said:
Try this one kababayan.. Try to uninstall and then install again the s1 boot. See the link below for reference
I think you have a fastboot driver problem..
http://forum.xda-developers.com/showthread.php?p=39856834
Click to expand...
Click to collapse
ganun parin haha..
no hope..

Android Terminal Emulator Command

Tell me what you need to enter the command to flash the kernel via Android terminal emulator?
SonyFan23 said:
Tell me what you need to enter the command to flash the kernel via Android terminal emulator?
Click to expand...
Click to collapse
What reason you have to flash it this way and nor with fastboot or CWM?
ChikeD said:
What reason you have to flash it this way and nor with fastboot or CWM?
Click to expand...
Click to collapse
Am often away from the computer, and through cmw kernel sew, it is also necessary to find
One person on my friend said that the form can be sewn through Termunal Android, that's interested in the question
SonyFan23 said:
Am often away from the computer, and through cmw kernel sew, it is also necessary to find
One person on my friend said that the form can be sewn through Termunal Android, that's interested in the question
Click to expand...
Click to collapse
In principle the dd command should work
However I haven't tried it before and don't know if it is safe to do, so if you do it it's at your own risk.
Code:
dd if=<kernel file> of=<kernel partition>
ChikeD said:
In principle the dd command should work
However I haven't tried it before and don't know if it is safe to do, so if you do it it's at your own risk.
Code:
dd if=<kernel file> of=<kernel partition>
Click to expand...
Click to collapse
So here we introduce: "dd if = <filename> of = <Where is it>"
Will look like?
Code:
dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblkNNN
True or false?
SonyFan23 said:
So here we introduce: "dd if = <filename> of = <Where is it>"
Will look like?
Code:
dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblkNNN
True or false?
Click to expand...
Click to collapse
Almost correct, of=/dev/block/mmcblkNNNpNNN.
If you don't know which it is you can find which partition is the kernel written to with package_extract_file or write_raw in any CWM flashable kernel for your phone.
You better make sure fastboot is working for you before you try it or you may not be able to recover if it is not safe to do and the phone reboot before it finish.
ChikeD said:
Almost correct, of=/dev/block/mmcblkNNNpNNN.
If you don't know which it is you can find which partition is the kernel written to with package_extract_file or write_raw in any CWM flashable kernel for your phone.
You better make sure fastboot is working for you before you try it or you may not be able to recover if it is not safe to do and the phone reboot before it finish.
Click to expand...
Click to collapse
Thank you, I have asked the developer firmware he said that the code would be:
Code:
dd if=/mnt/sdcard1/boot.img of=/dev/block/mmcblk0p9

[QUESTION][ADB] Mounting recovery partition in adb shell

I apologize ahead of time if this is the wrong section or my question has already been answered. I've been searching all day.
I am trying to get a custom recovery on an old SPH-D710 with a bad port so I am using wireless ADB but I can't get the recovery partition mounted. DiskInfo app and running
Code:
ls -l /dev/block/platform/dw_mmc/by-name/
both show recovery at /dev/block/mmcblk0p6 but I keep getting "No such device" error from mount.
I've tried a bunch of different filesystem types and its always the same thing.
I am new to mucking around with Android at the command line, or hacking the devices at all. I have always used Odin or a custom recovery to get things done. I am a pretty experienced *nix guy though and this has me stumped. The partition is right there in the list with the rest of them, is there something else going on in the version of mount on this device that's affecting it's visibility of that partition?
Why mount the recovery? You are just wanting to dump it so that you can build TWRP or other custom recovery for it, right? Or do you have a recovery, but just can't flash it?
To dump stock recovery
dd if=dev/block/mmcblk0p6 of=/sdcard/stockrecovery.img
Then to flash new recovery
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p6
Sent from my KYOCERA-C6745 using Tapatalk
From what I know, you can't mount recovery partition, as RealWelder said, you can dump it, then modify and reflash it
(sure, you need root to dump those images)
RealWelder said:
Why mount the recovery? You are just wanting to dump it so that you can build TWRP or other custom recovery for it, right? Or do you have a recovery, but just can't flash it?
To dump stock recovery
dd if=dev/block/mmcblk0p6 of=/sdcard/stockrecovery.img
Then to flash new recovery
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p6
Click to expand...
Click to collapse
Well first I need to say I feel like an idiot for trying to mount it. I read some old speculative post on a different forum that put that in my head. For someone claiming to have *nix experience I can't believe I didn't think to use dd. So now that is out of the way.
Output from DD reflected a successful write but "reboot recovery" and it was still stock.
The .img I flashed was from a TWRP .zip for that device. So what did I do wrong this time?
EDIT: I take that back, it was from philz touch (the modded CWM).
This was the relevant part of what I did in the shell if it matters:
Code:
[email protected]:/sdcard/external_sd # dd if=recovery.img of=/dev/block/mmcblk0p6
dd if=recovery.img of=/dev/block/mmcblk0p6
14909+1 records in
14909+1 records out
7633899 bytes transferred in 2.924 secs (2610772 bytes/sec)
[email protected]:/sdcard/external_sd # reboot recovery
reboot recovery
volDeus said:
This was the relevant part of what I did in the shell if it matters:
Code:
[email protected]:/sdcard/external_sd # dd if=recovery.img of=/dev/block/mmcblk0p6
dd if=recovery.img of=/dev/block/mmcblk0p6
14909+1 records in
14909+1 records out
7633899 bytes transferred in 2.924 secs (2610772 bytes/sec)
[email protected]:/sdcard/external_sd # reboot recovery
reboot recovery
Click to expand...
Click to collapse
You may also need to modify the boot.img to disable signature check on boot. On a lot of newer devices if the signature doesn't match, it will flash stock recovery at boot time...overwriting the philz.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
You may also need to modify the boot.img to disable signature check on boot. On a lot of newer devices if the signature doesn't match, it will flash stock recovery at boot time...overwriting the philz.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Ah that makes sense. More research for tomorrow
How to upload boot.img
RealWelder said:
You may also need to modify the boot.img to disable signature check on boot. On a lot of newer devices if the signature doesn't match, it will flash stock recovery at boot time...overwriting the philz.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
dear, how to modify the boot.img to disable signature check on boot?
This will help you understand, though it may not be of much help in actuality accomplishing your goal, depending on the device.
https://forum-xda--developers-com.c...g-boot-images-android-verified-t3600606/page1
Sent from my LG-Q710AL using Tapatalk
RealWelder said:
Why mount the recovery? You are just wanting to dump it so that you can build TWRP or other custom recovery for it, right? Or do you have a recovery, but just can't flash it?
To dump stock recovery
dd if=dev/block/mmcblk0p6 of=/sdcard/stockrecovery.img
Then to flash new recovery
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p6
Click to expand...
Click to collapse
Morning man..
I am sorry if I ask it in this thread, I am about to bring my whyred (redmi note 5 pro) back on.
Can I use this script to flash new recovery into my whyred??
I have an official unlocked bootloader whyred, with erased recovery, no twrp and only has fastboot mode.
But when I flash through
fastboot flash recovery xxx.img
It ends with :
Remote : error flashing partition : write protected
The only way to akses ADB is :
Fastboot boot xxx.img (twrp)
So I can akses
ADB devices
Xxxxxxxx recovery
Once more, I am so sorry if I write in wrong thread but I really need to pass the write protected partition.
Thank you..

Asus Zenfone Max M2 - Need stock recovery

Hi!
Who can provid me Stock Recovery image, please!?
ONLY with root, NO TWRP on phone!!!!:
download terminal emulator and type:
Code:
shell su
dd if=/dev/block/mmcblk0p30 of=/storage/emulated/0/RECOVERY.img bs=4096
Then use ADB and type:
Code:
adb pull /storage/emulated/0/RECOVERY.img %cd%
It will pull RECOVERY.img to your adb folder
Then upload please.
Thanks!
Here you go
https://drive.google.com/file/d/1JRq6UtcQPkZpm4dvPnQnafMSHzIV0LNn/view?usp=drivesdk
Jay_1212 said:
Here you go
https://drive.google.com/file/d/1JRq6UtcQPkZpm4dvPnQnafMSHzIV0LNn/view?usp=drivesdk
Click to expand...
Click to collapse
Thanks!
Now, what is the best way to unlock bootloader?
.
persona78 said:
Thanks!
Now, what is the best way to unlock bootloader?
.
Click to expand...
Click to collapse
xda thread
https://forum.xda-developers.com/max-m2/development/unlook-bootloader-asus-zenfone-max-m2-t3886206
Jay_1212 said:
Here you go
https://drive.google.com/file/d/1JRq6UtcQPkZpm4dvPnQnafMSHzIV0LNn/view?usp=drivesdk
Click to expand...
Click to collapse
Hi!
The recovery that you provid me doesn´t work!
Thanks any way!
.

Categories

Resources