Hi @sg4036,
Below diffs should get console on UART1:
U-Boot:
First apply following patches to mainline u-boot:
http://patchwork.ozlabs.org/patch/1128654/
http://patchwork.ozlabs.org/patch/1128655/
Then apply below diff for UART1 console:
diff --git a/board/novtech/meerkat96/meerkat96.c b/board/novtech/meerkat96/meerkat96.c
index 5fb4d43997..9bd5447597 100644
--- a/board/novtech/meerkat96/meerkat96.c
+++ b/board/novtech/meerkat96/meerkat96.c
@@ -19,9 +19,9 @@ DECLARE_GLOBAL_DATA_PTR;
PAD_CTL_PUS_PU100KOHM | PAD_CTL_HYS)
static iomux_v3_cfg_t const meerkat96_pads[] = {
- /* UART6 as debug serial */
- MX7D_PAD_SD1_CD_B__UART6_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
- MX7D_PAD_SD1_WP__UART6_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
+ /* UART1 as debug serial */
+ MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
+ MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
/* WDOG1 for reset */
MX7D_PAD_GPIO1_IO00__WDOG1_WDOG_B | MUX_PAD_CTRL(NO_PAD_CTRL),
};
Linux kernel:
First apply following patches to mainline kernel:
https://lkml.org/lkml/2019/6/13/151
Then apply below diff for UART1 console:
diff --git a/arch/arm/boot/dts/imx7d-meerkat96.dts b/arch/arm/boot/dts/imx7d-meerkat96.dts
index 2b610a5148d7..b33c93df672a 100644
--- a/arch/arm/boot/dts/imx7d-meerkat96.dts
+++ b/arch/arm/boot/dts/imx7d-meerkat96.dts
@@ -12,7 +12,7 @@
compatible = "novtech,imx7d-meerkat96", "fsl,imx7d";
chosen {
- stdout-path = &uart6;
+ stdout-path = &uart1;
};
memory@80000000 {
Additionally, you might want to change the earlycon console to UART1 if you want to see full boot log.
Hope this helps!
Thanks,
Mani