Default Console for U-boot - How do I change it?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Default Console for U-boot - How do I change it?

跳至解决方案
5,236 次查看
PaulDeMetrotion
Senior Contributor I

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.

0 项奖励
回复
1 解答
3,339 次查看
PaulDeMetrotion
Senior Contributor I

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"

在原帖中查看解决方案

1 回复
3,340 次查看
PaulDeMetrotion
Senior Contributor I

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"