yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] JohnnyInBriz:
I've tried both CWM 6.0.3.0 and TWRP 2.5.0.0 on my Goophone I9 (MT6589) and neither works. I have increased the recovery partition size to 7M.

cat /proc/dumchar_info shows recovery size of 700000

Flashing the original recovery into the larger partition works fine.
[Miscellaneous Android Development] yuweng:
Thanks for your feedback however, you have given me no clue at all where it fail, my friend... :o

1. Where it fails -> Manual or Auto Port

2. Which part of the script fail -> Eg. Auto -> Display error when it comes to resolution

3. OS you're using -> XP or 7, x86 or x64

4. As much info as possible, as this will narrow down the diagnostic & troubleshooting... :cowboy:

Fyi, if your boot.img is ro.secure=1 then this script will fail to pull & push via adb then use the manual port... :cool:

For some, the Auto-Port will fail to install it so you'll have to manually install via SPFT with your modded 7MB scatter.txt or via mobileuncle Tools... :cool:
[Miscellaneous Android Development] JohnnyInBriz:
Apologies for the lack of info. I tried both CWM and TWRP manually (using 720x1280) and TWRP in auto mode which gave a caution about the partition size but I proceeded anyway (I thought this was a bit odd as I'm sure the partition is 7MB). I'm using Windows 8 but I don't think this is an issue.

I flashed the manual versions using SP Flash Tool. In all 3 cases the phone was stuck at the boot logo when trying to boot into recovery and didn't respond to power key or ADB. I had to remove the battery to restart. Phone still booted in each case but when rebooted into recovery once again stuck at the boot logo. As I said in previous post, reflashing the original recovery into the larger partition was OK.

Are there any logs I can post or would copies of the manual recoveries help diagnose this ?
[Miscellaneous Android Development] yuweng:
hmm, i've already included a lot of error checking but for your case, the script just ran until the end without any warning & i donno if it works on Win 8, never tested it... :o

i guess you'll have to attach your original stock 3e recovery that you mentioned it can boot, together with ported CWM or TWRP and i'll have a look at it & hopefully will find out the problem... :fingers-crossed:
[Miscellaneous Android Development] nerbiyoso:
hi yuweng. in line with the cwm 6030 tool, i'm receiving the antivirus pop-up below. i would just like to get an assurance that it is safe.

edit: nvm, just tried running it anyway and it works fine. thanks!
[Miscellaneous Android Development] JohnnyInBriz:
I've attached the recovery images. Thanks for taking the time to look at these
[Miscellaneous Android Development] yuweng:
i've planted a virus that will steal your credit card number & i will buy myself all the MT6589 available now...

Nay, its just False-Positive refer to here & here only 3 out of 49 Anti-virus detect it as a threat but Avast too... :eek:
[Miscellaneous Android Development] The Solutor:
HI yuweng

Can you tell me where the partition list to backup is stored ?

I made the TRWP recovery for my Alcatel OT-6010d.

I had to tweak /etc/recovery.fstab ad /init.rc and /fstab to match my device.

And my recovery works perfectly.

But while I can mount /custpack and /mobile_info partitions, I can't see them on the backup list.

I'm pretty new to TWRP so your help is apreciated.
[Miscellaneous Android Development] yuweng:
Master Shifu Javum only compiled one special TWRP V2.4.1.0 with /custpack & /mobile_info support... :cool:

Even though your ported TWRP works perfectly, if you corrupted /custpack or /mobile_info then it won't restore it... :o

if you are modding alot or developing custom ROM on your device then you have to use this one & only version... :laugh:
[Miscellaneous Android Development] The Solutor:
That's my question, more than your answer :p

Thanks, it works, minus the support for the internal storage.

I'll try to figure why.
[Miscellaneous Android Development] The Solutor:
Ok, I reply myself

There isn't a separate partition for the internal sdcard, it's a folder inside the data partition mounted as /storage/sdcard1 and symlinked as /sdcard2.

So not a biggie for me with the OT-6010, but likely it is for the people who owns the bigger OT6030d (idol) that doesn't come with an external SD.

I'm almost sure the phone is partitioned the same way as the 6010d, except the missing sdcard.

And I'm not really sure how to mount that fake partition inside the recovery

The sdcard1 is mounted this way in the running system

/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

but I can't see it anywhere in the init files, nor in the fstab files.

Any ideas ?
[Miscellaneous Android Development] JohnnyInBriz:
I've tried both CWM & TWRP tools in both manual and auto mode to get recovery for goophone I9. I've increased the recovery partition to 7M as per tut in first post but I think there must be another issue. Yuweng was kind enough to help me get a port of CWM which is working and interestingly it's under 6M in size. In auto mode both tools advise that the partition isn't large enough. If I use manual mode neither recovery works. I'm guessing there is something more to do than adjusting the offset to the partition after recovery in the scatter file to increase the recovery partition size. Any thoughts on this?
[Miscellaneous Android Development] yuweng:
Went out of town for work... :o

First, every compiled TWRP is different, i've seen sdcard mounted as /sdcard, /storage, /internal_sd & etc...

For this version compiled by Master Shifu Javum, he follow original MTK standard design that is /emmc & you can't change that unless you compile your own... :o

2nd, you can edit recovery.fstab & if you replace it with another copy then internal sdcard won't work... :cowboy:

As said, i believe it is dependent on one of the files from your stock 3e to boot TWRP... :cool:

Copy those stock 3e files one by one over to TWRP to identified it, start with init, init.rc, ueventd.goldfish.rc, ueventd.rc & the rest...

i believe it will work... :fingers-crossed:
[Miscellaneous Android Development] The Solutor:
Not completely true. Normaly a symlink to /emmc would suffice even with the unmodified recovery executable.

The problem here ( I spent some time looking on how the internal memory works on the new ot6010 and ot6030) is that the internal sdcard partition is not a partition is a folder inside the /data partition.

There is an executable called sdcard that "fools" the OS made it thinking that the internal sorage is a partition, when is not.

So there are two problems

1# Make the sdcard executable working in the recovery environment (surely it requires some additional libs, I' dont know)

2# (the biggest one) even if the point 1 will be solved, is clear that one can't back up the /data partition inside itself, and even if backed up in some way, a full wipe will delete the backups beckause it will wipe the whole /data partition.

So this is not a concern to me: my modded TRWP (based on the one you kindly linked) works fine on the external SD, (I removed the reference to the inernal backup from the UI), but is a big problem for the ot6030 owners.

ATM MTK Droid Tools is the only way to have a full system backup
[Miscellaneous Android Development] yuweng:
Hmm, have you really tested it & confirmed it wipes the TWRP backup folder... :o
[Miscellaneous Android Development] The Solutor:
Hven't tried with the stock recovery, maybe it delete selectively anithyng but the /data/media folder (which is the one seen as /mnt/sdcard2 on my phone and as /sdcard and /mnt/sdcard on the ot6030) but the wipe function of the TWRP and CWM recovery will format the /data partition and obviously anything inside it will be lost.

On the ot997 the internal sorage was the mmcblk0p8 mounted as /emmc, was a completely separate partition untouched by the wipe function, unless specifically instructed
[Miscellaneous Android Development] neodrift:
Sir Yuweng can you pls help me build my own CWMR? I have attached my Stock recovery.img

Thanks....
[Miscellaneous Android Development] yuweng:
Yeoh man, help me to help you... :o At where that the CWMR porting tool fail, Auto or Manual

What OS you're using ? x86 or x64 ? UAC disabled ? Anti-Virus disabled ?

As much info as possible, that will help me in making a better porting tool in the future... :cool:
[Miscellaneous Android Development] neodrift:
at Auto. x86 win 7, no i did not disable the UAC and anti virus.

today i try to follow your v2 tutorial. im stuck in page 13 i was able to run cygwin but i do not know the command to run the android kitchen.

can you tell me how? im stuck in cygwin window, no adroid kitchen menu.

thanks for quick reply :)

