On 8/11/07, Frantisek Dufka <[EMAIL PROTECTED]> wrote:
>
> David Hazel wrote:
> > On Fri, 2007-08-10 at 22:52 +0300, Igor Stoppa wrote:
> >> I don't know about MMC/SD (isn't that something that is not public
> >> available?)
> >
> > I would hope that the serial number of an SD card can be read on the
> > Nokia. It can certainly be read from an SD card that is installed on a
> > Windows Mobile device.
>
> cat /sys/devices/platform/mmci-omap.1/*/cid
>
> * is there because the path contains card model name which is variable.
> In my case for Transcend 150x 4GB SD the name is 'b368' and card is in
> internal slot


I have other things in that directory, so it appears a better path is...

for the "internal":
cat /sys/devices/platform/mmci-omap.1/mmc0*/cid

for the "external"
cat /sys/devices/platform/mmci-omap.1/mmc1*/cid

I also found that:
cat /sys/class/mmc_host/mmc0/slot_name
will tell you the "name" of the card (internal or external)

Good info, by the way.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to