Where is the u-boot log?

Can’t get any u-boot log through uart0 & uart2. While modify the macro CONFIG_CONS_INDEX in .config file can’t either. Anyone know why? thanks!

Solved by initializing the uart pins. 1.Configure the pin mode to UART function; 2.Open the UART clock. I use uart2 as the debug port of u-boot and it works well.