Skip to content

Commit a06a175

Browse files
committed
tools:fix star gui tools
Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
1 parent 883a6b1 commit a06a175

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

quard_star_tools/boardview/boardwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,18 @@ void BoardWindow::powerSwitch(bool power)
8080
"-drive", "if=sd,format=raw,file="+sdImgPath+",id=sd0",
8181
"-drive", "if=none,format=raw,file="+rootfsImgPath+",id=disk0",
8282
"-chardev", "socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=usb1",
83+
#if defined(Q_OS_LINUX)
8384
"-fsdev", "local,security_model=mapped-xattr,path="+envPath+",id=fsdev0",
85+
#endif
8486
"-netdev", "user,net=192.168.31.0/24,host=192.168.31.2,hostname=qemu,dns=192.168.31.56,tftp="+envPath+",bootfile=/linux_kernel/Image,dhcpstart=192.168.31.100,hostfwd=tcp::3522-:22,hostfwd=tcp::3580-:80,id=net0",
8587
"-global", "virtio-mmio.force-legacy=false",
8688
"-device", "virtio-blk-device,drive=disk0,id=hd0",
8789
"-device", "virtio-gpu-device,xres=1280,yres=720,id=video0",
8890
"-device", "virtio-mouse-device,id=input0",
8991
"-device", "virtio-keyboard-device,id=input1",
92+
#if defined(Q_OS_LINUX)
9093
"-device", "virtio-9p-device,fsdev=fsdev0,mount_tag=hostshare,id=fs0",
94+
#endif
9195
"-device", "virtio-net-device,netdev=net0",
9296
"-device", "usb-storage,drive=usb0",
9397
"-device", "usb-serial,always-plugged=true,chardev=usb1",

0 commit comments

Comments
 (0)