P4040_CONSOLE_ttyS2

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

P4040_CONSOLE_ttyS2

1,943 次查看
731020999
Contributor I

Hi,support

Could you tell me how to setup console to ttyS2(UART2)? ttyS0(UART0) works fine.

We have tried to modify u-boot environment variable bootargs to "root=/dev/ram console=ttyS2,115200", but it dose not work.

The filesystem we used is extracted from QorIQ-SDK-V1.8 flash image, CPU is P4040.

We have checked ttyS2(UART2), rx and tx works fine.

We wonder if any configuration file of the filesystem need to be customized.

Any suggestions would be greatly appreciated!

Have a great day!

Xiao Jun

标签 (1)
标记 (4)
0 项奖励
回复
3 回复数

1,699 次查看
731020999
Contributor I

Any help?

Hello?

0 项奖励
回复

1,699 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please edit u-boot configuration file include/configs/corenet_ds.h, please find the section "Serial Port", and change the variable "CONFIG_CONS_INDEX" to "2" instead of "1", then rebuild u-boot.

In addition, in Kernel bootargs, please change bootargs as "root=/dev/ram rw console=ttyS1,115200" rather than "console=ttyS0".


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,699 次查看
731020999
Contributor I

I have already tested ttyS1 by changing bootargs as "console=ttyS1,115200", it works fine!

However, when I change bootargs as "console=ttyS2,115200", nothing happens.

We wonder if any configuration file of the filesystem need to be customized.

0 项奖励
回复