-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.sh
executable file
·55 lines (51 loc) · 1013 Bytes
/
debug.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
. ./shlib/platform.sh
echo $platform
./build.sh
case $platform in
"wsl" )
echo bochsrc.wsl
cp bochsrc.wsl bochsrc
;;
"macos" )
echo bochsrc.macos
cp bochsrc.macos bochsrc
;;
"arch" )
echo bochsrc.linux
cp bochsrc.linux bochsrc
;;
"linux" )
echo bochsrc.linux
cp bochsrc.linux bochsrc
;;
* )
echo "unknown platform " $platform
;;
esac
echo $platform
sudo chmod 777 c.img
rm -f *.lock
bochs -q
# if [ "$WSL" != "" ]; then
# if [ -e "/mnt/c/dev/bare.log" ]; then
# mv /mnt/c/dev/bare.log /mnt/c/dev/bare.log.1
# fi
# cp bochsrc /mnt/c/dev/
# cp bare.img /mnt/c/dev
# ping -c 4 192.168.1.1 >/dev/zero
# "$VBOX/VirtualBoxVM.exe" \
# --startvm \
# bare \
# --debug
# ping -c 4 192.168.1.1 >/dev/zero
# tail -f /mnt/c/dev/bare.log
# else
# if [ $platform = "macos" ]; then
# cp bochsrc.macos bochsrc
# else
# cp bochsrc.linux bochsrc
# fi
# bochs -q
# fi
# #qemu-system-x86_64 bare.img -boot a -s -S