1、uboot修改
1)修改宏定义

/*include/config/ti8148_evm.h*/
#define CONFIG_SYS_NS16550_COM2 0x48024000
#define CONFIG_CONS_INDEX 3
2)使能UART2时钟
/* /board/ti/ti8148/evm.c per_clocks_enable*/
__raw_writel(0x2, CM_ALWON_UART_2_CLKCTRL);
while(__raw_readl(CM_ALWON_UART_2_CLKCTRL) != 0x2);
3)首先编译升级uboot.min.spi,然后升级uboot.bin。
 
2、内核修改调试串口
/* uboot启动参数修改:*/
bootargs=console=ttyS2,115200n8 mem=128M dbg= rw root=/dev/ram initrd=0x82000000,16M /arch/arm/plat-omap/include/plat/uncompress.h
// DEBUG_LL_TI81XX(1, ti8148ipnc); /* sunhj modify */
DEBUG_LL_TI81XX(, ti8148ipnc);
05-11 19:31