how to switch uboot debug console from uart1 to uart3 for linux 5.10.9 (uboot 2020.04)

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

how to switch uboot debug console from uart1 to uart3 for linux 5.10.9 (uboot 2020.04)

500 Views
hailiu
Contributor IV

dear friends,

I am porting uboot code based on linux 5.10.9 for  imx6 solo processor, I plan to use uart3 as the uboot debug console port. I modified the device tree as:

chosen {

stdout-path=&uart3;

}

I also modified  mx6sabresd.c file as:

setup_iOmux_uart(void)

{

SETUP_IOMUX_PADS(uart3_pads);

}

and modified the uart3_pads definitions correspondingly.

Do I need to modify the CONS_INDEX =1 to CONS_INDEX=3?

any other modifications needed?

would you please direct me to the documentation if possible.

thank you,

Hai

 

0 Kudos
1 Reply

495 Views
igorpadykov
NXP Employee
NXP Employee

Hi

 

one can look at #define CONSOLE_DEV in

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/mx6sabresd.h?h=lf_v2021.04

 

Best regards
igor