博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在UBUNTU上安装基于bochs的 xv6
阅读量:4321 次
发布时间:2019-06-06

本文共 1193 字,大约阅读时间需要 3 分钟。

第一个步骤——安装bochs:

在安装bochs时需要从x下载tar包

解压后,
首先配置configure,
./configure --prefix=/usr/local/bin/bochs –enable-debugger –enable-disasm --enable-x86-debugger --with-x --with-x11
(–enable-debugger和 –enable-disasm 表示开启调试和反汇编功能)
然后make编译
最后 sudo make install 安装

bochs查找bochsrc文件的顺序

If no configuration file is specified on the command line and config file loading is not disabled, Bochs searches for a default configuration file. This is the search order:

.bochsrc in the current directory

bochsrc in the current directory

bochsrc.txt in the current directory

(win32 only) bochsrc.bxrc in the current directory

(Unix only) .bochsrc in the user's home directory

(Unix only) bochsrc in the /etc directory

多参考

1.9.15. I am new to Bochs, how do I start?

You should read Chapter 4 first. Next, you can check Chapter 9 if there specific instructions on how to install your (guest) OS inside of Bochs.

第二个步骤——在bochs中运行xv6:

在xv6内有一个dot-bochsrc的文件,里面是运行bochs时的配置文件。

可以参考目前版本bochs的/share/doc/bochs/bochs-sample.txt来配置dot-bochsrc
# how much memory the emulated machine will have
megs: 254

# 键盘的映射方式也改变了

keyboard: keymap=$BXSHARE/keymaps/x11-pc-us.map

以下链接可参考:

转载于:https://www.cnblogs.com/gangzhuzi/p/10176252.html

你可能感兴趣的文章
Button MouseEvent颜色变化
查看>>
Volist标签
查看>>
浅谈模块化
查看>>
14个免费访客行为分析工具
查看>>
beego orm关联查询之多对多(m2m)
查看>>
(转)arguments.callee移除AS3匿名函数的侦听
查看>>
onNewIntent调用时机
查看>>
MYSQL GTID使用运维介绍(转)
查看>>
Fail to start neutron-server
查看>>
景安快运挂在磁盘-支持宝塔
查看>>
word中交叉引用不能更新的解决方法
查看>>
高性能HTTP加速器Varnish(概念篇)
查看>>
Linux 如何写makefile文件
查看>>
flutter_webview_plugin 无法加载网页的异常处理
查看>>
bloc控制读写文件
查看>>
微信小程序
查看>>
洛谷 P1059 明明的随机数
查看>>
window自动任务实现数据库定时备份
查看>>
Windows 7 Ultimate(旗舰版)SP1 32/64位官方原版下载(2011年5月12日更新版)
查看>>
javascript操作cookie
查看>>