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=7 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(3, ti8148ipnc);

 

相关文章:

  • 2021-10-22
  • 2022-12-23
  • 2021-05-25
  • 2021-04-09
  • 2021-10-16
  • 2021-08-16
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-07-12
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案