This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8148的控制台串口如何从uart0改成uart2?

ipnc-rdk的控制台串口默认为uart0,现在想改成uart2,分析应该需要在uboot中做相应修改。

尝试了一下,在uboot的ipnc\Source\ti_tools\ipnc_psp_arago\u-boot\include\configs的ti8148_ipnc.h和ti8148_ipnc_quick_mmc.h中增加CONFIG_SYS_NS16550_COM3的定义

#define CONFIG_SYS_NS16550_COM1        0x48020000    /* Base EVM has UART0 */

#define CONFIG_SYS_NS16550_COM2        0x48022000

#define CONFIG_SYS_NS16550_COM3        0x48024000  /*增加uart2的地址定义*/

并对串口选择做出如下修改

/*
 * select serial console configuration
 */
/*#define CONFIG_SERIAL1            1
#define CONFIG_CONS_INDEX        1*/

#define CONFIG_SERIAL1            3        /*改成uart2*/
#define CONFIG_CONS_INDEX        3   /*改成uart2*/
#define CONFIG_SYS_CONSOLE_INFO_QUIET

但是,修改完以后,连上终端,uart2还是没有打印信息输出。

请问专家,是不是还有别的什么地方需要修改?谢谢!