1.在lk中,进入目录:
vendor/mediatek/proprietary/bootable/bootloader/lk/app/mt_boot/mt_boot.c
在这个文件中,找到以下ifdef USER_BUILD位置(有两处),进行修改:
#ifdef USER_BUILD
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1");
#else
if (!strcmp(PLATFORM,"mt6757") || !strcmp(PLATFORM,"MT6757")) {
if (g_is_64bit_kernel == 1) {
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 earlycon=uartmtk,mmio32,0x11002000,921600n8 ddebug_query=\" file *mediatek* +p ; file *gpu* =_\"");
} else {
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 earlyprintk=mt6757,0x11002000 ddebug_query=\"file *mediatek* +p ; file *gpu* =_\"");
}
vendor/mediatek/proprietary/bootable/bootloader/lk/app/mt_boot/mt_boot.c
在这个文件中,找到以下ifdef USER_BUILD位置(有两处),进行修改:
#ifdef USER_BUILD
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=1");
#else
if (!strcmp(PLATFORM,"mt6757") || !strcmp(PLATFORM,"MT6757")) {
if (g_is_64bit_kernel == 1) {
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 earlycon=uartmtk,mmio32,0x11002000,921600n8 ddebug_query=\" file *mediatek* +p ; file *gpu* =_\"");
} else {
sprintf(cmdline,"%s%s",cmdline," printk.disable_uart=0 earlyprintk=mt6757,0x11002000 ddebug_query=\"file *mediatek* +p ; file *gpu* =_\"");
}