版权声明:您好,转载请留下本人博客的地址,谢谢 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已经被取消了.