Post

Mount SD card on android

參考資料: Android: Fix to allow vold to detect the SD card

更改kernel的.config

-CONFIG_SYSFS_DEPRECATED=y

-CONFIG_SYSFS_DEPRECATED_V2=y

+# CONFIG_SYSFS_DEPRECATED_V2 is not set

新增 /system/etc/vold.conf on android

volume_sdcard {

emu_media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc0/mmc0:b368

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

}

media_path可從dmesg裡面查到

這個解法還是有問題, 有時必須重開好幾次, mp3 player才找得到sdcard 雖然每次開機系統會將partition mount在/sdcard 但是logcat的vold error message還是會狂噴 暫時不清楚問題出在哪

Android 1.6就沒有這個問題了 可能是硬體問題,earth ok,air not

剛隨便亂塞兩個patch給mmc-twl4030, 但是看起來也是沒用 http://patchwork.kernel.org/patch/31733/ http://patchwork.kernel.org/patch/31970/

This post is licensed under CC BY 4.0 by the author.

© homedad. Some rights reserved.

Using the Chirpy theme for Jekyll.