由于现在Bochs 2.6.8相比之前有些改动,之前的配置文件不能直接运行,针对配置文件需要有些修改。
1. 配置文件
############################################################### # bochsrc.bxrc file for Finix. ############################################################### # how much memory the emulated machine will have megs: 32 # filename of ROM images # BIOS已经修改,地址可以不加,可以根据文件大小进行推断,如里加地址要与文件大小相匹配 romimage: file=$BXSHARE/BIOS-bochs-latest vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest # what disk images will be used # 配置镜像名 floppya: 1_44=Finix.IMG, status=inserted # choose the boot disk. boot: a # where do we send log messages? log: bochsout.txt # disable the mouse, since Finix is text only mouse: enabled=0 # enable key mapping, using US layout as default. # 键盘的映射方式也改变了 keyboard: keymap=$BXSHARE/keymaps/x11-pc-us.map
2. 运行结果
由于没有做清屏操作,会将原来的文字部分覆盖,不过没有关系,它已经可以运行了。
3. 可能会遇到的问题
ROM: System BIOS must end at 0xfffff
keyboard_mapping' is deprecated - use 'keyboard' option instead
keyboard directive malformed
vgaromimage directive malformed
以上问题都可以通过上面的配置文件解决。还有其他的疑问欢迎讨论!