forked from cycl0ne/poweros_x86
-
Notifications
You must be signed in to change notification settings - Fork 0
/
no_build.sh
30 lines (21 loc) · 997 Bytes
/
no_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#make clean
#make
cp ./bin/kernel.bin ./bin/kernel
losetup /dev/loop15 ./harddisk.img
mount /dev/loop15 /mnt/floppy
cp ./bin/kernel /mnt/floppy
cp ./bin/kernel.bin /mnt/floppy
umount /dev/loop15
losetup -d /dev/loop15
#for old qemu v0.91
#../qemu/bin/qemu -L ../qemu/share/ -no-kqemu -m 64 -hda ./harddisk.img
#for new compiled qemu
#qemu-system-x86_64 -m 64 -vga vmware -serial stdio -hda ./harddisk.img
#qemu-system-x86_64 -m 64 -hda ./harddisk.img
#for qemu with virtio nic enabled
#qemu-system-i386 -m 64 -vga vmware -serial stdio -hda ./harddisk.img -net nic,model=virtio
#for qemu with virtio nic and virtio disk enabled
#qemu-system-x86_64 -m 64 -vga vmware -serial stdio -hda ./harddisk.img -net nic,model=virtio -drive file=harddisk2.img,if=virtio
#for qemu with virtio nic and two virtio disk enabled
qemu-system-x86_64 -m 64 -vga vmware -serial stdio -hda ./harddisk.img -net nic,model=virtio -drive file=harddisk2.img,if=virtio -drive file=harddisk3.img,if=virtio