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.<platform>.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

         /*Append pre-loader boot time to kernel command line*/
@@ -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
     }
        /*Append pre-loader boot reason to kernel command line*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值