feat: added debug traces and added support for booting using grub and
tftp
This commit is contained in:
@@ -13,6 +13,7 @@ Options:
|
||||
-i [disk], --ide [disk] Use [disk] as a hda on an IDE bus
|
||||
-n, --nohup Run QEMU using nohup and output to /dev/null
|
||||
-m, --max-cpu Run qemu with -m max
|
||||
--net Launch the kernel using TFTP. (Requires GRUB to be set up)
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -23,6 +24,11 @@ while [[ "$#" -gt 0 ]]; do
|
||||
ARGS="${ARGS} -S -s -d guest_errors,int"
|
||||
shift
|
||||
;;
|
||||
--net)
|
||||
cp cmake-build-debug/my-kernel.bin netdir/my-kernel.bin
|
||||
KERNEL="-netdev user,id=n0,tftp=netdir,bootfile=/boot/grub/i386-pc/core.0 -device e1000,netdev=n0"
|
||||
shift
|
||||
;;
|
||||
-i | --ide)
|
||||
ARGS="${ARGS} -hda $2"
|
||||
shift 2
|
||||
|
||||
Reference in New Issue
Block a user