栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

mt8735 Android5.1 关闭串口log

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

mt8735 Android5.1 关闭串口log

+++ b/kernel-3.10/arch/arm64/configs/newmobi6735_65u_v_l1_defconfig
@@ -1095,7 +1095,7 @@ CONFIG_MTK_RAM_CONSOLE_DRAM_ADDR=0x43F00000
 # CONFIG_MT_CHRDEV_REG is not set
 # CONFIG_MT_LOCK_DEBUG is not set
 CONFIG_PRINTK_PROCESS_INFO=y
-CONFIG_MT_PRINTK_UART_CONSOLE=y
+#CONFIG_MT_PRINTK_UART_CONSOLE=y
 # CONFIG_MT_ENG_BUILD is not set
 CONFIG_RAMDISK_OFFSET=0xF00000
 # CONFIG_EARLY_LINUX_PORTING is not set

+++ b/system/core/rootdir/init.rc
@@ -499,15 +499,15 @@ service healthd /sbin/healthd
     critical
     seclabel u:r:healthd:s0

-service console /system/bin/sh
-    class core
-    console
-    disabled
-    user shell
-    seclabel u:r:shell:s0
-
-on property:ro.debuggable=1
-    start console
+#service console /system/bin/sh
+#    class core
+#    console
+#    disabled
+#    user shell
+#    seclabel u:r:shell:s0
+
+#on property:ro.debuggable=1
+#    start console

 # adbd is controlled via property triggers in init..usb.rc

+++ b/bootable/bootloader/lk/app/mt_boot/mt_boot.c
@@ -579,9 +579,9 @@ int boot_linux_fdt(void *kernel, unsigned *tags,

     if (!has_set_p2u) {
 #ifdef USER_BUILD
-        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0");
+        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1");
 #else
-        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 ddebug_query="file *mediatek* +p ; file *gpu* =_"");
+        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1 ddebug_query="file *mediatek* +p ; file *gpu* =_"");
 #endif

         
@@ -788,7 +788,7 @@ void boot_linux(void *kernel, unsigned *tags,
 #ifdef USER_BUILD
         sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1");
 #else
-        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 ddebug_query="file *mediatek* +p ; file *gpu* =_"");
+        sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1 ddebug_query="file *mediatek* +p ; file *gpu* =_"");
 #endif
     }
        

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/329063.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号