android sd card porting

來源:互聯網
上載者:User

 

I (android kernel)
1.make sure this kernel configuration in MMC driver
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
CONFIG_MMC_UNSAFE_RESUME=y
# CONFIG_MMC_EMBEDDED_SDIO is not set
CONFIG_MMC_PARANOID_SD_INIT=y

#
# MMC/SD Card Drivers
#
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_MMC_BLOCK_PARANOID_RESUME is not set
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set

#
# MMC/SD Host Controller Drivers
#
CONFIG_MMC_SDHCI=y
2.Disable this option
General setup  --->   
[ ] enable deprecated sysfs features to support old userspace tools  
if choice it will open can't mount SD card error
3.filesystem support
 File systems  --->
 DOS/FAT/NT Filesystems  --->
 <*> VFAT (Windows-95) fs support      
-*- Native language support  ---> 
 <*>  Codepage 437 (United States, Canada)
 <*>   Simplified Chinese charset (CP936, GB2312)    
 <*>   NLS ISO 8859-1  (Latin 1; Western European Languages)   
II (android system)
reference http://hi.baidu.com/jugege/blog/item/f58b2fdc13d770b5cc1166c7.html
1.start vold service
in init.rc start the vold service
service vold /system/bin/vold
        socket vold stream 0660 root mount
        ioprio be 2
2.configuration vold.fstab
/system/etc/vold.fstab
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0

 

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.