Android(安卓)平台上SDCard的自动mount的解决方法
16lz
2021-01-26
确定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
}
更多相关文章
- Android(安卓)4.4源码编译环境升级gcc版本的方法
- 编译android sdk时的出错out/host/linux-x86/obj/STATIC_...
- 编译android源码的过程
- Android系统的编译命令
- android 传递自定义参数
- Android使用ethtool工具查询/设置以太网网卡状态
- Android(安卓)NDK 1.6
- 在mac上交叉编译mono的脚本,mac x64,iphone armv7,iphone armv7s,an
- 编译自己的Windows Android(安卓)SDK(how to build Android(安卓