SD Card Interface on i.MX 6

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

SD Card Interface on i.MX 6

1,244 Views
shreejith_nekka
Contributor I

Hello,

Currently am working on i.MX6DP based custom board where am trying to interface SD Card as mmc0 device on Android 8.0. My dtsi file configurations for USDHC1 are as below,

pinctrl_usdhc1: usdhc1grp {
               fsl,pins = <
                        MX6QDL_PAD_SD1_CMD__SD1_CMD              0x17059
                        MX6QDL_PAD_SD1_CLK__SD1_CLK                0x10059
                        MX6QDL_PAD_SD1_DAT0__SD1_DATA0          0x17059
                        MX6QDL_PAD_SD1_DAT1__SD1_DATA1          0x17059
                        MX6QDL_PAD_SD1_DAT2__SD1_DATA2          0x17059
                        MX6QDL_PAD_SD1_DAT3__SD1_DATA3          0x17059
                        MX6QDL_PAD_GPIO_1__SD1_CD_B                 0x1f059    /*CD*/
            >;

};

&usdhc1 {
               pinctrl-names = "default";
               pinctrl-0 = <&pinctrl_usdhc1>;
               bus-width = <4>;
               cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; /*GPIO_1*/
               no-1-8-v;
               keep-power-in-suspend;
               enable-sdio-wakeup;
               status = "okay";
};

While kernel is booting up am able to see the below log,

      sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
      mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA

      mmc0: host does not support reading read-only switch, assuming write-enable
      mmc0: new high speed SDHC card at address 59b4
      mmcblk0: mmc0:59b4 USD 14.9 GiB
      mmcblk0: p1

But once the system comes up am unable to detect the SD Card in File Manager.

Please help me to solve the issue.

Regards,

Shreejith

Labels (3)
0 Kudos
3 Replies

1,017 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shreejith

if there were multiple code modifications, probably they were not fully

applied to image, so it makes sense to rebuild whole image from scratch.

Also as Android 8.0. is based on linux L4.9.11, one can test functionality with L4.9.11

linux.

i.MX Software|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,017 Views
2381209525
Contributor I

您好

是这样的我准备烧写 android 7.1.2到 i.mx6Q上 使用官网提供的烧写工具烧写 打开mfgtool2-android-mx6qp-sabresd-emmc.vbs 报error code : 24 ,把可以识别i.mx6Q的mfgtools 2.6.2 中的  libMfgToolLib.so  mfgtoolcli MfgToolLib.dll 放到mfgtools 2.7 文件夹中  依然识别不到,请问 如何解决  ?

log:

      DLL version: 2.6.2
      Thursday, June 27, 2019 17:31:20   Start new logging
      ModuleID[2] LevelID[1]: Error: Invalid device name: MX6SLL
      ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 24

      

Thanks !

0 Kudos

1,017 Views
shreejith_nekka
Contributor I

Hello igorpadykov,

Thank You for the reply. But for me error was with the Android fstab files. 

There I didn't change the usdhc bus address. Now I'm able to detect the SD Card.

Regards,

Shreejith

0 Kudos