Bochs使用[练习自己动手写操作系统]

来源:互联网 发布:淘宝客推广在哪里设置 编辑:程序博客网 时间:2024/06/16 20:41

1:安装

参见:http://blog.csdn.net/quan9ing007/article/details/21466233

2:使用

建议在root权限下操作

因为安装的bochs是2.6.2版本,和书中的bochsrc适用于2.3.5,我们需要自己对bochsrc进行修改。下面是修改后的bochsrc文件:

################################################################ Configuration file for Bochs################################################################ how much memory the emulated machine will havemegs: 32# filename of ROM images#romimage: file=/usr/share/bochs/BIOS-bochs-latestromimage: file=/usr/local/share/bochs/BIOS-bochs-latest#vgaromimage: /usr/share/vgabios/vgabios.binvgaromimage: file=/usr/local/share/bochs/VGABIOS-elpin-2.40# what disk images will be usedfloppya: 1_44=a.img, status=inserted# choose the boot disk.boot: floppy# where do we send log messages?# log: bochsout.txt# disable the mousemouse: enabled=0# enable key mapping, using US layout as default.#keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.mapkeyboard_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map


0 0