yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] topaza:
It just says "Aborting, an error has been detected..."

I put stock recovery.img to stock folder and CTR 1.1 image to CWM folder and renamed both to "recovery.img". Am I doing anything wrong?

---------- Post added at 07:29 PM ---------- Previous post was at 06:53 PM ----------

Maybe I should add some words, why I am trying to get a working CTR for my device at all...

I need a recovery that is able to install a zip file containing files for /data

My device is a little bit special as /sdcard is not a separate partition but a link(?) to /data/media

There are currently 2 partly working recovery.img for my device (Alcatel One Touch Idol 6030D):

1. CWM: it basically works and can mount /data but it can only flash a zip from /sdcard. If you select "flash from sd" the first thing it does is trying to mount /sdcard and it aborts as it fails.

2. TWRP: It has an Option to flash a zip from any location but it fails to mount /data for some reason. If I select "mount /data" it mounts the root disk to /data instead of the data disk...

So, I hopped that maybe CTR can accomplish this task...
[Miscellaneous Android Development] tribual:
Hi!

Have problems with port of twrp 2.5.0.0. to my no.1 s6 with mt6589. It's emmc with 1280x720 soc.

Have done the port with your tool from op. auto and manual. Always get recovery.img without any errors. But when i flash these, i got stuck at bootlogo.

Here the original and the ported recovery.img, so please if anyone can have a look. :confused:

Original: http://www17.zippyshare.com/v/99385212/file.html

TWRP Port: http://www17.zippyshare.com/v/95519036/file.html

THX and Greetz

tribual
[Miscellaneous Android Development] superdragonpt:
Just an hint ... Most of the Mount Points issues reported by the users here, I bet its related with the fact that you guys are using the stock 3e recovery fstab mount points.

That's just wrong, as those are not the real mount points but rather symlinks, or protected points. (like some phones having their stock recovery on the /secro partition)

B.Regards
[Miscellaneous Android Development] tribual:
Hi!

Also tried the port with CWM recovery as base. Also got stuck at bootlogo.

This was the way i've made it. Maybe i've done something wrong?

- Flashed original stock rom to phone (via sp flash tool)

- made changes to scatter file for 7MB partition (notepad++)

- flashed the same rom a second time with new scatter file (sp flash tool)

- used port tool from op to generate TWRP (michfood-Port-TWRP-V2.5.0.0-Javum)

- flashed from port tool generated recovery.img (using 3e and also for testing cwm recovery.img) (sp flash tool)

- reboot --> got stuck at bootlogo

So where is the problem? I don't know? :confused:

At this point i need help, because i'm a noob that wants to learn!

Greetz anf THX

tribual
[Miscellaneous Android Development] yuweng:
Now only you are telling, its been mentioned many times only this & this support Alcatel custpack partition & your problem with /datamedia on latest MTK devices....

As said before, many got the 7Mb mod working on their MT6589 & many doesn't too... :cowboy: Beta-tester needed then refer to solution here... :cool:

WARNING : Might brick your MTK device in doing so... :laugh: You must have experience in unbricking MTK devices if not then don't try it... :cowboy:
[Miscellaneous Android Development] tribual:
Hi!

Just for getting sure. Can someone with working TWRP port do the port with my files? Then i will test them to see if the problem is in port tool or in the way i've ported.

Here are the two recovery.img from my phone. One of Stock Rom and one with ported and working CWM.

Original: http://www17.zippyshare.com/v/99385212/file.html

Ported and working CWM: http://www69.zippyshare.com/v/67568620/file.html

THX!!
[Miscellaneous Android Development] topaza:
Thanks. I followed your first link and everything seems to work fine. I also got a message that is was successful but i cannot find a recovery.img anywhere... :(

What the hell am I doing wrong? I am going to spend 10€ to the guy who makes my idol boot from a recovery that is able to install a zip from /data/media to /data...
[Miscellaneous Android Development] yuweng:
Check ur pm... ;)

You on the other hand never check ur pm how to help without your stock recovery.img... :rolleyes:
[Miscellaneous Android Development] topaza:
sorry, did´t see your pm. here´s the 6030D stock recovery...
[Miscellaneous Android Development] mandeep1:
Hello ..!!

