summaryrefslogtreecommitdiff
path: root/debug.sh
blob: 1d606af9c15d9cecc5bca89cf59be1835a2d8cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

make -C loader &&
make -C kernel &&

./image.sh &&

qemu-system-x86_64 -cpu qemu64 \
    -drive if=pflash,format=raw,unit=0,file=/usr/share/ovmf/x64/OVMF_CODE.fd,readonly=on \
    -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
    -net none -drive file=uefi.img,if=ide -monitor stdio -serial file:sophia.log -d int \
    -no-shutdown -no-reboot -s -S