Android 平台上SDCard的自动mount的解决方法

来源:互联网 发布:在线标准工资算法公式 编辑:程序博客网 时间:2024/05/01 11:54

确定SD的驱动已经正常编译和使用。

make menuconfig

把下面这项取消掉

General Setup -> Create deprecated sysfs layout for older userspace tools

 

修改/system/etc/vold.conf文件中的media_path条目,确定指向正确的sd卡设备:

我的板子是如下设置:

## vold configuration file for the 'generic' target

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    media_path     /devices/platform/mmci-omap-hs.0/mmc_host/mmc0

    media_type     mmc
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun0
}

原创粉丝点击