Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1118830
  • 博文数量: 241
  • 博客积分: 4385
  • 博客等级: 上校
  • 技术积分: 2383
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-07 23:13
文章分类

全部博文(241)

文章存档

2013年(1)

2012年(8)

2011年(62)

2010年(109)

2009年(61)

分类: LINUX

2011-07-26 13:00:55

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

阅读(1239) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~