[maemo-developers] [maemo-developers] Where to discuss 770 problems.. - memory card failure

From: Paul Mundt paul.mundt at nokia.com
Date: Mon Nov 14 17:11:59 EET 2005
On Mon, Nov 14, 2005 at 04:38:10PM +0200, Kimmo Hämäläinen wrote:
> On Mon, 2005-11-14 at 15:23, Frantisek Dufka wrote:
> > Hello, thanks for this explanation. So the switch only triggers 
> > mount/umount commands. That's great. This hopefully means I can mount 
> > normal sized MMC card. Too bad the slot is too thin to put SD card here 
> 
> Sorry I was little confused about this: the 770 cannot use normal size
> MMCs because the kernel does not recognize the MMC until the signal from
> the MMC cover comes (when it's closed). So, the kernel would need to be
> modified to poll for MMC even when the MMC cover is open before you can
> use full-size MMCs; but that would eat more battery as well...
> 
It's already possible to do this, sort of:

$ echo 1 > /sys/devices/platform/mmci-omap.2/enable_poll
$ mount /media/mmc1

This gets full size cards detected and mounted without having to worry
about the cover state.

Now the AF only detects a card insertion from a kobject uevent
notification which is bound to the gpio switch framework, so it won't
catch the update until the switch is physically toggled (hence we don't
get an automount with full size cards).

AF snoops on dbus for this stuff, so one could pretty easily write an app
to send a fake status change to trick the AF in to doing the right thing,
but it's definitely not supported out of the box. (A trivial change would
be to add a store op to the cover_state and trap opposing writes to force
a state change uevent without reading the GPIO value, but that would
require some careful handling).

More information about the maemo-developers mailing list