View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#2
Originally Posted by SASO1600 View Post
Is there a way to tell the device to bypass this function and enable the card slot anyway?
Yes. It can be done by changing omap mmc driver in linux kernel. The simplest solution is to comment lines 912,913 here
http://mxr.maemo.org/diablo/source/k...mmc/omap.c#908
Without those lines mmc driver keeps monitoring card change even if card door is not closed. This is not ideal but it allows you to access the card (and mount it manually to /media/mmc2)
I have done this and it works. The extra polling might (slightly?) affect battery life.

Alternative is to redefine mmc_omap_cover_is_open
http://mxr.maemo.org/diablo/source/k...mmc/omap.c#286
to return values you wish so cover open/close events are simulated. The easiest is probably to hook it to card door of second slot (by hardcoding slot value id) so both slots are checked when one door is opened/closed. I have not tried this.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following 2 Users Say Thank You to fanoush For This Useful Post: