Mem mounting vold.fstab for dev. modding.

Android system development related discussion

Mem mounting vold.fstab for dev. modding.

Postby MadRocker » Sat Feb 05, 2011 12:14 am

I found this vold.fstab that we can modify to be able to mount all partitions / mem devices but will need to be updated to work with JetDroid.

Maybe someone that is good with this can modify it.

Code: Select all
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label        - Label for the volume
## mount_point  - Where the volume will be mounted
## part         - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

## Example of a dual card setup
# dev_mount left_sdcard  /sdcard1  auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2  auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1

## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

# sdcard mount for the P1
# internal sdcard
{
   mount_deep = 0
   ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
   asec = disable
   mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0

# externel sdcard
{
   mount_deep = 1
   ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun1/file
   asec = enable
   mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#keep this line.


Ours currently is something like this in vold.fstab and init.rc .
Code: Select all
volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    media_path     /devices/platform/s3c-sdhci.0/mmc_host/mmc0

    media_type     mmc
    mount_point    /sdcard
    ums_path       /devices/platform/s3c6410-usbgadget/gadget/lun0
}
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0 /devices/platform/s3c6410-usbgadget/gadget/lun0
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Advertisement

Re: Mem mounting vold.fstab for dev. modding.

Postby Dopi » Mon Feb 07, 2011 9:43 pm

Hi Madrocker,

I think that is very useful. Where did you find it?

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: Mem mounting vold.fstab for dev. modding.

Postby MadRocker » Mon Feb 07, 2011 10:49 pm

I think it was one of the 12+ other android versions in my backup drive. I have a few modded CM + eclair + froyo android version for several phones I use as reference, possibly Darkys_v8.0_Gingerbread_Edition_no_Wipe.zip
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: Mem mounting vold.fstab for dev. modding.

Postby Dopi » Wed Feb 09, 2011 3:40 pm

MadRocker wrote:I think it was one of the 12+ other android versions in my backup drive. I have a few modded CM + eclair + froyo android version for several phones I use as reference, possibly Darkys_v8.0_Gingerbread_Edition_no_Wipe.zip

... sounds to me like you could make good use of a version management system :D

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: Mem mounting vold.fstab for dev. modding.

Postby MadRocker » Tue Feb 22, 2011 8:33 pm

Updated extra info for vold.fstab .
This seems to work if you have a swap space. The auto can be set to actual partition number in init.rc to help speed up booting and avoid search then find then mount time delay.
Might even be able to remove partition mount options from init.rc and so clean up the init.rc.

Needs more testing

Mine 4gb partition layout is
1st vfat "fat32" 2.2gb
2nd root 1.5gb
3rd partition 256mb swap

Code: Select all
####Mount sdcard on JetDroid####
#dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0 /devices/platform/s3c6410-usbgadget/gadget/lun0
/dev/block/mmcblk0p1    /mnt/sdcard             vfat    defaults,noatime        0 0
/dev/block/mmcblk0p2    /                       ext2    defaults,noatime        1 1
/dev/block/mmcblk0p3   swap                    swap    defaults           0 0
tmpfs                   /dev/shm                tmpfs   defaults           0 0
devpts                  /dev/pts                devpts  gid=5,mode=620     0 0
sysfs                   /sys                    sysfs   defaults           0 0
proc                    /proc                   proc    defaults           0 0
###############################
# Other androids example #
#/dev/block/mtdblock3 /system yaffs2 rw
#/dev/block/mtdblock4 /cache yaffs2 rw
#/dev/block/mtdblock5 /data yaffs2 rw
#/dev/block/mmcblk0p1 /sdcard vfat rw
#/dev/block/mmcblk0p2 /system/sd auto rw
#/system/modules/modules.sqf /system/modules squashfs ro,loop
#/system/xbin/xbin.sqf /system/xbin squashfs ro,loop
#
###############################
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am


Return to JetPlatform

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron