From b592404f48fdbb9cbe9e8b026e7852249f558c4b Mon Sep 17 00:00:00 2001 From: Conghui Chen Date: Mon, 8 Jul 2019 20:03:55 +0800 Subject: [PATCH] script: set virtio-console BE to stdio for LaaG Set virtio-console BE to stdio for LaaG. Remove 'com1' but still keep 'console=ttyS0' in Laag kernel cmdline. 'console=ttyS0' means LaaG will use ttyS0 (0x3F8) as a console port, and during bringup, it will access port ttyS0. When the same port is added to hypervisor configuration file as a console port, the output will be captured by hypervisor console, and can switch by "vm_console ". Tracked-On: #3370 Signed-off-by: Conghui Chen Reviewed-by: Binbin Wu --- devicemodel/samples/nuc/launch_uos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemodel/samples/nuc/launch_uos.sh b/devicemodel/samples/nuc/launch_uos.sh index 5035aa7ec..066bbe39d 100755 --- a/devicemodel/samples/nuc/launch_uos.sh +++ b/devicemodel/samples/nuc/launch_uos.sh @@ -95,9 +95,9 @@ logger_setting="--logger_setting console,level=4;kmsg,level=3;disk,level=5" #for memsize setting mem_size=2048M -acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ +acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge \ -s 2,pci-gvt -G "$3" \ - -s 5,virtio-console,@pty:pty_port \ + -s 5,virtio-console,@stdio:stdio_port \ -s 6,virtio-hyper_dmabuf \ -s 3,virtio-blk,/home/clear/uos/uos.img \ -s 4,virtio-net,tap0 \