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.
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
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)
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