Post Reply

[FIX] mmcfix for all defy roms (fix for high class sd cards) (27/06/2012)

OP espaciosalter20

13th April 2012, 05:03 AM   |  #1  
espaciosalter20's Avatar
OP Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 715
 
1,269 posts
Join Date:Joined: Jun 2011
Donate to Me
More
What is mmcfix??? It's a fix developed by epsylon3 for cm7 in order to prevent data corruption on several high class sd cards.

As you all know, our lovely Defy seems to have a problem when it comes to using sd cards... where *GENERALLY* all class 2 cards are fine, and problems may occur with higher class cards.

The problem is basically: the phone loses its write acces to the card, and therefor for example the photo camera app can take pictures, but can't save them... Another sign of this issue would be an absurd "SD Card damages/corrupted, please format" notification, and the sdcard never mounting again untill you well...re-format the card. This happens to me once a week, making me have to backup my stuff to the pc, format the card, and then put it all back on the card, and voila off we go till the next "false corruption".

it's seems that this problem is a software issue, and not hardware, and i have found out it is an OMAP kernel issue:

"SD card problems since 2.2 update is a bug in OMAP kernel sources for froyo. CyanogenMod developpers worked hard to patch the kernel but it is hard to correct motorola bugs due to the locked bootloader." (source: Motorola support forums")

THIS WILL WORK WITH ALL STOCK ROMS NOT WITH CM7 AND DERIVATES

Requirements:

* A rooted Defy
* A recovery installed (preferably Clockworkmod)((Note: if you don't have a recovery installed on your phone, please refer to this post:http://forum.xda-developers.com/show....php?t=1032212))
* A recent version of busybox ((https://play.google.com/store/apps/d....busybox&hl=en)) --> if you have titanium backup, you don't need this


NEW (UPDATED) INSTALLATION WAY:

I made a new cwm zip to make this fix fully compatible for stock roms (thanks to popcorn1122 for reporting files and folders to made this fully work on stock):

https://www.box.com/s/78a3a8a672af6f35bd84

(File are attached too)

copy to your sd card, preferably to the root of the SD, reboot your phone, open your recovery and choose "install zip from sd card", select this zip and install it.


THIS IS THE OLD WAY (FUNCTIONAL FOR ALL ROMS WITH INIT.D SUPPORT):
In order to solve this issue, we need Root Manager (or any Root file explorer), and follow this few steps:
1. Download mmcfix.ko http://mir.cr/1BSJ3DNE and 09mmcfix http://mir.cr/ORF4LHOM
2. Check that you have install-recovery.sh on /system/etc, if you doesn't have it, download from here: https://www.box.com/shared/ccd6eddad8bfcda5776b, and copy to the /system/etc folder, and set permissions (owner: Read-write-execute, Group: Read-execute, Others: Read-execute)
3. Copy mmcfix.ko to /system/lib/modules (mount R/0 in Root Manager in order to copy the file)
4. Set permissions for file (owner: Read-write, Group: Read, Others: Read)
5. Copy 09mmcfix script to /system/etc/init.d (mount R/0 in Root Manager in order to copy the file)
6. Set permissions for file (owner: Read-write-execute, Group: Read-execute, Others: Read-execute)
7. Reboot the phone to bootmenu. ((press volume down when led going blue at reboot))
8. You have to set "enable" in load all modules at CPU in bootmenu.
9. Reboot again the phone and let it boot normally.
10. Enjoy the fix!

ALTERNATIVE ZIP FOR ROMS WITH INIT.D SUPPORT:

Here is a installable zip via CMW, http://www.mirrorcreator.com/files/0...cfix.zip_links , copy to your sd card, preferably to the root of the SD, reboot your phone, open your recovery and choose "install zip from sd card", select this zip and install it. ((Thanx to mys_721tx for the zip))

MD5 (mmcfix.zip) = 6a3c37fedee78825b8e2c42dfe073d59


If you need further help, PM me. If you find this thread helpful, please, hit THANKS button

Special thanx to epsylon3 for all the hard work
Attached Files
File Type: zip mmcfix_stock_rom.zip - [Click for QR Code] (160.2 KB, 353 views)
Last edited by espaciosalter20; 27th June 2012 at 04:58 PM. Reason: new installation way for mmcfix
The Following 22 Users Say Thank You to espaciosalter20 For This Useful Post: [ View ]
13th April 2012, 05:19 AM   |  #2  
Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Nov 2010
More
Our devs are above geniuses. They'll ever have my eternal gratitude, to infinity and beyond!
13th April 2012, 05:27 AM   |  #3  
Garuxa's Avatar
Senior Member
Flag Santiago
Thanks Meter: 215
 
568 posts
Join Date:Joined: May 2011
More
So this is the fix that fixes the problem of high class microsd. I have a microsd class 10 and the Walter roms always had the problem that was changed to read-only mode, but never had that problem on CM7

Thank you for sharing this
Last edited by Garuxa; 13th April 2012 at 06:10 AM.
13th April 2012, 06:02 AM   |  #4  
airwolf1544's Avatar
Senior Member
Flag Rosenheim
Thanks Meter: 87
 
296 posts
Join Date:Joined: Jan 2011
More
Isn't the mmcfix included in CM7 since months?
Don't know if the mmcfix is required to CM9
13th April 2012, 09:04 AM   |  #5  
oSandmaNo's Avatar
Senior Member
Flag Kochi
Thanks Meter: 445
 
1,187 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Good job!! I had this issue on Stock rom but on cm7 it works fine
My class 10 speed got reduced to 2-3 MBps but before it was 10+ MBps.. can I fix that?
13th April 2012, 01:21 PM   |  #6  
espaciosalter20's Avatar
OP Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 715
 
1,269 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Quote:
Originally Posted by Garuxa

So this is the fix that fixes the problem of high class microsd. I have a microsd class 10 and the Walter roms always had the problem that was changed to read-only mode, but never had that problem on CM7

Thank you for sharing this

Yeah, i decided to work in port this fix for all roms,
Because I have Ms2ginger Beta 2, and that's problem always bother me. Now it's gone!!!




Quote:
Originally Posted by airwolf1544

Isn't the mmcfix included in CM7 since months?
Don't know if the mmcfix is required to CM9


Epsylon made this fix for Cm7 A long time ago, because we have a locked bootloader, people with froyo (cm7) kernel on cm9 must have this on for preventing data corruption. Don't know if GB Kernel, solved that problem... But if you want it, check /system/lib/modules, if Mmcfix it's there, the fix are on too




Quote:
Originally Posted by kadavil

Good job!! I had this issue on Stock rom but on cm7 it works fine
My class 10 speed got reduced to 2-3 MBps but before it was 10+ MBps.. can I fix that?

yes... Are you using a stock ROM right now?? Well, mmcfix it's for you. And maybe, you have to install "sd speed increase" in order to unleashed all the speed of your sd card. (this app uses a script written for somebody here in xda that tweak sd access speed)

Enviado desde mi MB526 usando Tapatalk
The Following User Says Thank You to espaciosalter20 For This Useful Post: [ View ]
13th April 2012, 01:59 PM   |  #7  
chachoi's Avatar
Senior Member
Flag Antipolo City
Thanks Meter: 25
 
326 posts
Join Date:Joined: Dec 2011
More
Quote:
Originally Posted by espaciosalter20

Yeah, i decided to work in port this fix for all roms,
Because I have Ms2ginger Beta 2, and that's problem always bother me. Now it's gone!!!







Epsylon made this fix for Cm7 A long time ago, because we have a locked bootloader, people with froyo (cm7) kernel on cm9 must have this on for preventing data corruption. Don't know if GB Kernel, solved that problem... But if you want it, check /system/lib/modules, if Mmcfix it's there, the fix are on too






yes... Are you using a stock ROM right now?? Well, mmcfix it's for you. And maybe, you have to install "sd speed increase" in order to unleashed all the speed of your sd card. (this app uses a script written for somebody here in xda that tweak sd access speed)

Enviado desde mi MB526 usando Tapatalk

is it safe to use SD SPEED INCREASE App?
13th April 2012, 02:08 PM   |  #8  
espaciosalter20's Avatar
OP Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 715
 
1,269 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Quote:
Originally Posted by chachoi

is it safe to use SD SPEED INCREASE App?

I'm using it right now...

Enviado desde mi MB526 usando Tapatalk
13th April 2012, 06:22 PM   |  #9  
Member
Thanks Meter: 33
 
75 posts
Join Date:Joined: Jul 2011
2. Check that you have install-recovery.sh on /system/etc

What if it's not there?
The Following User Says Thank You to configuration For This Useful Post: [ View ]
13th April 2012, 08:53 PM   |  #10  
espaciosalter20's Avatar
OP Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 715
 
1,269 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Quote:
Originally Posted by configuration

2. Check that you have install-recovery.sh on /system/etc

What if it's not there?

Sorry, thread updated

Enviado desde mi MB526 usando Tapatalk

The Following User Says Thank You to espaciosalter20 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
all roms, data corruption, fix for defy, mmcfix, sd high class card
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Defy Android Development by ThreadRank