Mounting sdcard partition of NAND

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mounting sdcard partition of NAND

Jump to solution
7,594 Views
Mats1z
Contributor III

Dear All,

I have booted a custom board based on mx53_ARD reference board with android(R10.4 BSP). It boots from the eMMC NAND. It also have sd card slot and usb.

The various devices are mounted as follows,

NAND         -mmc0

SD Card      -mmc1

Wifi module -mmc2

The issue is when SD Card is not connected , the sd card partition of NAND is detected. When SD card is connected the sdcard partition of sd card itself is displayed not that of NAND. I referred to vold.fstab but was not successful in solving the issue.

Please share your thoughts. I like to know more details  about how mounting is done.

Thank You

Mats

Labels (2)
1 Solution
1,551 Views
Mats1z
Contributor III

Dear All,

The issue is solved.

how to mount all storage partitons correctly in android?

***************************************************************

1.get into android shell using adb

$adb shell

$su

2.mount the system partition with read/write permission

$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

3.change the permission of etc

$chmod 777 /etc

4.pull the vold.fstab to the host machine

$adb pull /etc/vold.fstab

5.edit vold.fstab to do the mounting correctly

dev_mount sdcard /mnt/sdcard auto /devices/platform/mxsdhci.2/mmc_host/mmc0

dev_mount extsd /mnt/sdcard/extsd auto /devices/platform/mxsdhci.0/mmc_host/mmc1

dev_mount udisk /mnt/sdcard/udisk auto /devices/platform/fsl-ehci.1/usb

Now I can access the internal memory, external sdcard and usb storage from my device.

Thank You

Mats

View solution in original post

1 Reply
1,552 Views
Mats1z
Contributor III

Dear All,

The issue is solved.

how to mount all storage partitons correctly in android?

***************************************************************

1.get into android shell using adb

$adb shell

$su

2.mount the system partition with read/write permission

$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

3.change the permission of etc

$chmod 777 /etc

4.pull the vold.fstab to the host machine

$adb pull /etc/vold.fstab

5.edit vold.fstab to do the mounting correctly

dev_mount sdcard /mnt/sdcard auto /devices/platform/mxsdhci.2/mmc_host/mmc0

dev_mount extsd /mnt/sdcard/extsd auto /devices/platform/mxsdhci.0/mmc_host/mmc1

dev_mount udisk /mnt/sdcard/udisk auto /devices/platform/fsl-ehci.1/usb

Now I can access the internal memory, external sdcard and usb storage from my device.

Thank You

Mats