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!
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!
