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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
5,343件の閲覧回数
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,446件の閲覧回数
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,447件の閲覧回数
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"