diff --git a/01_build_src.sh b/01_build_src.sh index fbcd64b..fc5b532 100755 --- a/01_build_src.sh +++ b/01_build_src.sh @@ -209,6 +209,7 @@ if [ ! -d "linux_install" ]; then sed -i "s/# CONFIG_DRM_MGAG200 is not set/CONFIG_DRM_MGAG200=y/" .config sed -i "s/# CONFIG_DRM_QXL is not set/CONFIG_DRM_QXL=y/" .config sed -i "s/# CONFIG_DRM_BOCHS is not set/CONFIG_DRM_BOCHS=y\n# CONFIG_DRM_VIRTIO_GPU is not set/" .config + sed -i "s/# CONFIG_DRM_VIRTIO_GPU is not set/CONFIG_DRM_VIRTIO_GPU=y/" .config sed -i "s/# CONFIG_DRM_ETNAVIV is not set/CONFIG_DRM_ETNAVIV=y\nCONFIG_DRM_ETNAVIV_THERMAL=y/" .config sed -i "s/# CONFIG_DRM_CIRRUS_QEMU is not set/CONFIG_DRM_CIRRUS_QEMU=y/" .config diff --git a/03_run_qemu.sh b/03_run_qemu.sh index 16d355f..6f217b0 100755 --- a/03_run_qemu.sh +++ b/03_run_qemu.sh @@ -92,7 +92,7 @@ else fi # 指定内存 -memory="-m 8G" +memory="-m 4G" # 主磁盘 disk="-drive format=raw,file=disk.img" @@ -109,6 +109,6 @@ display="-vga vmware" # 启动镜像 网络对应 run_nat.sh 里面的配置 ( -enable-kvm : vmware 里面 CPU 设置需要支持虚拟化 Intel VT-x/EPT 或 AMD-V/RVI ) # 命令 qemu-system-x86_64 -device help 可以查看支持哪些设备 -qemu-system-x86_64 -enable-kvm -display sdl,gl=on -vga virtio ${memory} ${disk} ${sdb_img} ${network} ${logfile} +qemu-system-x86_64 -enable-kvm -device qxl -vga qxl ${memory} ${disk} ${sdb_img} ${network} ${logfile} # stop nat stop_nat