summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-08 18:14:55 +0100
committerAnton Kling <anton@kling.gg>2023-11-08 18:28:38 +0100
commit006302465965129777884e09114c7a503f8342ac (patch)
treeefcd45b2d7091f2970256ed2b0326ab8c746a4e8 /meta
parent420221c7ee8c98d241bb1881368bdae9500f5275 (diff)
Meta: Modify run and debug scripts
Diffstat (limited to 'meta')
-rwxr-xr-x[-rw-r--r--]meta/debug.sh5
-rwxr-xr-xmeta/halt.sh5
-rwxr-xr-xmeta/new.sh2
-rwxr-xr-xmeta/run.sh2
4 files changed, 11 insertions, 3 deletions
diff --git a/meta/debug.sh b/meta/debug.sh
index 7fcb185..d1eeedb 100644..100755
--- a/meta/debug.sh
+++ b/meta/debug.sh
@@ -1,3 +1,6 @@
#!/bin/sh
-qemu-system-i386 -no-reboot -no-shutdown -serial file:./logs/serial.log -hda ext2.img -m 1G -cdrom ./kernel/myos.iso -s -S &
+scriptdir="$(dirname "$0")"
+cd "$scriptdir"
+cd ..
+qemu-system-i386 -no-reboot -no-shutdown -serial file:./logs/serial.log -hda ./meta/ext2.img -m 1G -cdrom ./kernel/myos.iso -s -S &
gdb -x .gdbinit
diff --git a/meta/halt.sh b/meta/halt.sh
new file mode 100755
index 0000000..c232c57
--- /dev/null
+++ b/meta/halt.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+scriptdir="$(dirname "$0")"
+cd "$scriptdir"
+cd ..
+gdb -x .gdbinit
diff --git a/meta/new.sh b/meta/new.sh
index 24d1b1d..4c2da48 100755
--- a/meta/new.sh
+++ b/meta/new.sh
@@ -6,5 +6,5 @@ cd "$scriptdir"
# Include /sbin to the PATH since mkfs.ext2 exists only in sbin on debian :/
export PATH="$PATH:/sbin"
rm ext2.img
-mkfs.ext2 ext2.img 20M
+mkfs.ext2 ext2.img 30M
./sync.sh
diff --git a/meta/run.sh b/meta/run.sh
index 4312968..2861a30 100755
--- a/meta/run.sh
+++ b/meta/run.sh
@@ -2,7 +2,7 @@
scriptdir="$(dirname "$0")"
cd "$scriptdir"
cd ..
-qemu-system-i386 -enable-kvm -netdev user,id=n0,hostfwd=udp:127.0.0.1:6001-:6000 -device rtl8139,netdev=n0 -object filter-dump,id=id,netdev=n0,file=./logs/netout -d int -no-reboot -no-shutdown -chardev stdio,id=char0,logfile=./logs/serial.log,signal=off -serial chardev:char0 -hda ./meta/ext2.img -m 1G -cdrom ./kernel/myos.iso -s
+qemu-system-i386 -enable-kvm -netdev user,id=n0,hostfwd=udp:127.0.0.1:6001-:6000 -device rtl8139,netdev=n0 -object filter-dump,id=id,netdev=n0,file=./logs/netout -d int -no-reboot -no-shutdown -chardev stdio,id=char0,logfile=./logs/serial.log,signal=off -serial chardev:char0 -hda ./meta/ext2.img -m 512M -cdrom ./kernel/myos.iso -s
# Sync the sysroot
cd ./meta/
mkdir ./mount