Any success with MT6572 ?

Has CWM been ported to MT6572 ubifs version ? Anyone ported ?
[Miscellaneous Android Development] ajparag:
Hi Yuweng,

I am totally new to this. I have used dsixda kitchen in the past and also extracted recovery.img/boot.img using perl scripts. However, I am totally clueless on how to install your script. I am confused whether I will need to install virtual box and ubuntu to run your script or it will work on windows via cygwin. Can you please help me out here? A step by step guide or a video will be great. Appreciate your efforts a lot!

Thanks!
[Miscellaneous Android Development] yuweng:
Bro, it has been mentioned here CT has added many UBIFS support here i donno how to merge those changes to CWM/ TWRP to compile one with ubifs support... :o

you'll have better luck upgrading it to ext4 rather than waiting for a DEV that also own a MT6572 & compile one that support ubifs... :laugh:

WARNING : Might brick your MTK device in doing so... :cool:

At adb shell -> cat /proc/filesystems, beside ubifs there should be ext4 too, if yes proceed with below, if no then you are stuck with stock 3e recovery & no custom ROM for you... :laugh:

Look at here & backup the system.img & cook it with Android Kitchen edit edify_def to ext4, port any MTK CWM/ TWRP all support ext4 filesystem... :cool:

Install cooked AK update.zip via ported ext4 CWM/ TWRP and you shall be able to upgrade it to ext4 filesystem

Yeoh Bro, you are a seasoned modder i don't expect such simple question from you... :cowboy:

Just download it, extract it to your Windows Desktop, double-click it & follow on-screen instructions, thats all... :laugh:
[Miscellaneous Android Development] luminelx64:
please I need help porting CWMR.

1. I tried to port CWMR to my MT6577 device.

the port tool requested me to put a compatible recovery.img in the CWMR folder then click ok.

where can I get the CWMR img file to port? cos its not included in the 7z file I downloaded.

2. I'm guessing I also need to increase the size of my recovery partition to accommodate the new recovery.img. how to I implement this on my scatterfile?

thanks.
[Miscellaneous Android Development] AnoopKumar:
Use ur stock recovery.img

the size of recovery partition is 6mb

Sent From My Mob
[Miscellaneous Android Development] biobio76:
hi guys, writing today because I don't really know how to create ( if possible ) a custom CWM for my new phone I got two days ago...

the phone is clone galaxy S4 MINI GT-9190 running CPU 6572

just to show you results in terms of

phone details

, I am attaching two screenshot from MTK Droid Tool version 2.4.8 B see below:

you can see the structure of block it's quite strange.....

I have tried to use MTK Droid Tool 2.4.8 B to generate my "own" custom CWM, but program failed creating it.....

so basically don't not which other way I can use trying to do it...

can you please help me if some solutions exist

many many thanks, appreciate the help of eveybody
[Miscellaneous Android Development] yuweng:
Bro, no CWM or custom ROM for you... To confirm at adb shell -> cat /proc/filesystems & if you see ubifs then you are out of luck... :D

To 100% confirm then unpack recovery.img backed up from MTK Droid Tools. Go to rmdisk -> etc -> recovery.fstab & if you see ubifs then you are 100% out of luck... :p

For more info, read 5 pages from the back that mentioned ubifs... :cowboy:
[Miscellaneous Android Development] biobio76:
hi bro,

don't have possibility to run adb shell on my pc....not installed

I tried to unpack the recovery.img with the tool you suggested me but it' sfailed ...sigh

would you please do me a big big favour...I am uploading here the factory_NONmodified_recovery.img I got from backup...can you please exctract it for me what you see please....

factory_NONmodified_recovery.zip ( size 5.1 MB )

https://mega.co.nz/#!g5BRTS7A!WOugljXMuP9VAmmcxGQnw2upGlcg51DHN_3i5JEqWdg

many many thanks....
[Miscellaneous Android Development] yuweng:
you are out of luck, my friend.... :p WARNING : Just in case you miss it -> here.... :cowboy:

# mount point	fstype	device	[device2]

