imx6q boot from sd card failed

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

imx6q boot from sd card failed

741 Views
liu_jialu
Contributor III

u-boot, imx6q boot from sd card failed, i configured the DCD file, and modified the Card Detect Pin, but still can't get anything for UART1, console displayed nothing.

what else can i check, thanks.

Labels (3)
0 Kudos
3 Replies

562 Views
joanxie
NXP TechSupport
NXP TechSupport

could you tell me how did you modify the Card Detect Pin? and pls refer to the mx6q board schematic to check if your hardware is correct or not

0 Kudos

562 Views
liu_jialu
Contributor III

I used pin:SD3_RST for Card Detect,yocto u-boot source code modified like this:

diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 6ef5131..21ca89b 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -154,7 +154,8 @@ static iomux_v3_cfg_t const usdhc3_pads[] = {
        MX6_PAD_SD3_DAT5__SD3_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
        MX6_PAD_SD3_DAT6__SD3_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
        MX6_PAD_SD3_DAT7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL),
-       MX6_PAD_NANDF_D0__GPIO2_IO00    | MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */
+//     MX6_PAD_NANDF_D0__GPIO2_IO00    | MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */
+       MX6_PAD_SD3_RST__GPIO7_IO08 | MUX_PAD_CTRL(NO_PAD_CTRL), /* CD */
 };
 
 static iomux_v3_cfg_t const usdhc4_pads[] = {
@@ -347,7 +348,8 @@ int mmc_map_to_kernel_blk(int dev_no)
 }
 
 #define USDHC2_CD_GPIO IMX_GPIO_NR(2, 2)
-#define USDHC3_CD_GPIO IMX_GPIO_NR(2, 0)
+// #define USDHC3_CD_GPIO      IMX_GPIO_NR(2, 0)
+#define USDHC3_CD_GPIO IMX_GPIO_NR(7, 8)

0 Kudos

562 Views
liu_jialu
Contributor III

change

            MX6_PAD_SD3_RST__GPIO7_IO08 | MUX_PAD_CTRL(NO_PAD_CTRL),

to

            MX6_PAD_SD3_RST__GPIO7_IO08 | MUX_PAD_CTRL(USDHC_PAD_CTRL),

it works now.

thanks Joan, @ Joan Xie

0 Kudos