高通平台bootloader里面串口log输出配置方法 .

来源:互联网 发布:2017苹果收费软件 编辑:程序博客网 时间:2024/05/16 19:08

1:在modem端将相应的gpio设置成相应功能。

2:在/lk/project/xxx.mk打开uart输出log功能。

3:在platform/msm_shared/uart.c中定义uart几输出log,

#if PLATFORM_MSM7X30
static unsigned uart_base = MSM_UART2_BASE;
#elif PLATFORM_MSM7X27A
static unsigned uart_base = MSM_UART1_BASE;
#else
static unsigned uart_base = MSM_UART3_BASE;
#endif

这样appsboot就可以打印log了

0 0