微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > How to catch early kernel log in mobilelog

How to catch early kernel log in mobilelog

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
kernel log mobilelog
[SOLUTION]
Because of the printkbuffer size restrict, some early printk log is flushed away, so we usually can't
see early printk log in mobilelog(kernel_log.boot).
We can modify the code toincrease the buffer size to catch those early log:
alps/kernel/kernel/printk.c
#define __LOG_BUF_LEN(1 << CONFIG_LOG_BUF_SHIFT)
====> Let buffer size x 32
#define __LOG_BUF_LEN(1 << CONFIG_LOG_BUF_SHIFT << 5)
Caution: Only apply this code change in debug time!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top