This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I create a single DATA partition?

I create a DM37 img and upload it to NAND. it works well,

but it can not recognize my sd card. there is a error saying damaged sd card.

I found this note from readme

NOTE: The MMC/SD Card is still used to have DATA partition for Images and Media files.

 

Then I run the script "mkmmc-android.sh" to create a SD card with 3 partitions “boot, rootfs, data”

after that, Android can recognize the data partition without any errors.

but the problem is my SD card is 4GB, the data partition is only 2GB and I dont need boot & rootfs partitions.

So how can I create a single DATA partition?

 

 

  • As you noticed, TI Android devkit uses the third partition of sdcard as data partition.

    For your particular use-case, you will need to modify /system/etc/vold.fstab to be able to use sdcard with only data partition.

    1. Change the contents of /system/etc/vold.fstab to

    dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0

    2. Reformat the sdcard using fdisk or gparted to be one single FAT32 partition.

    You may also need to update init.rc to reflect the fact that sdcard has only one partition.

    After these changes you should be able to use the sdcard as data partition without allocating space for kernel/filesystem.