Post Reply

[PORT] [TOOL] Carliv Touch Recovery for MediaTek devices

12th September 2012, 01:12 PM   |  #11  
Member
Thanks Meter: 6
 
47 posts
Join Date:Joined: Dec 2011
More
re-packing error
Now I am doing this on Xubuntu so maybe that's why it doesn't work:

I get the following when trying to repack:

MTK-Tools by Bruno Martins
MT65xx repack script (last update: 31-07-2012)

Repacking recovery image...
Ramdisk size: gzip: unpack/ramdisk-repack.cpio.gz: No such file or directory
Could not open ramdisk file: ramdisk-repack.cpio.gz


Any ideas?

Unpacking is no problem.
12th September 2012, 06:08 PM   |  #12  
yuweng's Avatar
OP Senior Member
Thanks Meter: 2,459
 
771 posts
Join Date:Joined: Feb 2012
This Android Kitchen plugins only work with cygwin...

Even unpacking shouldn't have work because mkbootimg & 7z is windows exe...

i'm in the mid of modding it so that it can work on linux too...
Last edited by yuweng; 12th September 2012 at 07:53 PM.
The Following 2 Users Say Thank You to yuweng For This Useful Post: [ View ]
13th September 2012, 06:13 AM   |  #13  
Member
Thanks Meter: 6
 
47 posts
Join Date:Joined: Dec 2011
More
Thanks for your reply yuweng. 7z is available as a plugin for Ubuntu too.

In the mean time I will try another website which I already posted a link before.

http://www.slatedroid.com/topic/3245...y-using-linux/
13th September 2012, 11:00 AM   |  #14  
Member
Thanks Meter: 33
 
38 posts
Join Date:Joined: Aug 2012
Quote:
Originally Posted by breaky9973

Now I am doing this on Xubuntu so maybe that's why it doesn't work:

I get the following when trying to repack:

MTK-Tools by Bruno Martins
MT65xx repack script (last update: 31-07-2012)

Repacking recovery image...
Ramdisk size: gzip: unpack/ramdisk-repack.cpio.gz: No such file or directory
Could not open ramdisk file: ramdisk-repack.cpio.gz


Any ideas?

Unpacking is no problem.

It will work on any GNU/Linux as long as you have the proper tools installed. Almost all tutorials for Android "modding" are Cygwin-based, which basically emulates a GNU system on Windows (so you can skip all parts about "setting up" anything). Here your file does not exist, please double-check that it does. This is a perl script which utilizes gzip, gunzip, and cpio. Make sure these are available as well.

Btw, this is independent of Android Kitchen. You don't need that if you're using the builder. Android Kitchen is just a front-end to modifying ROMs. So skip the Kitchen for now and do this manually.

Again, the "another website" you link to is about backing up real filesystems (which the boot and recovery partitions are not). See: http://forum.xda-developers.com/show...1744265&page=2

yuweng: What benefit does using the Android Kitchen have over simply using the builder? All you need is a rebuilt /sbin/recovery along with the resources in /res, and optionally an ext2.ko if it does not exist on the phone itself.
Last edited by jason_cheng; 13th September 2012 at 11:21 AM.
13th September 2012, 05:47 PM   |  #15  
yuweng's Avatar
OP Senior Member
Thanks Meter: 2,459
 
771 posts
Join Date:Joined: Feb 2012
This is just a simple tool for n00b/ newbie...

i was a n00b six months ago & even now my android knowledge is still half empty...

As the first post says, there are hundreds if not thousands of android phone based on MT6573 SoC design, each with their own recovery.img-kernel.img & AFAIK, non is compatible for use on others...

i simply provided a plugins based on Android Kitchen so that even a n00b/ newbie can port cwmr to their MT6573 simply by just drag & drop files to it... You are a programmer by profession i presume, so this is chicken feet to you but to a n00b/ newbie they don't no even where to start, like i did...

you'll be surprise if i tell you the top download of my tuts is rooting & installing busybox !

As for the builder, you still need to unpack it, copy few files over & repack it with bgcngm's MTK-tools for it to work on MT6573...not alot of n00b/ newbie know how to do that !

