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

Search This thread
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://xdaforums.com/showthread.php?t=1032212))
* A recent version of busybox ((https://play.google.com/store/apps/details?id=stericson.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/0LKUJ2SV/mmcfix.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 :D

Special thanx to epsylon3 for all the hard work
 

Attachments

  • mmcfix_stock_rom.zip
    160.2 KB · Views: 515
Last edited:

jereaa

Member
Nov 15, 2010
41
2
Our devs are above geniuses. They'll ever have my eternal gratitude, to infinity and beyond!
 

Garuxa

Senior Member
May 12, 2011
580
218
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 :)
 
Last edited:
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!!!




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


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




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
 
  • Like
Reactions: Garuxa

chachoi

Senior Member
Dec 6, 2011
332
26
Antipolo City
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?
 

Goose-T

Senior Member
Apr 13, 2011
91
59
Budapest
User of stock and ms2ginger roms, please report here if the fix is working or not for you.

Thanx!!!

Enviado desde mi MB526 usando Tapatalk

I've applied it to MS2Ginger 3.0, but I'm still having the same strange issues as with the stock ROM or before the fix. Sometimes the camera does not save the photo, sometimes Mantano Reader drops Force Close and writes JDBC exception into the system log (trying to update database on SD card). How can I check if the mmcfix module is loaded into the memory? These issues never occur when I use CM-based ROMs, although I'm using the same kernel. Install-recovery.sh is present, I copied the script and the module to the right places and set the right permissions.
 

miziel

Senior Member
Jan 31, 2009
74
13
Gliwice - Poland
I've made a zip file for recovery.

I think it works but i haven't tested it yet. Wil do it later :)

install-recovery.sh is included, i hope that even if somebody have this file i doesn't matter :)

Enjoy!


PS. If it works, add it to the first post :)
 

Attachments

  • MMCfix.zip
    161.1 KB · Views: 87

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    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://xdaforums.com/showthread.php?t=1032212))
    * A recent version of busybox ((https://play.google.com/store/apps/details?id=stericson.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/0LKUJ2SV/mmcfix.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 :D

    Special thanx to epsylon3 for all the hard work
    2
    Sorry haven't read pervious post. looks like I reinvent the wheel again here :p
    ----
    Hi folks! I made a flashable zip file for mmcfix.

    It will copy the files and set them with right permission. Only thing you have to do is load it in the bootmenu.

    I've tested it on my defy, it works. But still here's the disclaimer: please use this zip package on your own responsibility. I am not responsible for including but not limited to bricked devices, dead SD cards.

    Here's the link.

    MD5 (mmcfix.zip) = 6a3c37fedee78825b8e2c42dfe073d59
    2
    Yeah, that totally works! I think you should include this advice in the first post.

    First post updated :D
    1
    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!!!




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


    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




    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
    1
    I think that this patch should be included in all the ROM releases lately...we see constantly flashing roms...multiboots...as such flashing these instructions time and again would be a waste and a hindrance

    Sent from ari@defy