mt6765 android 9.0 关闭串口log(关闭内核log)

关闭串口log后,就开机的时候会打印一下,开机完成后就不会打印串口log了。

+++ b/kernel-4.9/arch/arm64/configs/k65v1_64_bsp_defconfig
@@ -449,7 +449,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/system/core/rootdir/init.rc
@@ -747,22 +747,22 @@ 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
+++ 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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值