Android and Android SD card mounting

Source: Internet
Author: User

Platform: s5pc110

System: android2.3

Kernel: linux2.6.35

1, android2.3.4 _ kernel_2.6.35_t34h \ arch \ Arm \ mach-s5pv210 \ kconfig

Select initi_dev_hsmmc

Select s3_dev_hsmmc1 if! S5pv210_sd_ch0_8bit

Select initi_dev_hsmmc2 if! S5pv210_sd_ch1_8bit

Select initi_dev_hsmmc3 if! S5pv210_sd_ch2_8bit

After adding the preceding information to the kernel, you can see the following:

There is a scanned card.

[2, 73.852104] MMC e_removed

[2, 74.058867] mmc_rescan mmc2, search for sdio

[2, 74.063104] mmc_rescan mmc2, search for SD

[74.157214] mmc2: New High Speed SD card at address dda5

[74.171162] mmcblk1: mmc2: dda5 sd02g 1.83 Gib

[2, 74.180370] mmcblk1: p1

[2, 75.149051] MMC e_inserted

[2, 75.350940] mmc2: Card dda5 removed

[2, 75.607378] MMC e_removed

2,ModifySystem startup information

(1) Init. RC

Android2.3.4 _ gb_t34h \ device \ Samsung \ smdkc110 \ Inti. RC:

..................

# Export external_storage/mnt/sdcard

Export external_storage/sdcard

Export external_sdcard_storage/sdcard/SD

..................

# Create mountpoints

Mkdir/ MNT 0775 Root System

Mkdir/mnt/sdcard 0000 System

Mkdir/sdcard 0000 System

(2), vold. fstab

Android2.3.4 _ gb_t34h \ device \ Samsung \ smdkc110 \ vold. fstab:

# 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

######################

# Dev_mount sdcard/mnt/sdcard Auto/devices/platforms/s3c-sdhci.0/mmc_host/mmc0

Dev_mount sdcard/sdcard 1/devices/platform/s3c-sdhci.0/mmc_host/mmc0

Dev_mount sdcard2/sdcard/SD Auto/devices/platform/s3c-sdhci.2/mmc_host/mmc2

3. After completing the kernel and system configurations, you can mount the SD card, as shown in.

/Sdcard/SD is the SD card to be mounted.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.