recovery下日志输出到串口(高通865)

diff --git a/recovery_main.cpp b/recovery_main.cpp
index de8ac1f..2551548 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -328,7 +328,7 @@ int main(int argc, char** argv) {
 
   // redirect_stdio should be called only in non-sideload mode. Otherwise we may have two logger
   // instances with different timestamps.
-  redirect_stdio(Paths::Get().temporary_log_file().c_str());
+  redirect_stdio("/dev/console");
 
   load_volume_table();
   has_cache = volume_for_mount_point(CACHE_ROOT) != nullptr;

diff --git a/BoardConfig.mk b/BoardConfig.mk
index c6674c4..d2db170 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -167,7 +167,7 @@ endif
 TARGET_USES_ION := true
 TARGET_USES_NEW_ION_API :=true
 
-BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa90000 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 loop.max_part=7 cgroup.memory=nokmem,nosocket reboot=panic_warm
+BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa90000 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 loop.max_part=7 cgroup.memory=nokmem,nosocket reboot=panic_warm androidboot.selinux=permissive
 
 BOARD_KERNEL_BASE        := 0x00000000
 BOARD_KERNEL_PAGESIZE    := 4096

猜你喜欢

转载自blog.csdn.net/u014630142/article/details/119169458