关闭串口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;