B2G
B2G copied to clipboard
/sdcard doesn't seem to be auto-mounted in b2g-gonk
cjones@scar:~/mozilla/firmware$ adb shell ls /sdcard cjones@scar:~/mozilla/firmware$ adb shell mount rootfs on / type rootfs (ro,relatime) tmpfs on /dev type tmpfs (rw,relatime,mode=111) devpts on /dev/pts type devpts (rw,relatime,mode=600) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) none on /acct type cgroup (rw,relatime,cpuacct) tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /mnt/usb type tmpfs (rw,relatime,mode=755,gid=1000) tmpfs on /app-cache type tmpfs (rw,relatime,size=7168k) none on /dev/cpuctl type cgroup (rw,relatime,cpu) /dev/block/mmcblk0p9 on /system type ext4 (ro,relatime,barrier=1,data=ordered) /dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered) /dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered) nil on /sys/kernel/debug type debugfs (rw,relatime) /dev/block/mmcblk0p10 on /data type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc,discard)
Not sure what's wrong. We obviously want to mount the sdcard partition.
-
internal sdcard mount failure: There are 12 partitions in mmcblk0, but vold defines MAX_PARTITIONS to 4 and mPendingPartMap types as uchar. With modifications to the two definitions, command
vdc volume mount /mnt/sdcard
can mount it successfully. -
external sdcard mount failure: Destination folder /mnt/emmc does not exist. Do:
mkdir /mnt/emmc
chown system.system /mnt/emmc
chmod 000 /mnt/emmc
Then command vdc volume mount /mnt/emmc
can mount it successfully.
- There seems no one instructs vold to mount the two volumes. In original Android, these are done in java MountService.
Required changes: https://github.com/michaelwu/clockworkmod_galaxys2_initramfs/pull/2 https://github.com/vicamo/android_platform_system_vold/commit/054fb3155ea18c95629600da8e5540bb97ee825f (need to fork system/vold)
@vicamo just getting the internal sdcard mounted is good enough for now. Let's worry about hot-swapping external storage later.
@vicamo I just gave you push access to the https://github.com/mozilla-b2g . You can fork system/vold under that account and apply your patch there.
@cgjones I've create another pull request #161 for this project. To be summarized,
@michaelwu boot/clockworkmod_galaxys2_initramfs haven't got updated in B2G submodule since #f857321. Should I submit another pull request?
I'll update it.
thank you :)
I have a pull request to fix sync error if it was meant to be current HEAD of cwm.