FORUMS

Hauwei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

OnePlus 2 Bares All in New Tear Down Gallery

Last year, the launch of the OnePlus One, dubbed ‘the flagship killer’, visibly … more

Focus – An Attractive But Raw Gallery Replacement

Focus is an attractive new app built by XDA members Liam Spradlin … more

How to Root the LG G4 and Install TWRP Recovery – XDA TV

A rooting method has finally been found for the flagship LG G4. In this … more

[RDU][CWM] BML to MTD Conversion Utility v0.1| [5/17]

1,486 posts
Thanks Meter: 1,466
 
By RandomKing, Retired Recognized Developer on 16th May 2012, 01:57 PM
Post Reply Subscribe to Thread Email Thread
The Goal: To create a CWM flash-able .zip that will convert a BML formatted phone to MTD without the need to be included in a rom, creating a standard and simplicity for end-users.

RDU
ROM DEVELOPERS UNITED
AS ONE


CWM BML to MTD Conversion Utility
Supported ROMs:
- Any BML Setup

So here's how it works:

This file will convert your phone's kernel and boot recovery to MTD. Afterwards, you will be able to flash an MTD rom.
ALWAYS make a backup of your data before flashing anything.

If you flash this over an already MTD rom, it will simply abort.

The Latest Version Here. After it finishes, your phone will be stuck in a loop. Pull the battery and 3-finger back into recovery to flash an MTD rom.

UPDATE: (--/--)

Further ideas or customizations from fellow rom developers welcome.
Last edited by RandomKing; 17th May 2012 at 07:20 PM.
The Following 10 Users Say Thank You to RandomKing For This Useful Post: [ View ]
 
 
16th May 2012, 02:31 PM |#2  
zman519's Avatar
Senior Member
Flag the Land of Beer & Cheese
Thanks Meter: 246
 
More
First

This sounds vary usefull on my firends Epics. I think it will speed thing up for me :) at times depending what they want

Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
Last edited by zman519; 16th May 2012 at 02:33 PM.
16th May 2012, 02:39 PM |#3  
RandomKing's Avatar
OP Retired Recognized Developer
Flag Random Land
Thanks Meter: 1,466
 
Donate to Me
More
Quote:
Originally Posted by zman519

First

This sounds vary usefull on my firends Epics. I think it will speed thing up for me :) at times depending what they want

Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.

Please note, this is a test version.

It's based on a version I used myself, but being on MTD, I can't test it easily.

There are 3 current scenarios it could yield:

1. Nothing happens.
2. It works perfectly.
3. It works, but puts the phone into a bootloop. This is what the old version did to me... Pop the battery. Boot into recovery. Profit.
16th May 2012, 03:15 PM |#4  
KennyG123's Avatar
RC-RT & Moderator Committees / Spider-Mod
Flag Right behind you!
Thanks Meter: 31,042
 
Donate to Me
More
So this would theoretically convert a BML ROM to MTD on a person's phone. Sounds great.

As a note to all remember as always to back up before flashing ANYTHING.

Sent from my SPH-D700 using xda premium
16th May 2012, 03:18 PM |#5  
RandomKing's Avatar
OP Retired Recognized Developer
Flag Random Land
Thanks Meter: 1,466
 
Donate to Me
More
Quote:
Originally Posted by kennyglass123

So this would theoretically convert a BML ROM to MTD on a person's phone. Sounds great.

As a note to all remember as always to back up before flashing ANYTHING.

Sent from my SPH-D700 using xda premium

Right now it should format your phone and prep it for a Rom. If it works properly, I'd like to rewrite it to convert and PRESERVE a BML Rom into an MTD Rom.
The Following 2 Users Say Thank You to RandomKing For This Useful Post: [ View ]
16th May 2012, 03:43 PM |#6  
zman519's Avatar
Senior Member
Flag the Land of Beer & Cheese
Thanks Meter: 246
 
More
Quote:
Originally Posted by RandomKing

Please note, this is a test version.

It's based on a version I used myself, but being on MTD, I can't test it easily.

There are 3 current scenarios it could yield:

1. Nothing happens.
2. It works perfectly.
3. It works, but puts the phone into a bootloop. This is what the old version did to me... Pop the battery. Boot into recovery. Profit.

