The default debug console is ttymxc0.
Modify console port to ttymxc1 in bootargs_base variable of uboot environmental configure, as follow:
setenv bootargs_base 'setenv bootargs console=ttymxc1,115200 enable_wait_mode=off video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24'
The OS is hung after “cat /dev/ttymxc0”.
Could I switch the debug console port without modifying these code, as follow.
In uboot:
1. #define CONFIG_UART_BASE_ADDR UART1_BASE_ADDR
2. static void setup_uart(void)
{
/* UART1 TXD */
mxc_iomux_v3_setup_pad(MX6Q_PAD_CSI0_DAT10__UART1_TXD);
/* UART1 RXD */
mxc_iomux_v3_setup_pad(MX6Q_PAD_CSI0_DAT11__UART1_RXD);
}
In Kernel:
3. uart_clk = clk_get_sys("imx-uart.0", NULL);
4. early_console_setup(UART1_BASE_ADDR, uart_clk);