i.mx6 USDHC SD Card Register

Source: Internet
Author: User

/**************************************************************************** * I.MX6 uSDHC SD card reg Ister * Statement: * This article is mainly to record the SD card registration related processes and some problems encountered. * 2015-12-20 Shenzhen Nanshan Ping Shan village Zengjianfeng ******************************************************** *******************/                    \\\\\\\\\\\\\-*-Directory-*-/////////////|First, reference article:|two, pin configuration:|three, board-level file configuration:|Four, open SDHCI drive:|v. Resolve Exexplorer Unable to delete file-------------------------------------First, reference article: Android4.4.2SD card Rights fix 1.2 Chinese http://www.sonyue.com/bbs/forum.php?mod=viewthread&tid=93351two, pin configuration: Cat Arch/arm/mach-mx6/board-mx6dl_sabresd.h ...Staticiomux_v3_cfg_t mx6dl_sabresd_pads[] = {            ......            /*USDHC3*/Mx6dl_pad_sd3_clk__usdhc3_clk_50mhz, Mx6dl_pad_sd3_cmd__usdhc3_cmd_50mhz, mx6dl_p Ad_sd3_dat0__usdhc3_dat0_50mhz, Mx6dl_pad_sd3_dat1__usdhc3_dat1_50mhz, Mx6dl_pad_sd3_dat2__usdhc3_da T2_50mhz, Mx6dl_pad_sd3_dat3__usdhc3_dat3_50mhz,/*SD3_CD*/Mx6dl_pad_key_col2__gpio_4_10,/*sd3_wp not used*/mx6dl_pad_sd3_rst__gpio_7_8, ...} ..... Three, board-level file configuration: Cat Arch/arm/mach-mx6/board-mx6q_sabresd.c ...#defineSABRESD_SD3_CD IMX_GPIO_NR (4, 10)        ......        Static Const structEsdhc_platform_data Mx6q_sabresd_sd3_data __initconst ={. Cd_gpio=Sabresd_sd3_cd,//no answer, so no, another reason is that we are using a TF card, no write protection issues//. Wp_gpio = sabresd_sd3_wp,. Keep_power_at_suspend =1,. Support_8bit=1,. Delay_line=0,. Cd_type=Esdhc_cd_controller,. runtime_pm=1,        }; ......        /** * Board specific initialization. */        Static void__init Mx6_sabresd_board_init (void)        {            ......            //currently our SD card is mounted on this topIMX6Q_ADD_SDHCI_USDHC_IMX (2, &mx6q_sabresd_sd3_data);        ......        } ..... Iv. turn on the SDHCI drive: Open the following red frame drive: ──────────────────────────────────────────────────────────────────────────────┌────── ───────────────────mmc/sd/SDIO card support─────────────────────────┐│arrow keys navigate the menu. <Enter> selects submenus--->.  ││highlighted Letters is hotkeys. Pressing<Y> includes, <N>excludes,││<M> modularizes features. Press <Esc><Esc> to exit, <?> forHelp, </>││ forSearch. Legend: [*] built-inch[] excluded <M> module < >module││┌────^(-) ────────────────────────────────────────────────────────────────┐│││[*] Deferr MMC layer resume until I/O isrequested││││< > SDIO Uart/gpsclasssupport││││<*>MMC host Test driver││││Mmc/sd/sdio Host Controller Drivers * * *││││< >ARM AMBA Multimedia Card Interface support││││<*>Secure Digital Host Controller Interface support││││< >SDHCI Support on PCI bus││││<*>SDHCI support on the platform specific bus││││[*] SDHCI Platform Support forThe Freescale esdhc i. mx controll││││< > TI Flash Media mmc/SD Interface Support (experimental) ││││< > ENE CB710 mmc/SD Interface support││││< > VIA sd/MMC Card Reader driver│││└────v (+) ────────────────────────────────────────────────────────────────┘│ ├────────────────────────────────────────────────────────────────────────────┤│<Select> < Exit > < Help >│└────────────────────────────────────────────────────────────────────────────┘ Five, solve the Exexp Lorer Unable to delete file1. From Android4.4. 2, the Google system disabled the external memory card third-party program write permission, so the large-capacity SD card is useless. 2Search the network, we can find a solution, but too complex, and easy to mistake. 3Add Write access to an external card4. Re Manager, open the/system/etc/permissions directory with a text editor."platform.xml "file (Mount read/write),<permission name="Android.permission.WRITE_EXTERNAL_STORAGE"> < Group gid="SDCARD_RW"/>Add a line below<group gid="MEDIA_RW"/>(Note the alignment of the first paragraph,"MEDIA_RW"and/>) Save and exit, restart the system.

i.mx6 USDHC SD Card Register

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.