add script to run qemu directly with -kernel

This commit is contained in:
K. Lange 2018-07-17 16:54:42 +09:00
parent b8c6ae5439
commit fdcd64e071

35
util/qemu.sh Normal file
View File

@ -0,0 +1,35 @@
#!/bin/bash
qemu-system-x86_64 \
-kernel fatbase/kernel \
-initrd \
fatbase/mod/zero.ko,\
fatbase/mod/random.ko,\
fatbase/mod/serial.ko,\
fatbase/mod/debug_sh.ko,\
fatbase/mod/procfs.ko,\
fatbase/mod/tmpfs.ko,\
fatbase/mod/ata.ko,\
fatbase/mod/ext2.ko,\
fatbase/mod/iso9660.ko,\
fatbase/mod/ps2kbd.ko,\
fatbase/mod/ps2mouse.ko,\
fatbase/mod/lfbvideo.ko,\
fatbase/mod/vbox.ko,\
fatbase/mod/vmware.ko,\
fatbase/mod/vidset.ko,\
fatbase/mod/packetfs.ko,\
fatbase/mod/snd.ko,\
fatbase/mod/ac97.ko,\
fatbase/mod/net.ko,\
fatbase/mod/pcnet.ko,\
fatbase/mod/rtl.ko,\
fatbase/mod/e1000.ko,\
fatbase/mod/pcspkr.ko,\
fatbase/ramdisk.img \
-append "vid=qemu,,1440,,900 root=/dev/ram0,,nocache start=--migrate _start=--headless" \
-nographic \
-enable-kvm \
-serial mon:stdio \
-m 1G -soundhw ac97,pcspk