the intention of this plugins is to be able to port cwmr to any mt6573 based android phone...
The Following 2 Users Say Thank You to yuweng For This Useful Post: [ View ]
13th September 2012, 07:47 PM   |  #16  
Member
Thanks Meter: 33
 
38 posts
Join Date:Joined: Aug 2012
Quote:
Originally Posted by yuweng

This is just a simple tool for n00b/ newbie...

i was a n00b six months ago & even now my android knowledge is still half empty...

As the first post says, there are hundreds if not thousands of android phone based on MT6573 SoC design, each with their own recovery.img-kernel.img & AFAIK, non is compatible for use on others...

i simply provided a plugins based on Android Kitchen so that even a n00b/ newbie can port cwmr to their MT6573 simply by just drag & drop files to it... You are a programmer by profession i presume, so this is chicken feet to you but to a n00b/ newbie they don't no even where to start, like i did...

you'll be surprise if i tell you the top download of my tuts is rooting & installing busybox !

As for the builder, you still need to unpack it, copy few files over & repack it with bgcngm's MTK-tools for it to work on MT6573...not alot of n00b/ newbie know how to do that !

the intention of this plugins is to be able to port cwmr to any mt6573 based android phone...

yuweng, and I thought you were the programmer! (other than bgcngm I see you as our local MTK expert)

Seriously, we are all noobs. That was my main concern Android Kitchen interface is command-based whereas the builder you just need to upload an image and you will get an image in return.

So do you mean using Android Kitchen there is no need to go through setting up Cygwin, repack, unpack, etc.? Just download the Kitchen, enter some commands, and you will have a recovery.img which you can flash directly?
Last edited by jason_cheng; 13th September 2012 at 07:56 PM.
13th September 2012, 08:03 PM   |  #17  
yuweng's Avatar
OP Senior Member
Thanks Meter: 2,459
 
771 posts
Join Date:Joined: Feb 2012
i'm a half-cook programmer...

yaya, but you need to setup java, Android Kitchen & the plugins scripts will do everything... That is for linux...For windows, you already know...

As for the builder, it works on major brands where it can be flash directly but not on mt65xx...
The Following 2 Users Say Thank You to yuweng For This Useful Post: [ View ]
13th September 2012, 09:11 PM   |  #18  
Member
Thanks Meter: 33
 
38 posts
Join Date:Joined: Aug 2012
Ahh OK in that case I do suppose the Kitchen would be much simpler.

Ya, the MTK partitions and images are not the same as those of other devices. That's why Bruno wrote the script to help us
19th September 2012, 08:37 AM   |  #19  
Member
Thanks Meter: 6
 
47 posts
Join Date:Joined: Dec 2011
More
Quote:
Originally Posted by jason_cheng

yuweng, and I thought you were the programmer! (other than bgcngm I see you as our local MTK expert)

Seriously, we are all noobs. That was my main concern Android Kitchen interface is command-based whereas the builder you just need to upload an image and you will get an image in return.

So do you mean using Android Kitchen there is no need to go through setting up Cygwin, repack, unpack, etc.? Just download the Kitchen, enter some commands, and you will have a recovery.img which you can flash directly?

Hi Jason,

I have cpio and can execute perl scripts. gzip and gunzip are setup too. The script just cannot find the file ramdisk-repack.cpio.gz and I cannot find it anywhere.
Maybe the dump of the recovery.img was not good. I will try again.
19th September 2012, 05:56 PM   |  #20  
Member
Thanks Meter: 6
 
47 posts
Join Date:Joined: Dec 2011
More
*UPDATE*

The mkbootimg executabe I download was not correctly installed. Now the script finishes without error.
However the recovery.img doesn't do anything. I think I have to look for another mkbootimg or compile one from source myself...

For people who are interested to try the Ubuntu way:

Unpacking:

sudo perl ./unpack-MT65xx.pl recovery.img

Re-packing:

sudo perl ./repack-MT65xx.pl -recovery ./recovery.img-kernel.img ./recovery.img-ramdisk ./recovery.img

I will attach the mkbootimg once I succeed
Last edited by breaky9973; 19th September 2012 at 06:01 PM.

Post Reply Subscribe to Thread

Tags
custom recovery, mt65xx, mtk, porting tool, recovery
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Miscellaneous Android Development by ThreadRank