由於現在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
以上問題都可以通過上面的配置文件解決。還有其他的疑問歡迎討論!