- ok sir i was able to port my recovery tru manual. the recovery.img is much smaller than the orig.

- my next problem is i cant install my cwmr tru mobileuncle and spft. in mobile uncle if i choose my ported cwmr to flash it redirect to 3e recovery or stock recovery and nothing happens. in spft it gives me an error i cant remember the error but it has something to say bout firmware update.
[Miscellaneous Android Development] cmoegele:
My friend I have problems with CWMR 6030 auto mode too. The tool alwyas stops with error ,.. look picture in PM ;)
[Miscellaneous Android Development] yuweng:
There are tons of tuts on setting up Android Kitchen everywhere & one is under my signature . . . :o

If you have to read this whole thread then you'll find the answer here . . . :cowboy:

Hmm, this is what i was afraid of, missing built-in command . . . :o Try it on another pc & see if it works . . . :fingers-crossed:

Guess i have to include all command rather than depending on built-in one for future release & that will make the size some more bigger . . . :laugh:
[Miscellaneous Android Development] neodrift:
Your great Yuweng.... i have successfully port and install my cwmr. You are awesome :)
[Miscellaneous Android Development] melander:
i have successfully ported twrp 2500 for a mt6577 device (myphone a919) and also cwm 6030 for a mt6589 device (myphone a919i). we have also encountered the issue with twrp on mt6589 that requires 7mb recovery partition.

