Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,418 Members 47,783 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
espaciosalter20
Old
(Last edited by espaciosalter20; 27th June 2012 at 04:58 PM.) Reason: new installation way for mmcfix
#1  
espaciosalter20's Avatar
Senior Member - OP
Thanks Meter 713
Posts: 1,264
Join Date: Jun 2011
Location: Bogotá, Colombia, Colombia

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

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, 348 views)
The Following 22 Users Say Thank You to espaciosalter20 For This Useful Post: [ Click to Expand ]
 
jereaa
Old
#2  
Member
Thanks Meter 2
Posts: 41
Join Date: Nov 2010
Our devs are above geniuses. They'll ever have my eternal gratitude, to infinity and beyond!
 
Garuxa
Old
(Last edited by Garuxa; 13th April 2012 at 06:10 AM.)
#3  
Garuxa's Avatar
Senior Member
Thanks Meter 215
Posts: 568
Join Date: May 2011
Location: Santiago
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
Motorola Moto X
Just Stock non Rooted [KK 4.4.4]

=============================================

Previous Androids: Samsung Galaxy 5 GT-I5500L (Sold) - LG Optimus One P500 (Sold) - Motorola Defy MB525 (Bayer Module) (I lent it to my girlfriend) - Samsung Galaxy S II GT-I9100 (I gave it to my father)

Don't like my reply? READ THIS! Or shut up and WATCH AND LISTEN CAREFULLY THIS!
 
airwolf1544
Old
#4  
airwolf1544's Avatar
Senior Member
Thanks Meter 85
Posts: 291
Join Date: Jan 2011
Location: Rosenheim
Isn't the mmcfix included in CM7 since months?
Don't know if the mmcfix is required to CM9
 
oSandmaNo
Old
#5  
oSandmaNo's Avatar
Senior Member
Thanks Meter 445
Posts: 1,185
Join Date: Mar 2011
Location: Kochi

 
DONATE TO ME
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?
Nexus 5
 
espaciosalter20
Old
#6  
espaciosalter20's Avatar
Senior Member - OP
Thanks Meter 713
Posts: 1,264
Join Date: Jun 2011
Location: Bogotá, Colombia, Colombia

 
DONATE TO ME
Quote:
Originally Posted by Garuxa View Post
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 View Post
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 View Post
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: [ Click to Expand ]
 
chachoi
Old
#7  
chachoi's Avatar
Senior Member
Thanks Meter 25
Posts: 326
Join Date: Dec 2011
Location: Antipolo City
Quote:
Originally Posted by espaciosalter20 View Post
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?
 
espaciosalter20
Old
#8  
espaciosalter20's Avatar
Senior Member - OP
Thanks Meter 713
Posts: 1,264
Join Date: Jun 2011
Location: Bogotá, Colombia, Colombia

 
DONATE TO ME
Quote:
Originally Posted by chachoi View Post
is it safe to use SD SPEED INCREASE App?
I'm using it right now...

Enviado desde mi MB526 usando Tapatalk
 
configuration
Old
#9  
Member
Thanks Meter 33
Posts: 75
Join Date: 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: [ Click to Expand ]
 
espaciosalter20
Old
#10  
espaciosalter20's Avatar
Senior Member - OP
Thanks Meter 713
Posts: 1,264
Join Date: Jun 2011
Location: Bogotá, Colombia, Colombia

 
DONATE TO ME
Quote:
Originally Posted by configuration View Post
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: [ Click to Expand ]
Tags
all roms, data corruption, fix for defy, mmcfix, sd high class card
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes