I also saw this problem.  I'm not using the ADP1, so my hardware is
different.  Anyway, modifying uevent.c in system/core/vold/vold.c to
use PHYSDEVICEPATH seems to work.  Here is the patch, it is obviously
a hack, but it does seem to work.

--- a/vold/uevent.c
+++ b/vold/uevent.c
@@ -309,6 +309,7 @@ static int handle_block_event(struct uevent
*event)

     truncate_sysfs_path(event->path, n, mediapath, sizeof
(mediapath));

+    strncpy(mediapath, get_uevent_param(event, "PHYSDEVPATH"), 255);
     if (!(media = media_lookup_by_path(mediapath, false))) {
 #if DEBUG_UEVENT
         LOG_VOL("No backend media found @ device path '%s'",
mediapath);

This is the vold.conf I'm using:
## vold configuration file for the emulator/SDK

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the
device
    media_path     /class/mmc_host/mmc0/
    media_type     mmc
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun0
}

-Howard



On May 4, 12:04 pm, twebb <taliaferr...@gmail.com> wrote:
> I know where to getvold.conf now.  My problem is thatvoldis not
> recognizing my sd card (with what I think is a validvold.conf file.
> Mountd worked fine (in r1.0), butvold(in r1.5) has various issues
> recognizing device paths, etc.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to