how to auto mount SD card in Android 1.6?

65 views
Skip to first unread message

liang ming-chuan

unread,
Dec 20, 2009, 9:54:36 PM12/20/09
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

unread,
Dec 20, 2009, 11:41:36 PM12/20/09
to android...@googlegroups.com
Add "media path" to vold.conf and try....


liang ming-chuan

unread,
Dec 21, 2009, 3:31:19 AM12/21/09
to android...@googlegroups.com
It's ok now after change from ums_path to media_path.
Thanks for your help.

teddy.teddypig

unread,
Dec 21, 2009, 4:26:30 AM12/21/09
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?
--
Reply all
Reply to author
Forward
0 new messages