/boot	mtd	boot
/cache	[COLOR="Blue"][B]ubifs[/B][/COLOR]	cache
/data	[COLOR="blue"][B]ubifs[/B][/COLOR]	userdata
/misc	mtd	misc
/recovery	mtd	recovery
/sdcard	vfat	/dev/block/mmcblk0p1	/dev/block/mmcblk0
/system	[COLOR="blue"][B]ubifs[/B][/COLOR]	system
[Miscellaneous Android Development] biobio76:
:crying: .....

means there is no way to have a custom CWM instead of his own stock CWM?.......right?
[Miscellaneous Android Development] yuweng:
Its a bit of luck, many do get a MT6572 with ext4 partition so i guess either you get another one with ext4 or just use it without CWM & NO custom ROMs for you...
[Miscellaneous Android Development] biobio76:
I got you unfortunately.....

let's say that the phone is working at least :)

my real problem is that I tried to create a full DUMP of my mounted stock rom, using SP FLASH TOOL ( readback function ) as well as with

MTK Droid tool....

basically the readback downloaded what it's suppose to be the whole stock rom as ROM_0

I have then extracted the ROM_o with MTK Droid tool 2.4.8B and I have it...of course I have not tried to flash it back on the phone....

Same think with the backup I got from MTK Droid tool directly.....not flashed back on phone ( I got here only the backup on PC.)..the folder Files_for_flashtool was failed on generation....

so this is my situation....basically I can't do anything, then use this phone hoping is not giving me issue etc because I can't put it back as when I receive it...sigh..
[Miscellaneous Android Development] yuweng:
forget about the cwmr u got from builder.clockworkmod.com; it only works on MT6573... :cowboy:

so far only two cwmr port work on my MT6577 that backup everything, others everything except boot.img & recovery.img...

you can also try cwmr from cybermaus... :cool:
[Miscellaneous Android Development] rezz93:
Success!

I kept trying various roms and finally hit on a winner!

The successful combination was my stock rom and this post.

The download for the CWM 5.5.0.4 is here and is from the above post.

The CWM recovery.img fixed the issues I was having with partitions not being mounted.

I just did a backup with the installed CWM and all seems well. Will test more features and make sure the restore functions works.

This is the CWM backup folder contents after this backup:

/mnt/sdcard/clockworkmod/backup/2012-10-11.04.24.35/system.ext4.tar

/mnt/sdcard/clockworkmod/backup/2012-10-11.04.24.35/recovery.img

/mnt/sdcard/clockworkmod/backup/2012-10-11.04.24.35/data.ext4.tar

/mnt/sdcard/clockworkmod/backup/2012-10-11.04.24.35/boot.img

So far so good!

Thank you yuweng. I have been trying to get CWM on this phone for over a month.:victory:

Still need to test backup/restore but looking good.

If you need the stock rom let me know.
[Miscellaneous Android Development] yuweng:
u r most welcome... :D

i don't think anyone would be interested in your stock ROM but your ported cwmr... :laugh:

if you want to help fellow xda member then attach a copy & i'm sure you'll be getting a few more 'thank'... :cool:

Having said that, it will be best if you could include a picture of your phone, baseband & kernel version so that fellow xda member wouldn't make a mistake that ends up with a brick recovery !

Then you won't be getting 'thank' instead cursing from them... :laugh:
[Miscellaneous Android Development] rezz93:
I already done enough cursing over the last few weeks trying to get a working CWM....don't need any more!:D

Here's the phone info in case anyone wants to try the CWM recovery.img on their HDC One S MTK6575:

Model : J1000

e1809c_v75_jxlc1

Build number : ALPS.ICS.MP.V1.11

Build date UTC : 20120612-111756

Android v : 4.0.3

Baseband v: MAUI.11AMD.W11.50.SP.V14, 2012/04/20 17:38

Kernel v : 3.0.13 (root@muxinwu-linux) (gcc version 4.4.3 (GCC) ) #1 Tue Jun 12 19:16:10 CST 2012]

Attaching the working CWM 5.5.0.4 recovery. No bugs found so far.

Also screenshot of phone info.

View attachment 1394062

View attachment 1394094
[Miscellaneous Android Development] hardi75:
yuweng, thanks for the nice tutorial. TWRP is working well on my V970 MTK6577. :D