question 1. twrp for mt6589 support started with version 2500? or is there an older one?

question 2. besides the 7mb fix for twrp, are the devs working on a way to make twrp work on the same recovery partition size?

thanks for the great tool.
[Miscellaneous Android Development] yuweng:
YW, bro... ;)

Answer 1

All old MTK TWRP supports MT6589, you only have to edit the recovery.fstab to match MT6589 partition no or use Master Shifu bgcngm latest format that will work on any partition no... ;)

Answer 2

DYK, mostly other devices have recovery partition larger than 6Mb so no problem installing TWRP. In fact, i have tried max 11Mb recovery partition on my MT6577 !

This means SEC_RO at the moment is not use ! Same for MT6589... :cool:

To fit an oversize TWRP or later version to MT6589 6Mb partition is to resize all the images at res/images... You can use any photo editor to convert it down to a smaller size so that it will fit the 6Mb partition... i've tried after downsizing all images & still it doesn't fit, then try delete curtain.jpg, unlock.png & sbin/parted... You'll be missing the splash screen & unlock (these images has the largest size) but at least it works on 6Mb partition... :laugh:

Or simply use the 7Mb, 11Mb mod or whatever size & skip all these hassle... :cowboy:

You only have to do this once & all future TWRP release will work, no need re-sizing all images all over again... :cool:
[Miscellaneous Android Development] kumar abhishek:
Bro i used your tool to make TWRP for mt6589 Canvas A116 720p resolution. All works gr8 ;). But one thing i didnt resize any image still my twrp is 6mb only. Why so?
[Miscellaneous Android Development] yuweng:
Bro, you have to mod your scatter.txt & re-download affected partition to increase the recovery partition to 7Mb & that tut is at the OP... :cool:

i've link it here for your convenience... :cool:

if you let it install in spite of the warning(auto-mode), TWRP will work but backup is still at 6Mb for recovery partition & that backup copy is corrupted... :laugh:

If you use that copy & re-flash, it will brick your recovery... Only with the 7Mb mod, backup recovery.img will be 7Mb... :cool:

And not all MT6589 has this too large & causes region overlap issues then no need this 7Mb mod... :cool:
[Miscellaneous Android Development] melander:
i was examining the stock recovery.img of the mmx a116 and it was actually smaller compared to the myphone a919i. that could be the reason why you did not have to resize the recovery partition.

[MENTION=4478781]yuweng[/MENTION] is right that not all mt6589 might have this issue with twrp.

will wait for an update to 4.2.1 for our phone which could be released anytime soon, hopefully it would include a much smaller recovery.img file.
[Miscellaneous Android Development] Pyntux:
How to know does I have "mtd" or "emmc" partition?

