版權聲明:您好,轉載請留下本人部落格的位址,謝謝 https://blog.csdn.net/hongbochen1223/article/details/41846773
我在看<<oranges 一個作業系統的實作>>一書中,有對對bochs的配置檔案bochsrc的書寫,但是,上面有些已經更新了,是以,現在介紹一下.
就像第一章中動手寫一個極其簡單的引導系統中bochsrc,應該改成下面的形式才不會出現問題.
#########################################
# Configuration file for bochs #
#########################################
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage: file=/usr/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/share/vgabios/vgabios.bin
# what disk images will be used
floppya: 1_44=a.img, status=inserted
# choose the boot disk
boot: floppy
# where do we send th log messages
log: bochsout.txt
# disable the mouse
mouse: enabled=0
#enable key mapping,using US layout as default
keyboard: keymap=/usr/local/share/bochs/keymaps/x11-pc-us.map #/usr/share/bochs/keymaps/x11-pc-us.map
因為,在bochs中,keyboard_mapping已經被keyboard代替了,同時,他的屬性enabled已經被取消了.