Sorry for a maybe stupid question but whats the differences between the 3 and 4 button TWRP versions ?

In the touch recovery is no need for these button, isn't it ?
[Miscellaneous Android Development] yuweng:
@hardi

if u have follow my other thread then u would have know the reason... :D

earlier port doesn't work on my friend's MT6577 S3 9300 that has the three virtual button & i found out there is two version of Lewa's TWRP...

One supports 3 button & the other one 4 button...these button is the new virtual button typically is Menu, Home, Esc/ Back & the latest Search

Some MT6575/ 77 has the latest Search while some don't & i believe for ur case & also mine, both port works well on it... :laugh:

@breaky9973

Why u people never check ur pm one... :(

Anyway, got feedback from para_dox77 & he confirmed its b'cos the grd & mic/control is reverse...he is using wired HF & what he did was he cut & re-solder those cables & it worked for him ! But for your case, i guess u'll have to get another bluetooth headset that works with ur i695...
[Miscellaneous Android Development] apad:
The only issue with this port: impossible to boot to recovery manually on my One X clone MTK6577 1GB RAM. So, I resort to boot into recovery using Android Commander in USB debugging mode :D
[Miscellaneous Android Development] yuweng:
Yeoh bro, previously i got the same feedback from a fellow xda member... :eek:

He said he has tried all possible combinations & the only way for him to boot into cwmr is via mobileuncle tool & never got that problem solved...

Ok, here is what we'll gonna try, hope u still have ur stock recovery with you, try & see if it is possible to boot into Stock 3e recovery manually... :fingers-crossed:

If it does then this ported cwmr is not suitable for use then... :o

And if there is no way of getting into Stock 3e recovery then i think the manufacturer/ factory must have done something to it... :laugh:
[Miscellaneous Android Development] erlucky:
I have port trwp 2.2.2.1 touch for Acer Liquid Gallant Duo.

But not chance to backup also boot.img and recovery.img?
[Miscellaneous Android Development] yuweng:
i did try however the backup is only 1MB & it only let u restore recovery & that also, it doesn't work... :laugh:

recovery.fstab

/boot	emmc	/dev/block/mmcblk0boot0

/recovery	emmc	/dev/block/mmcblk0boot1

i presume current MT6575/ 77 Lewa TWRP doesn't have this feature built-in, however you can always try to mod it & see if it works as TWRP for other device does backup boot & recovery... :o

AFAIK, Lewa TWRP also come from the same source here... :good: And if you are good at compiling then you can go ahead & compile one for MT65xx... :D
[Miscellaneous Android Development] erlucky:
Ok right this is my partition layout

But recovery is 5.8 mb and boot.img is 4.5 mb ---> where is?
[Miscellaneous Android Development] yuweng:
That's what i was trying to tell you... :o
[Miscellaneous Android Development] erlucky:
Hi yuweng

Yes i understand you but you can help me for backup boot and recovery. How i can do?

For you we have some possibility?

We can change EBR1 for see recovery and boot?

On this devices mt6575 and mt6577 not have partition of boot and recovery i think..... they are only char-device.
[Miscellaneous Android Development] yuweng:
As said earlier, for TWRP, i've tried & given up...

Well, i guess we'll have to wait for V2 by Lewa then... :o

Or you could use rezz93 method for cwmr on ur MT6575... :good:

Are you using ubuntu or win... :confused:
[Miscellaneous Android Development] erlucky:
I use ubuntu 11.10 64 bit

I see this

shell@android:/ # cat /proc/dumchar_info
Part_Name Size StartAddr Type MapTo
preloader 0x0000000000040000 0x0000000000000000 2 /dev/misc-sd
dsp_bl 0x00000000005c0000 0x0000000000040000 2 /dev/misc-sd
mbr 0x0000000000004000 0x0000000000000000 2 /dev/block/mmcblk0
ebr1 0x000000000005c000 0x0000000000004000 2 /dev/block/mmcblk0p1
pmt 0x0000000000400000 0x0000000000060000 2 /dev/block/mmcblk0
nvram 0x0000000000300000 0x0000000000460000 2 /dev/block/mmcblk0
seccfg 0x0000000000020000 0x0000000000760000 2 /dev/block/mmcblk0
uboot 0x0000000000060000 0x0000000000780000 2 /dev/block/mmcblk0
bootimg 0x0000000000600000 0x00000000007e0000 2 /dev/block/mmcblk0
recovery 0x0000000000600000 0x0000000000de0000 2 /dev/block/mmcblk0
sec_ro 0x0000000000600000 0x00000000013e0000 2 /dev/block/mmcblk0p5
misc 0x0000000000060000 0x00000000019e0000 2 /dev/block/mmcblk0
logo 0x0000000000300000 0x0000000001a40000 2 /dev/block/mmcblk0
expdb 0x00000000000a0000 0x0000000001d40000 2 /dev/block/mmcblk0
ebr2 0x0000000000004000 0x0000000001de0000 2 /dev/block/mmcblk0
android 0x0000000020100000 0x0000000001de4000 2 /dev/block/mmcblk0p6
cache 0x0000000020100000 0x0000000021ee4000 2 /dev/block/mmcblk0p2
usrdata 0x0000000040100000 0x0000000041fe4000 2 /dev/block/mmcblk0p3
fat 0x00000000662fc000 0x00000000820e4000 2 /dev/block/mmcblk0p4
bmtpool 0x0000000000a00000 0x00000000ff9f0050 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

I think we have boot and recovery into /dev/block/mmcblk0

For backup boot.img on recovery.fstab i think have :

/boot emmc /dev/block/mmcblk0 bs=4096 count=1536 skip=2016

/recovery emmc /dev/block/mmcblk0 bs=4096 count=1536 skip=3552

Not ok this 2 line up....... how can write right line in recovery.fstab.

bs=block-size

count=number-of-blocks

skip=input-offset

bootimg:

Exadecimal Value Decimal Value
0x0000000000600000 -----> 6291456 / 4096 = 1536 ---> count
0x00000000007e0000 -----> 8257536 / 4096 = 2016 ---> skip

dd if=/dev/block/mmcblk0 of=/sdcard/boot.img bs=4096 count=1536 skip=2016 :good:

Recovery:

Exadecimal Value Decimal Value
0x0000000000600000 -----> 6291456 / 4096 = 1536 ---> count
0x0000000000de0000 -----> 14548992 / 4096 = 3552 ---> skip

dd if=/dev/block/mmcblk0 of=/sdcard/recovery.img bs=4096 count=1536 skip=3552 :good:

I have try and is ok...... i have backup this files and later use tools for unpack and all ok. But how can write this on recovery.fstab???

Bye
[Miscellaneous Android Development] yuweng:
Wow, you are very persistence & never do give up...

yeah, i did have a 2nd look at it again & concluded that its not possible as the dd function is embedded inside /sbin/recovery itself...

Current version doesn't have this support in it ...

Look at mnt: 'boot' & /boot |, it is totally different backup format from each other... :cowboy:

Since u r using Ubuntu & so eager to get recovery to backup both boot/ recovery.img, you can be my beta tester for my new script to port cwmr to *Any* :fingers-crossed: MT6575/ 77 here...

Extract it to a folder, at terminal, go to that folder & just ./start...

Do let me know how it works out on ur MT6575... :fingers-crossed:
[Miscellaneous Android Development] erlucky:
Yes

I'm very persistence.....;)

dd not avaible on recovery? not can use this on recovery.fstab?

In my search on xda i see one recovery.fstab of clockwork with something similar my line

/boot emmc /de/mmcblk0 bs=4096 count=---- skip=----

but not remeber if right.

Where i can find new twrp 2.3?

Ok i will try your script for htc android kitchen.
[Miscellaneous Android Development] yuweng:
Haha, its not available on MT6575/ 77 yet but you can get the sources & built it from here... :D

i'm not good at compiling from sources...

My new updated script runs direct on Ubuntu terminal... :good:
[Miscellaneous Android Development] erlucky:
Hi yuweng

I have made clockworkmod 6.0.1.5.... for my acer liquid gallant duo E350.

Backup : System Data Boot Recovery..... OK

Wipe: All.... OK

Restore : System Data Boot Recovery.... OK

Mount USB : Windows and Linux.... OK

I Think my recovery porting is 100% working

Link XDA is Here

Recovery.fstab is:

I have fix all i think...

Bye.
[Miscellaneous Android Development] yuweng:
Yeoh bro, thanks for the link... ;)

