|
发表于 2020-8-24 17:35:35
6550 浏览 0 回复
关闭 kernel uartlog
Android 9.0 kernel4.9 (6762)上关闭uart 输出log信息。
1.关闭logo输出
/kernel-4.9/arch/arm64/configs/k62v1_64_bsp_defconfig
@@ -454,7 +454,7 @@ CONFIG_CRYPTO_TWOFISH=y
CONFIG_ARM64_CRYPTO=y
CONFIG_CRYPTO_SHA2_ARM64_CE=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
-CONFIG_MTK_PRINTK_UART_CONSOLE=n
+#CONFIG_MTK_PRINTK_UART_CONSOLE is not set
+++ b/vendor/mediatek/proprietary/bootable/bootloader/lk/app/mt_boot/mt_boot.c
@@ -1162,7 +1162,7 @@ int boot_linux_fdt(void *kernel, unsigned *tags,
#else
(is_meta_log_disable() == 0)))
#endif
- cmdline_append("printk.disable_uart=0");
+ cmdline_append("printk.disable_uart=1");
else
cmdline_append("printk.disable_uart=1");
break;
@@ -1182,7 +1182,7 @@ int boot_linux_fdt(void *kernel, unsigned *tags,
#endif
cmdline_append("printk.disable_uart=1 slub_debug=-");
else
- cmdline_append("printk.disable_uart=0");
+ cmdline_append("printk.disable_uart=1");
break;
case BUILD_TYPE_ENG:
@@ -1190,7 +1190,7 @@ int boot_linux_fdt(void *kernel, unsigned *tags,
(is_meta_log_disable() == 1))
cmdline_append("printk.disable_uart=1 slub_debug=O");
else
- cmdline_append("printk.disable_uart=0 ddebug_query=\"file *mediatek* +p ; file *gpu* =_\"");
+ cmdline_append("printk.disable_uart=1 ddebug_query=\"file *mediatek* +p ; file *gpu* =_\"");
break;
default:
2.关闭控制台
diff --git a/system/core/rootdir/init.rc b/system/core/rootdir/init.rc
old mode 100644
new mode 100755
index 13c5a07..baa705c
--- a/system/core/rootdir/init.rc
+++ b/system/core/rootdir/init.rc
@@ -747,22 +747,23 @@ service ueventd /sbin/ueventd
seclabel u:r:ueventd:s0
shutdown critical
-service console /system/bin/sh
- class core
- console
- disabled
- user shell
- group shell log readproc
- seclabel u:r:shell:s0
- setenv HOSTNAME console
-
-on property:ro.debuggable=1
+# service console /system/bin/sh
+# class core
+# console
+# disabled
+# user shell
+# group shell log readproc
+# seclabel u:r:shell:s0
+# setenv HOSTNAME console
+
+#on property:ro.debuggable=1
+
# Give writes to anyone for the trace folder on debug builds.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
# Give reads to anyone for the window trace folder on debug builds.
chmod 0775 /data/misc/wmtrace
- start console
+# start console
|
|
|
|
|
|
|
登录或注册
|