1:下载源码bochs-2.4.5.tar.gz
(最新的bochs-2.4.6.tar有问题,ld出现错误)
2:sudo apt-get install build-essential libgtk2.0-dev flex
(已安装的package跳过即可)
3:编译并安装bochs
./configure --enable-debugger --enable-disasm
make
sudo make install
4:安装bochs-x
sudo apt-get install bochs-x
注:使用源码安装才可以配置打开debugger选项,直接apt-get install或deb安装无debugger功能
附:linux下boch的配置文件写法
###############################################################
# 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=1.img, status=inserted
# choose the boot disk.
boot: floppy
# where do we send log messages?
log: bochsout.txt
# disable the mouse
mouse: enabled=0
# enable key mapping, using US layout as default.
keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
阅读(1275) | 评论(0) | 转发(0) |