Skip to content

Commit

Permalink
更新bochsrc
Browse files Browse the repository at this point in the history
  • Loading branch information
copi143 committed Jan 25, 2025
1 parent db549f6 commit eb3c2f9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ cd bin
step 创建符号链接
run ln -s ../src/boot/run.sh run.sh &>>$INIT_LOG_PATH
run ln -s ../src/boot/run-efi.sh run-efi.sh &>>$INIT_LOG_PATH
run ln -s ../src/boot/bochsrc.txt bochsrc.txt &>>$INIT_LOG_PATH
run ln -s ../src/boot/bochs.sh bochs.sh &>>$INIT_LOG_PATH
run ln -s ../src/boot/netlog.py netlog.py &>>$INIT_LOG_PATH
run ln -s ../src/boot/templates templates &>>$INIT_LOG_PATH
Expand Down
3 changes: 1 addition & 2 deletions src/boot/bochs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
rm ./bochsrc.txt
cp ./resource/bochsrc.txt .
#!/usr/bin/sh
bochs
rm ./bx_enh_dbg.ini
23 changes: 23 additions & 0 deletions src/boot/bochsrc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
megs: 2048
romimage: file=./resource/BIOS-bochs-latest
vgaromimage: file=./resource/VGABIOS-lgpl-latest
vga: extension=vbe, update_freq=15
floppya: 1_44="./img/disk.img", status=inserted
ata0: enabled=1
ata0-master: type=disk, mode=flat, translation=auto, path="hd.img"
boot: a
mouse: enabled=0
cpu: ips=15000000
pci: enabled=1, chipset=i440fx
magic_break: enabled=1
display_library: x
keyboard: type=mf, serial_delay=200, paste_delay=100000
keyboard: keymap=/usr/share/bochs/keymaps/x11-pc-us.map
keyboard: user_shortcut=ctrl-alt
display_library: x, options="gui_debug"
sound: enabled=1
sb16: enabled=1
com1: enabled=true, mode=file, dev=serial.txt
com2: enabled=false
com3: enabled=false
com4: enabled=false

0 comments on commit eb3c2f9

Please sign in to comment.