Skip to content

Commit

Permalink
run: sync with debug.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
karlek committed May 8, 2024
1 parent 9071aef commit f3d0d7e
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
#!/bin/bash

set -e
set -ex

cat /dev/null > /tmp/serial.log
cat /dev/null > /tmp/serial.raw
alacritty --class lappis-serial-raw -e fish -c 'tail -f /tmp/serial.raw' &
alacritty --class lappis-serial-raw -e tail -f /tmp/serial.raw &
alacritty --class lappis-serial-log -e tail -f /tmp/serial.log &
sleep 1

# swaymsg '[app_id="lapis-serial-log"] move window to workspace 4'
qemu-system-x86_64 \
-no-reboot \
-no-shutdown \
-d int \
-m size=4G \
-serial file:/tmp/serial.log \
-serial file:/tmp/serial.raw \
-drive media=disk,index=0,file=bin/zipfs.img,format=raw,if=ide \
-monitor stdio \
-cdrom bin/kernel.iso
kitty --class lappis-qemu \
qemu-system-x86_64 \
-cpu qemu64,+smep,+smap \
-no-reboot \
-no-shutdown \
-d int \
-m size=4G \
-serial file:/tmp/serial.log \
-serial file:/tmp/serial.raw \
-drive media=disk,index=0,file=bin/zipfs.img,format=raw,if=ide \
-monitor stdio \
-cdrom bin/kernel.iso

ps ax | grep alacritty | grep lappis-serial-raw | awk '{print $1}' | xargs kill
ps ax | grep alacritty | grep lappis-serial-log | awk '{print $1}' | xargs kill
ps ax | grep kitty | grep lappis-qemu | awk '{print $1}' | xargs kill

0 comments on commit f3d0d7e

Please sign in to comment.