[maemo-developers] Finding the mmc cards
From: Marius Vollmer marius.vollmer at nokia.comDate: Wed Aug 29 13:27:46 EEST 2007
- Previous message: Finding the mmc cards
- Next message: Finding the mmc cards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"ext Tony Maro" <tonymaro at gmail.com> 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.
- Previous message: Finding the mmc cards
- Next message: Finding the mmc cards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]