Device:

Alcatel OT 6030X

MTK 6577

How to see which one I have to port twrp?

Thanks

Edit:

When I try "autoport" it says that I have "emmc" (Is that right, or can I check that somehow, I'm sorry, for this I'm beginner... :( ), but does nothing because says something like:

there no recovery.img detected...

What to do?
[Miscellaneous Android Development] rimmon1971:
Try from terminal emulator / ADB shell:

cat /proc/mtd

if only header line (the one starting with dev:) is present, then

cat /proc/emmc

and you'll find out your partition setup

BTW, I'm pretty sure that your Alcatel has EMMC (as mine).
[Miscellaneous Android Development] yuweng:
As said earlier, AFAIK, only TWRP V2.4.2.0 compiled by Russian Master Shifu Javum support Alcatel devices... :cool:

i've never seen any CWM with /custpack & /mobile_info... :o

However, you may need to manual edit recovery.fstab if its not the same as your device... :laugh:
[Miscellaneous Android Development] D@nge1:
If you try to pour through the button Dovnload increased Recovery TWRP Flashtool an error 8038. Sсatter I changed as you need ...
[Miscellaneous Android Development] melander:
[MENTION=4478781]yuweng[/MENTION]

if it is not too much to ask, would it be possible to have an option for the cwm porting tool to adjust resolution to fit smaller screens. twrp has this option already.

i have tried porting cwm for an mt6577 device with a 3.5in screen, the text is a bit big but still it works. tia
[Miscellaneous Android Development] anjero22:
thanks for this tools :)

its help me a lot

:good:
[Miscellaneous Android Development] yuweng:
Yes & No, AFAIK, you have to compile a new one with modded graphic.c then you'll have a smaller font size... :cool:

Not many know how to compile from source including me... :o

However, i can include it into the porting tool if there is CWM that fits nicely into 320x480, all i need is the sbin/recovery... :cowboy:

Recently, i have ported CWM for Zopo980 with 1920x1080 res & it looks exactly like yours in my 480x800 device... :laugh:
[Miscellaneous Android Development] kthz:
Hi guys,