I understand ;)

If my budy ever gets a new sdcard, I'll use his phone as a test dumey. The worst that could happen is I have to bust out the usb cable & fire up ODIN

Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
16th May 2012, 03:57 PM |#7  
KennyG123's Avatar
RC-RT & Moderator Committees / Spider-Mod
Flag Right behind you!
Thanks Meter: 31,042
 
Donate to Me
More
Ok so currently no data or apps are preserved. It is mostly a blank MTD slate?

Sent from my SPH-D700 using xda premium
16th May 2012, 04:06 PM |#8  
RandomKing's Avatar
OP Retired Recognized Developer
Flag Random Land
Thanks Meter: 1,466
 
Donate to Me
More
Quote:
Originally Posted by kennyglass123

Ok so currently no data or apps are preserved. It is mostly a blank MTD slate?

Sent from my SPH-D700 using xda premium

Yup. I need someone to confirm that it works properly. As I mentioned, I previously used a simpler version to convert myself to MTD and it worked, but it put me in a bootloop. I'm hoping to solve the bootloop so I can create a version to preserve a setup.
The Following 2 Users Say Thank You to RandomKing For This Useful Post: [ View ]
16th May 2012, 05:31 PM |#9  
nikon120's Avatar
Senior Member
Thanks Meter: 332
 
More
Quote:
Originally Posted by RandomKing

Yup. I need someone to confirm that it works properly. As I mentioned, I previously used a simpler version to convert myself to MTD and it worked, but it put me in a bootloop. I'm hoping to solve the bootloop so I can create a version to preserve a setup.

Well if you ran this and it put you in a boot loop, then it most likely worked properly since this would have formatted/converted your partition map to MTD. The BML rom would have either been erased or just unable to run due to the conversion.

Just a curious question here:
What would you need to do to actually convert an existing BML install to work on the MTD partition map?
16th May 2012, 05:37 PM |#10  
flastnoles11's Avatar
Senior Member
Flag columbia
Thanks Meter: 4,732
 
More
Quote:
Originally Posted by nikon120

Well if you ran this and it put you in a boot loop, then it most likely worked properly since this would have formatted/converted your partition map to MTD. The BML rom would have either been erased or just unable to run due to the conversion.

Just a curious question here:
What would you need to do to actually convert an existing BML install to work on the MTD partition map?

He said that it worked right in the post you quoted... lol
And I have no diea about the question... I'm kinda curious about this too...
16th May 2012, 05:56 PM |#11  
Senior Member
Thanks Meter: 1,253
 
More
Quote:
Originally Posted by nikon120

Well if you ran this and it put you in a boot loop, then it most likely worked properly since this would have formatted/converted your partition map to MTD. The BML rom would have either been erased or just unable to run due to the conversion.

Just a curious question here:
What would you need to do to actually convert an existing BML install to work on the MTD partition map?

Because formatting destroys the existing file structure (it doesn't actually erase files, just overwrites the data that maps out the locations of those files), everything would need to be copied to a temporary location before converting the original location to the new partition type. Then the temp data (backup) would need to be copied back to the original location using the new format.

It is not possible to just change the format while leaving the data in place - those warnings on every format command (in every computerized device - windows, mac, etc) were not a design decision, but a result of a design limitation. The backup/format/restore method is the only way.

Quote:
Originally Posted by flastnoles11

He said that it worked right in the post you quoted... lol
And I have no diea about the question... I'm kinda curious about this too...

He also said he was trying to solve the boot-loop problem, not a formatting problem. The clarification was not to assert that the formatting worked - the focus was on explaining the cause of the boot loop, to point out that there is no problem to be solved there because a BML kernel should boot loop when the rest of the partitions are freshly formatted MTD partitions.

The standard BML kernel can't read MTD, so the fact that those partitions are empty is irrelevant. Even if the partitions were converted without data loss (via a backup/convert/restore), the kernel would still need to be MTD-capable (so this by itself will not convert a BML rom to MTD)

Hopefully this clears up some of the confusion...

Sent from my SPH-D700 using XDA
Last edited by styles420; 16th May 2012 at 06:06 PM.
The Following 2 Users Say Thank You to styles420 For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes