wrote a basic bootloader

This commit is contained in:
2025-02-25 01:14:52 +00:00
commit 012b0454ed
36 changed files with 1667 additions and 0 deletions
Executable
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
set -e
# set root directory of project
cd "$(dirname "$0")/.."
# Build the bootloader
./scripts/create_disk.sh
# Default to KVM if available
KVM_FLAGS=""
if [ -c /dev/kvm ]; then
KVM_FLAGS="-enable-kvm -cpu host"
fi
# Run QEMU with appropriate flags
qemu-system-x86_64 \
$KVM_FLAGS \
-m 4G \
-drive file=disk.img,format=raw \
-monitor stdio \
-no-reboot \
-no-shutdown \
-smp 4 \
-serial file:serial.log