作者:帅得不敢出门 C++爱好者灌水天堂群 3503799 转载请保留此信息
我的系统为redhat9
首先去bochs的官网
下载最新的程序,我直接下的是bochs-2.4.tar.gz
tar zxvf bochs-2.4.tar.gz
./configure
如果要调试功能的话,可查看configure文件做相应调整
--enable-debugger compile in support for Bochs internal debugger
--enable-disasm compile in support for disassembler
--enable-debugger-gui compile in support for Bochs internal debugger GUI
--with-sdl use SDL libraries
网上说要加最后一个暂时没有明白其意。
make
./bochs 运行
BOCHS运行需要.bochsrc文件,在LINUX下以.开头的文件都是隐藏文件
l. 可查看这些文件。
vi .bochsrc
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage:file=$BXSHARE/BIOS-bochs-latest
#注意上面这一行,2.3.5以后的后面不能加,address=0xf0000 否则会出现
#Message: ROM: System BIOS must end at 0xfffff 错误的 这个后面会解释
#romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
# what disk images will be used
floppya: 1_44=hello.img, status=inserted
#a