"ext Tony Maro" <[EMAIL PROTECTED]> writes:

> Also, what determines MMC1 vs MMC2 as the card's path for
> internal/external?

The internal card is always mounted on /media/mmc2, and the external
card is always mounted on /media/mmc1.

You can also use the environment variables MMC_MOUNTPOINT and
INTERNAL_MMC_MOUNTPOINT, but then you have to make sure that they are
always set correctly in your environment.  (I don't think using
environment variables for this kind of system information is a good
idea.)

The device files are not constant like this: the internal card might
be /dev/mmcblk0 or /dev/mmcblk1, as far as I understand.  Someone with
better low-level knowledge please correct me.

> Is it possible these paths would change at some date?

It is possible, but I guess we stick with these locations for a long
time.

We could and should provide mechanisms so that applications don't need
to hardcode the locations, but I don't see a reason why we should
break applications that do hardcode them.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to