From a05738e7cc942c3382d273e4876ebc9371ac2e90 Mon Sep 17 00:00:00 2001 From: LoGin Date: Wed, 1 Jan 2025 23:38:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3nographic=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6,=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=9C=AA=E8=83=BD=E8=BE=93=E5=87=BA=E5=88=B0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98=20(#1082)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: longjin --- tools/run-qemu.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/run-qemu.sh b/tools/run-qemu.sh index e470d5180..7b48644c0 100644 --- a/tools/run-qemu.sh +++ b/tools/run-qemu.sh @@ -78,7 +78,8 @@ QEMU_MONITOR="-monitor stdio" QEMU_TRACE="${qemu_trace_std}" QEMU_CPU_FEATURES="" QEMU_RTC_CLOCK="" -QEMU_SERIAL="-serial file:../serial_opt.txt" +QEMU_SERIAL_LOG_FILE="../serial_opt.txt" +QEMU_SERIAL="-serial file:${QEMU_SERIAL_LOG_FILE}" QEMU_DRIVE="id=disk,file=${QEMU_DISK_IMAGE},if=none" QEMU_ACCELARATE="" QEMU_ARGUMENT="" @@ -137,7 +138,7 @@ while true;do window) ;; nographic) - QEMU_SERIAL=" -serial mon:stdio " + QEMU_SERIAL=" -serial chardev:mux -monitor chardev:mux -chardev stdio,id=mux,mux=on,signal=off,logfile=${QEMU_SERIAL_LOG_FILE} " QEMU_MONITOR="" QEMU_ARGUMENT+=" --nographic " QEMU_ARGUMENT+=" -kernel ../bin/kernel/kernel.elf "