You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#how much memory the emulated machine will have
megs: 32
#filename of ROM images
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
#what disk images will be used
floppya: 1_44=a.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=$BXSHARE/keymaps/x11-pc-us.map
运行
bochs -f bochsrc
输入回车
调试界面输入 c 回车, 运行
The text was updated successfully, but these errors were encountered:
ubuntu12.04 上搭建 bochs2.3.5 调试环境
在 ubuntu12.04 64 位环境下使用源码编译 bochs2.3.5 带 debug 带 gui 版本。
环境搭建
操作系统 ubuntu12.04
替换源
1、首先备份Ubuntu12.04源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、修改更新源
sudo gedit /etc/apt/sources.list
3、更新源
sudo apt-get update
bochs2.3.5
编译
编译过程出错处理:
error: C compiler cannot create executables
ERROR: X windows gui was selected, but X windows libraries were not found.
apt-get install xorg-dev
仍然报错
make
make之前需要修改一份文件bx_debug/symbol.cc
在97行之后加入代码如下:
nasm 安装
sudo apt-get install nasm
测试
asm 源码
boot.asm
asm 源码编译
nasm boot.asm -o boot.bin
制作镜像
1.生成镜像文件
bximage
第一步选 fd, 其余默认
生成软盘镜像 a.img
2.写入引导扇区
dd if=boot.bin of=a.img bs=512 count=1 conv=notrunc
生成 bochsrc
运行
bochs -f bochsrc
The text was updated successfully, but these errors were encountered: