I am trying to change a Yocto build so that it uses ttymxc2 as the console instead of ttymxc0. I changed the environment variables so that the console is 'console=ttymxc2,115200n8'. When I boot the sd card, the u-boot messages are still output to ttymxc0 and then the kernel messages are output to ttymxc2. Where can I change the u-boot console so that its messages are also output to ttymxc2? Is this not changeable?
Thanks in advance.
已解决! 转到解答。
Solved: CONFIG_MXC_UART_BASE must also be changed to the same UART in the board include file.
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART3_BASE
#define CONFIG_CONSOLE_DEV "ttymxc2"
Solved: CONFIG_MXC_UART_BASE must also be changed to the same UART in the board include file.
#define CONFIG_MXC_UART
#define CONFIG_MXC_UART_BASE UART3_BASE
#define CONFIG_CONSOLE_DEV "ttymxc2"