how to auto mount SD card in Android 1.6?

閲覧: 64 回
最初の未読メッセージにスキップ

liang ming-chuan

未読、
2009/12/20 21:54:362009/12/20
To: android...@googlegroups.com

hi all,
I have problem in auto mount SD card in Android.
This is my vold.conf
volume_sdcard {
    media_type     mmc
    mount_point    /sdcard
    ums_path    /devices/platform/ftsdc010/mmc_host/mmc0
}

and the kernel config:
# CONFIG_SYSFS_DEPRECATED_V2 is not set

here is the debug message print by logcat:
I/vold    ( 1076): New MMC card 'SD04G' (serial 2983043361) added @ /devices/platform/ftsdc010/mmc_host/mmc0/mmc0:69db
I/vold    ( 1076): Detected FAT filesystem in partition table
I/vold    ( 1076): Disk (blkdev 179:0), 7741440 secs (3780 MB) 0 partitions
I/vold    ( 1076): New blkdev 179.0 on media SD04G, media path /devices/platform/ftsdc010/mmc_host/mmc0/mmc0:69db, Dpp 0

it seems that it has found the sd card, but app still shows "No SD Card",
the /sdcard didn't mounted automaticaly.

Is there any thing I miss?

I also found there exist a vold2, what's difference with these two version?
should I upgrade to vold2?

Thanks in advance for your help!

Robert
 

Anil Sasidharan

未読、
2009/12/20 23:41:362009/12/20
To: android...@googlegroups.com
Add "media path" to vold.conf and try....


liang ming-chuan

未読、
2009/12/21 3:31:192009/12/21
To: android...@googlegroups.com
It's ok now after change from ums_path to media_path.
Thanks for your help.

teddy.teddypig

未読、
2009/12/21 4:26:302009/12/21
To: android-porting
add udev in and write a script to detect and mount your sdcard and then, send a brocasting msg to android so that android will know that.
 
 
2009-12-21

teddy.teddypig

发件人: liang ming-chuan
发送时间: 2009-12-21  10:54:59
收件人: android-porting
抄送:
主题: [android-porting] how to auto mount SD card in Android 1.6?
--
全員に返信
投稿者に返信
転送
新着メール 0 件