any idea of how to get into CWM on HDC Galaxy S4 EX (aka Star One S4) (purchased here http://www.fastcardtech.com/HDC-Galaxy-S4-EX ) ?

Since i got it 3 weeks ago, i haven't succeeded to boot in CWM with keys combo. Only applications like rebooter or quickboot or mobileuncle are working, meaning i can only get into CWM through software reboot.

I have tried i think all keys combinations and timings which could come to my mind and made a few hours googling / binging without any success with suggestions.

Yes phone is rooted, it was even prerooted when i received it with some old CWM 3E. I flashed 5.5 and now your 6.0.3.0 but it's still the same problem.

All keys are working normally under JB and even in test keys section of CWM.

Thanks for any help because the tech guy from FCT dropped my case after 3 emails... you know the kind of messages asking you what model you have when i mentionned it both in subject and text body..

NB: it's not my first phone, i have like 5 different android phones and no problem booting into recovery with hardware keys combination..
[Miscellaneous Android Development] 其实我也不懂:
help!!! I have compiled a CWM recovery for MT6577,but the recovery get stuck when backup boot partions ,plz ,plz help! thanks a lot!!
[Miscellaneous Android Development] yuweng:
i've got feedback from a user earlier too & finally he give up...

AFAIK, only two DEV share their github... :o CWM here & TWRP here... :cowboy:

Good Luck... :cool:
[Miscellaneous Android Development] 其实我也不懂:
thank you，i will have a try .
[Miscellaneous Android Development] 其实我也不懂:
I have repo the https://github.com/C3C0/android_bootable_recovery code and compiled the recovery but get stuck again .

Is there anything wrong in my config?

here is the official informations

recovery.fastab

# mount point	fstype	device	[device2]

/boot	emmc	boot

/cache	ext4	/dev/block/mmcblk0p4

/data	ext4	/dev/block/mmcblk0p5

/misc	emmc	misc

/recovery	emmc	recovery

/sdcard	vfat	/dev/block/mmcblk0p6

/system	ext4	/dev/block/mmcblk0p3

cat proc/emmc

partno: start_sect nr_sects partition_name

emmc_p1: 00000400 00000002 "ebr1"

emmc_p2: 00006800 00005000 "protect_f"

emmc_p3: 0000b800 00005000 "protect_s"

emmc_p4: 00016c00 00003000 "sec_ro"

emmc_p5: 00020c00 00145000 "android"

emmc_p6: 00165c00 0003f000 "cache"

emmc_p7: 001a4c00 00200000 "usrdata"

emmc_p8: 003a4c00 00388c00 "fat"

cat proc/dumchar_info

Part_Name	Size	StartAddr	Type	MapTo

preloader 0x0000000000600000 0x0000000000000000 2 /dev/misc-sd

mbr 0x0000000000080000 0x0000000000000000 2 /dev/block/mmcblk0

ebr1 0x0000000000080000 0x0000000000080000 2 /dev/block/mmcblk0p1

pmt 0x0000000000400000 0x0000000000100000 2 /dev/block/mmcblk0

pro_info 0x0000000000300000 0x0000000000500000 2 /dev/block/mmcblk0

nvram 0x0000000000500000 0x0000000000800000 2 /dev/block/mmcblk0

protect_f 0x0000000000a00000 0x0000000000d00000 2 /dev/block/mmcblk0p2

protect_s 0x0000000000a00000 0x0000000001700000 2 /dev/block/mmcblk0p3

seccfg 0x0000000000020000 0x0000000002100000 2 /dev/block/mmcblk0

uboot 0x0000000000060000 0x0000000002120000 2 /dev/block/mmcblk0

bootimg 0x0000000000600000 0x0000000002180000 2 /dev/block/mmcblk0

recovery 0x0000000000600000 0x0000000002780000 2 /dev/block/mmcblk0

sec_ro 0x0000000000600000 0x0000000002d80000 2 /dev/block/mmcblk0p4

misc 0x0000000000080000 0x0000000003380000 2 /dev/block/mmcblk0

logo 0x0000000000300000 0x0000000003400000 2 /dev/block/mmcblk0

ebr2 0x0000000000080000 0x0000000003700000 2 /dev/block/mmcblk0

expdb 0x0000000000a00000 0x0000000003780000 2 /dev/block/mmcblk0

android 0x0000000028a00000 0x0000000004180000 2 /dev/block/mmcblk0p5

cache 0x0000000007e00000 0x000000002cb80000 2 /dev/block/mmcblk0p6

usrdata 0x0000000040000000 0x0000000034980000 2 /dev/block/mmcblk0p7

fat 0x0000000071180000 0x0000000074980000 2 /dev/block/mmcblk0p8

bmtpool 0x0000000001500000 0x00000000ff9f00a8 2 /dev/block/mmcblk0

Part_Name:Partition name you should open;

Size:size of partition

StartAddr:Start Address of partition;

Type:Type of partition(MTD=1,EMMC=2)

MapTo:actual device you operate
[Miscellaneous Android Development] 其实我也不懂:
Here is my config

Please tell me what's wrong. thank you very much!
[Miscellaneous Android Development] yuweng:
Yeoh bro, you ask the wrong person, i'm having trouble myself even to setup the build environment on my Virtualbox...

Guess you'll have to pm ceco AKA C3C076 yourself, i'm sure he'll help you out... :fingers-crossed:

AFAIK, there is additional mod/ edit, take a look at here too... ;)
[Miscellaneous Android Development] D@nge1:
Guys, how to increase the size of Recovery on MTK6589 - flashtool an error 8038, swears by the PMT ...
[Miscellaneous Android Development] melander:
there is a tutorial the the first page on how to do that

here is a link of the pdf file tutorial, click here.
[Miscellaneous Android Development] rnovino:
error

