Post Reply

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

OP espaciosalter20

21st April 2012, 11:32 PM   |  #31  
Garuxa's Avatar
Senior Member
Flag Santiago
Thanks Meter: 215
 
568 posts
Join Date:Joined: May 2011
More
Quote:
Originally Posted by espaciosalter20

That's weird, because i have ms2ginger 4.0 and the fix it's working perfectly.

Check which files are in init.d folder and tell me

Enviado desde mi MB526 usando Tapatalk

Even to me it worked with MS2Ginger 3.0 while using this rom

I did many tests to try to corrupt data, Microsd that self-change to read-only, etc.. All these problems occur without the fix.

I am currently with WIUI so I can not generate a log to demonstrate that it works
The Following User Says Thank You to Garuxa For This Useful Post: [ View ]
22nd April 2012, 10:10 AM   |  #32  
Member
Thanks Meter: 40
 
59 posts
Join Date:Joined: Apr 2011
More
Quote:
Originally Posted by espaciosalter20

That's weird, because i have ms2ginger 4.0 and the fix it's working perfectly.

Check which files are in init.d folder and tell me

Enviado desde mi MB526 usando Tapatalk

I've integrated mmcfix into my ROM, you can download it and extract the archive. I think everything's in place, but it just does not get loaded. Btw, the /etc/init.d folder contains the following files:
08backlight
09mmcfix
90multitouch
S70zipalign
S97ramscript
S99SuperCharger
23rd April 2012, 02:28 AM   |  #33  
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 Goose-T

I've integrated mmcfix into my ROM, you can download it and extract the archive. I think everything's in place, but it just does not get loaded. Btw, the /etc/init.d folder contains the following files:
08backlight
09mmcfix
90multitouch
S70zipalign
S97ramscript
S99SuperCharger

Sorry for keeping you checking things, but... can you transcribe the content of 09mmcfix? I´m about to think that this problem it's caused for busybox in your rom, because that isn't calling the module to load in kernel in boot....
23rd April 2012, 08:16 AM   |  #34  
Member
Thanks Meter: 40
 
59 posts
Join Date:Joined: Apr 2011
More
Quote:
Originally Posted by espaciosalter20

Sorry for keeping you checking things, but... can you transcribe the content of 09mmcfix? I´m about to think that this problem it's caused for busybox in your rom, because that isn't calling the module to load in kernel in boot....

No need to do it, that's the one in the first post. I've just downloaded it from here.
23rd April 2012, 02:33 PM   |  #35  
Junior Member
Thanks Meter: 2
 
22 posts
Join Date:Joined: Aug 2005
More
Quote:
Originally Posted by espaciosalter20

User of stock and ms2ginger roms, please report here if the fix is working or not for you.
Thanx!!!

I tried it on stock ROM (45.0.74.MB526.Retail.en.DE android 2.3.4 kernel 2.6.32.9-gbdd614e, build 4.5.1-134_DFP-74) but lsmod doesn't show mmcfix... when I try to load it manually, I get error:
insmod: can't insert '/system/lib/modules/mmcfix.ko': unknown symbol in module or invalid parameter
The Following User Says Thank You to krysha For This Useful Post: [ View ]
23rd April 2012, 03:03 PM   |  #36  
Member
Thanks Meter: 40
 
59 posts
Join Date:Joined: Apr 2011
More
Quote:
Originally Posted by krysha

I tried it on stock ROM (45.0.74.MB526.Retail.en.DE android 2.3.4 kernel 2.6.32.9-gbdd614e, build 4.5.1-134_DFP-74) but lsmod doesn't show mmcfix... when I try to load it manually, I get error:
insmod: can't insert '/system/lib/modules/mmcfix.ko': unknown symbol in module or invalid parameter

After a little investigation I found out that:
  1. mmcfix depends on symsearch, as the modules.dep file says in CM7.2 ROMs
  2. mmcfix is loaded after symsearch by /system//bootmenu/2nd-init/init.mapphone_umts.rc in CM

So it should be loaded like this on stock ROMs and MS2Ginger also, not via install-recovery.sh. I will try it this way if I have time. Krysha, that was a very valuable comment! Can you try loading symsearch.ko and then mmcfix.ko by hand?
Last edited by Goose-T; 23rd April 2012 at 03:08 PM.
23rd April 2012, 03:11 PM   |  #37  
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:

Quote:

Originally Posted by krysha<br />
I tried it on stock ROM (45.0.74.MB526.Retail.en.DE android 2.3.4 kernel 2.6.32.9-gbdd614e, build 4.5.1-134_DFP-74) but lsmod doesn't show mmcfix... when I try to load it manually, I get error:<br />
insmod: can't insert '/system/lib/modules/mmcfix.ko': unknown symbol in module or invalid parameter

<br />
<br />
After a little investigation I found out that:<ol style="list-style-type: decimal"><li>mmcfix depends on symsearch, as the modules.dep file says in CM7.2 ROMs</li>
<li>mmcfix is loaded after symsearch by /system//bootmenu/2nd-init/init.mapphone_umts.rc in CM</li>
</ol><br />
So it should be loaded like this on stock ROMs and MS2Ginger also, not via install_recovery.sh. I will try it this way if I have time.

Yes, that's the other workaround that i was investigating but symsearch is difficult to make it in a persistent way, I tried in init.rc with no positive result. The install-recovery script works for me and others as well. But keep researching for see what else can do the trick.

Enviado desde mi MB526 usando Tapatalk
23rd April 2012, 03:21 PM   |  #38  
Member
Thanks Meter: 40
 
59 posts
Join Date:Joined: Apr 2011
More
Quote:
Originally Posted by espaciosalter20

Yes, that's the other workaround that i was investigating but symsearch is difficult to make it in a persistent way, I tried in init.rc with no positive result. The install-recovery script works for me and others as well. But keep researching for see what else can do the trick.

Enviado desde mi MB526 usando Tapatalk

And what if we load symsearch before in 09mmcfix script like this? I haven't written any linux script like this before, so correct me, if I'm wrong.

#!/system/bin/sh
#
# load mmcfix module

# Module location
SYM="/system/lib/modules/symsearch.ko"
MODULE="/system/lib/modules/mmcfix.ko"

# Load the module
insmod $SYM
insmod $MODULE
23rd April 2012, 08:39 PM   |  #39  
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 Goose-T

And what if we load symsearch before in 09mmcfix script like this? I haven't written any linux script like this before, so correct me, if I'm wrong.

#!/system/bin/sh
#
# load mmcfix module

# Module location
SYM="/system/lib/modules/symsearch.ko"
MODULE="/system/lib/modules/mmcfix.ko"

# Load the module
insmod $SYM
insmod $MODULE

Ok, that could work it. Please, try it and tell us the result.

Enviado desde mi MB526 usando Tapatalk
24th April 2012, 01:27 AM   |  #40  
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 Goose-T

And what if we load symsearch before in 09mmcfix script like this? I haven't written any linux script like this before, so correct me, if I'm wrong.

#!/system/bin/sh
#
# load mmcfix module

# Module location
SYM="/system/lib/modules/symsearch.ko"
MODULE="/system/lib/modules/mmcfix.ko"

# Load the module
insmod $SYM
insmod $MODULE

Hey, i found something interesting that could help!! Did you tried to set "enable" in load all modules at cpu in bootmenu?? this will load symsearch at boot and do not need to load in script

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