Android7系統開機後串列埠log沒有輸出

2021-09-05 12:40:22 字數 2213 閱讀 5470

android7系統開機後串列埠log沒有輸出

//下面這個patch改了好像沒起到作用

diff --git a/include/linux/printk.h b/include/linux/printk.h

index d78125f..679fcf4 100644

--- a/include/linux/printk.h

+++ b/include/linux/printk.h

@@ -40,7 +40,7 @@ static inline const char *printk_skip_level(const char *buffer)

#define console_loglevel_silent  0 /* mum's the word */

#define console_loglevel_min     1 /* minimum loglevel we let people use */

#define console_loglevel_quiet     4 /* shhh ..., when booted with "quiet" */

-#define console_loglevel_default 7 /* anything more serious than kern_debug */

+#define console_loglevel_default 1 /* anything more serious than kern_debug */

#define console_loglevel_debug    10 /* issue debug messages */

#define console_loglevel_motormouth 15    /* you can't shut this one up */

開機過程中列印級別變化

//剛開機的時候

130|msm8953_64:/ #  cat /proc/sys/kernel/printk 

6       6       1       7

//系統開起來後,應該是有個進車關掉了這個

0       6       1       7 

//手動設定列印後,控制台可以一直輸出

echo "7 4 1 7" > /proc/sys/kernel/printk

getprop persist.console.silent.config

//解決:

setprop persist.console.silent.config 0

注意:這個值預設是1

//**分析

Android7種Dialog對話方塊

在android開發中,我們經常會需要在android介面上彈出一些對話方塊,比如詢問使用者或者讓使用者選擇。這些功能我們叫它android dialog對話方塊,在我們使用android的過程中,我歸納了一下,android dialog的型別無非也就7種,下面我分別向大家介紹這7種android...

android 7種對話方塊的使用

在android開發中,我們經常會需要在android介面上彈出一些對話方塊,比如詢問使用者或者讓使用者選擇。這些功能我們叫它android dialog對話方塊,在我們使用android的過程中,我歸納了一下,android dialog的型別無非也就7種,下面我分別向大家介紹這7種android...

android 系統開機流程

1.使用者按下電源鍵,引導晶元 從預定義的地方開始執行,載入引導程式bootloader到ram,然後開始執行 2.啟動引導程式bootloader,然後linux核心啟動 3.linux核心啟動後,設定快取,設定保護儲存器,計畫列表,載入驅動等操作。當核心完成系統設定之後,會查詢init檔案,然後...