Change U-Boot output port on Colibri iMX6

I am trying to change debug serial console from default UART A to UART C in U-Boot V2.7. Here is a script that worked for U-Boot old version (V2.6 or V2.5).

diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c    
index 50d1d1f..db20faa 100644    
--- a/board/toradex/colibri_imx6/colibri_imx6.c    
+++ b/board/toradex/colibri_imx6/colibri_imx6.c    
@@ -86,11 +86,19 @@ int dram_init(void)    
 	return 0;    
 }    
     
+#if 0    
 /* Colibri UARTA */    
 iomux_v3_cfg_t const uart1_pads[] = {    
 	MX6_PAD_CSI0_DAT10__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),    
 	MX6_PAD_CSI0_DAT11__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),    
 };    
+#else    
+/* Colibri UARTC */    
+iomux_v3_cfg_t const uart3_pads[] = {    
+	MX6_PAD_SD4_CLK__UART3_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),    
+	MX6_PAD_SD4_CMD__UART3_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),    
+};    
+#endif    
     
 #define PC MUX_PAD_CTRL(I2C_PAD_CTRL)    
 /* Colibri I2C */    
@@ -272,7 +280,7 @@ static void setup_dtemode_uart(void)    
 static void setup_iomux_uart(void)    
 {    
 	setup_dtemode_uart();    
-	imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));    
+	imx_iomux_v3_setup_multiple_pads(uart3_pads, ARRAY_SIZE(uart3_pads));    
 }    
 
#ifdef CONFIG_USB_EHCI_MX6    
diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h    
index f69c30c..921b354 100644    
--- a/include/configs/colibri_imx6.h    
+++ b/include/configs/colibri_imx6.h    
@@ -38,7 +38,7 @@    
 #define CONFIG_MISC_INIT_R    
 #define CONFIG_MXC_UART    
-#define CONFIG_MXC_UART_BASE		UART1_BASE    
+#define CONFIG_MXC_UART_BASE		UART3_BASE    
  /* Make the HW version stuff available in u-boot env */    
 #define CONFIG_VERSION_VARIABLE		/* ver environment variable */    
@@ -153,7 +153,7 @@    
     
 /* allow to overwrite serial and ethaddr */    
 #define CONFIG_ENV_OVERWRITE    
-#define CONFIG_CONS_INDEX		1    
+#define CONFIG_CONS_INDEX		3    
 #define CONFIG_BAUDRATE			115200    
     
 /* Command definition */

I manually applied these changes in U-Boot V2.7 source code. In addition, I had to change defined value of “CONFIG_CONS_INDEX” from 1 to 3 in “u-boot-toradex/include/configs/mx6_common.h” file.
After the U-Boot is built and deployed, I don’t see any U-Boot console output at either UART A or UART C port. What am I missing or doing incorrectly?

Thank you
William

Hi

The UART driver has been changed to use the driver model.
I guess you missed to change the platform data mandated by this change.
Have a look here.

Max

Yes, I did miss that change. It worked after I made that change. Thank you.