Console UART port changing in imx linux branch

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

Console UART port changing in imx linux branch

跳至解决方案
3,104 次查看
vivekrajpara
Contributor III

Hi All,

I am working with imx7s and free scale linux git repository.

I need to change console UART port of the Cortex A7 core so that I can access U-Boot prompt and Kernel Logs on different UART.

Currently logs are transferred to UART 1 port I need to transfer them to UART 4 port.

Can anyone suggest required changes for this?

Thanks,

Vivek

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,298 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vivek

one can look at Sabre AI example where uart4 is used, so in

uboot/include/configs/mx6qsabreauto.h :

#define CONFIG_MXC_UART_BASE    UART4_BASE
#define CONFIG_CONSOLE_DEV        "ttymxc3"

with kernel boot parameter console=ttymxc3,115200

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

在原帖中查看解决方案

3 回复数
2,299 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vivek

one can look at Sabre AI example where uart4 is used, so in

uboot/include/configs/mx6qsabreauto.h :

#define CONFIG_MXC_UART_BASE    UART4_BASE
#define CONFIG_CONSOLE_DEV        "ttymxc3"

with kernel boot parameter console=ttymxc3,115200

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

2,298 次查看
rootb3r
Contributor II

I'm facing the same issue on imx28evk custom board for Wink Hub 1 but the uboot/include/configs/mx28evk.h file doesn't seem to have the CONFIG_MXC_UART_BASE & CONFIG_CONSOLE_DEV config.

Waiting for reply.

0 项奖励
回复
2,298 次查看
vivekrajpara
Contributor III

Thank you Igor,

These settings worked. I just need to do extra iomux settings in U-Boot code in addition to steps mentioned by you

Best Regards,

Vivek

0 项奖励
回复