Will sure do test it out & report the finding here... :good:
[Miscellaneous Android Development] rnovino:
MT6582

always having MD5 mismatch after backup :( and doing restore on MT6582 smartphone

i've used this table (recovery.fstab)

Here is the link if you want to check my stock recovery on mediafire

# mount point	fstype	device	[device2]

/boot	emmc	/dev/bootimg
/misc	emmc	/dev/misc
/recovery	emmc	/dev/recovery
/system	ext4	/dev/block/mmcblk0p5
/cache	ext4	/dev/block/mmcblk0p6
/data	ext4	/dev/block/mmcblk0p7
/emmc	vfat	/dev/block/mmcblk0p8
/sdcard	vfat	/dev/block/mmcblk1p1 /dev/block/mmcblk1

still no good :(

I even tried this one

# mount point	fstype	device	[device2]

/boot	emmc	/dev/bootimg
/misc	emmc	/dev/misc
/recovery	emmc	/dev/recovery
/system	ext4	/emmc@android
/cache	ext4	/emmc@cache
/data	ext4	/emmc@usrdata
/emmc vfat	/emmc@fat
/sdcard	vfat	/dev/block/mmcblk1p1 /dev/block/mmcblk1

same problem :(

this is using the manual method of Carliv Recovery

and also both CWM by Rua1 and Caliv recovery are showing this kind of stuff when doing a restore or backup

kindly check attachment
[Miscellaneous Android Development] rnovino:
How to Get Stock ROM / RomDump of Mediatek MT6582 via MTK Droid Root and Tools

As always thanks to [MENTION=4478781]yuweng[/MENTION] for helping out :) and to [MENTION=5119815]rua1[/MENTION] for the Tools :) here is my Tutorial on how to get the Stock Rom of MT6582 Chipset :D

http://pinoyscreencast.net/get-stock-rom-romdump-mediatek-mt6582-via-mtk-droid-root-tools/
[Miscellaneous Android Development] yuweng:
Hmm, if you said both MTK Droid Tools auto-generated CWM & CTR also fail meaning indeed there is something wrong with your MTK & not the custom recoveries... :laugh:

And in the picture looks like corrupted backup with those file names... :D

Upon checking your site, i notice the backup-ed cache.img is only 130Mb instead of the usual 512Mb & your data.img is 1GB, thats huge & AFAIK, MTK Droid Tools uses dumchar_info to interpret those partition meaning MTK must've change it again... :cowboy:

idk, but you may try my super extreme resize TWRP here for porting to your device & see if it works as TWRP uses a totally different backup techniques from CWM... :fingers-crossed:

i've mod the existing TWRP 2630 to this super extreme resize TWRP for a xda friend b'cos on his MT6589 with 1080x1920 ported TWRP is over 7Mb so even my 7Mb mod will not work & he has to increase to 8Mb... :D

WARNING : Non of the TWRP features will work, only basic Backup/ Restore/ Wipe/ Install ROM works & its with 400x800 res... :laugh:
[Miscellaneous Android Development] rnovino:
I tested out the TWRP It won't boot up on my end even though I have replaced the files that is on my stock recovery :(
[Miscellaneous Android Development] yayakuya:
is TWRP port will work to MT6572 also?

how...???

TIA
[Miscellaneous Android Development] rnovino:
[MENTION=4478781]yuweng[/MENTION] I just formatted my SD Card and that causes the problem I think it has been virus haha anyways all my ported recoveries are now working fine ;) and also the TWRP woot!

---------- Post added at 01:24 PM ---------- Previous post was at 01:24 PM ----------

[/COLOR [MENTION=4478781]yuweng[/MENTION] I just formatted my SD Card and that causes the problem I think it has been virus haha anyways all my ported recoveries are now working fine ;) and also the TWRP woot!
[Miscellaneous Android Development] agismaniax:
I want to port CTR for my ZTE N986. I'm using CTR MTK tools v.1.1 from OP. I already have recovery.img from that phone. Should I connect my pc to the phone when I run that tool?

Sent from W8470 Quadra HD