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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
5,243 Views
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 Kudos
Reply
1 Solution
3,346 Views
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"

View solution in original post

1 Reply
3,347 Views
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"