i am having this error :(
[Miscellaneous Android Development] D@nge1:
I've read the documentation, I would not be writing if this method worked!
[Miscellaneous Android Development] superbar:
the documentation said i just change the scatter file so that 7mb mode will work, but the problem is that the spflashtool gives put an error because of the large size, any ideas? did we miss a step?
[Miscellaneous Android Development] D@nge1:
Such a mistake - not the same PMT block the phone with a scatter file.
[Miscellaneous Android Development] superbar:
what do you mean? how do i fix mine?
[Miscellaneous Android Development] 其实我也不懂:
thank you,i use https://github.com/C3C0/android_device_thl_w8 and it works well！
[Miscellaneous Android Development] yuweng:
You have ro.secure=1 on your boot.img use the manual port instead... :cowboy:

You'll need your Factory ROM for this 7Mb TWRP mod to work... :cowboy: You have to download all the affected partition as stated in the tut... :cool:

Tested & works on ThL_W8 using SPFT files from ThL & also on my MT6577 device too, using MTK Droid Tools Factory ROM backup, both method works...:good:

i guess may be its your SPFT problem, some version works without error while others always have error... :D

Haha, now you can be my Shifu to teach me back on how to compile CWM from source... :laugh:
[Miscellaneous Android Development] rnovino:
i made it work I have disabled the UAC :) I have used the 2.5.0 version first then used the other versions because I am on a mt6589
[Miscellaneous Android Development] superbar:
You'll need your Factory ROM for this 7Mb TWRP mod to work... :cowboy: You have to download all the affected partition as stated in the tut... :cool:

Tested & works on ThL_W8 using SPFT files from ThL & also on my MT6577 device too, using MTK Droid Tools Factory ROM backup, both method works...:good:

i guess may be its your SPFT problem, some version works without error while others always have error... :D

everytime i will flash those files base on your tutorial, it gives out an error and the flashing would stop
[Miscellaneous Android Development] rimmon1971:
Try using last version of MTK droid (2.4.5) that generates PMT scatter file too...

---------- Post added at 08:34 AM ---------- Previous post was at 08:27 AM ----------

Oh, you can find it here http://db.tt/3mewzvYq (my Dropbox)
[Miscellaneous Android Development] 其实我也不懂:
Forgive my poor english!

Do you use cm7 compile recovery?If so,first you should edit \vendor\cyanogen\products\AndroidProducts.mk .You should clear all code except PRODUCT_MAKEFILES := \ next you can use code make -j4 otatools

inorder to extract the files we need,wo should edit boot.img use hex editor .

First ,open boot.img use the hex editor ,then delete all the data from offset(h) 00000800 to 000009f0 ,save the boot.img .Next ,use code such as build/tools/device/mkvendor.sh Samsung cooper ~/boot.img to extract files we need.
[Miscellaneous Android Development] superbar:
I resized everything and my recovery fits but when booting to recovery it twrp shows up but touch screen doesnt work, any idea?
[Miscellaneous Android Development] vbdss:
I have an Motorola Razr D3 which were launched in Brazil earlier in April, it uses MTK 6577 and runs JB 4.1.2 on Kernel 3.4.0

We have rooted the device already, we have access to stock firmware and RSD Connected works to flash the stock firmware.

Can someone help me try to put TWRP or CWM on the phone ? RSD Lite doesnt seem to recognize the device since it wont let press start.

I can provide the scatter file for further information on partitions

btw it uses eMMC
[Miscellaneous Android Development] yuweng:
Yeoh Shifu, thank you so much for your valuable info & your written English is fine & i may pm you when i'm stuck again at compiling CWM from source... :D

For some device, TWRP touch won't work, i presume manufacturer didn't include something at the kernel... :cowboy:

For my Lenovo A789, TWRP touch doesn't work if i use kernel from Official Lenovo, only kernel from Lewa OS works... :cool:

You don't need RSD only a working adb then you can use the Auto-port feature... :laugh:

But be careful, it might brick your recovery since your partition might be different than standard MTK devices... :cowboy: