bochs安装linux系统,Ubuntu 10.04安装Bochs 2.4.5笔记
1.到Bochs官方下载源码包,因为用到了调试功能。 Bochs 2.4.5下载地址 http://sourceforge.net/projects/bochs/
2.安装G++编译器
sudo apt-get install g++
如果不安装G++编译器, 在执行configure时就会出现一些错误。
3.执行配置,开启调试和反汇编
./configure --enable-debugger --enable-disasm
4.ERROR: X windows gui was selected, but X windows libraries were not found.
出现这个错误时,请安装xorg-dev包
sudo apt-get install xorg-dev
5.Package gtk+-2.0 was not found in the pkg-config search path.Perhaps you should add the directory containing `gtk+-2.0.pc'to the PKG_CONFIG_PATH environment variableNo package 'gtk+-2.0' foundERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.Install pkg-config and the gtk+ development package,or disable the gui debugger, or the wxWidgets display library (whichever is being used).
出现这个错误时,请运行:
sudo apt-get install libgtk2.0-dev
6.重新执行配置(出错处理如上)
./configure --enable-debugger --enable-disasm
然后运行make
make
再install
sudo make install
我试过不用sudo来直接执行,会出错的,出错提示不明确,应该是权限不够
make: *** [install_bin] 错误 1
7.完成,执行bochs,嘻嘻,来个截图
配置bochs:
安装好bochs之后,我们需要对bochs进行配置,其实就是对文件bochrsc进行修改!
《orange's :一个操作系统的实现》的附带光盘里有一个已经配置好的bochrsc,但
是它是针对bochs2.3版本的,所以不能用!!!我们需要重新修改bochrsc!
首先将附带光盘里的chapter1子目录下的文件夹a 移动到/home/roothoo/,(主要是为
是让a.img 和 bochsrc在同一文件夹下),然后对bochrc进行修改如下:
注意,#是注释符号!即#之后的语句是无效的,其实#就相当于C+语言中的//
###############################################################
# Configuration file for Bochs
###############################################################
# how much memory the emulated machine will have
megs: 32
# filename of ROM images
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
#romimage: file=$BXSHARE/BIOS-bochs-latest (适用于bochs安装在windows下)
vgaromimage: /usr/local/share/vgabios/vgabios.bin
#vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest(适用bochs安装在windows下)
# 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=/usr/local/share/bochs/keymaps/x11-pc-us.map
修改好之后, 【 Linux公社 www.Linuxidc.com 】 别忘了保存!
最后,我们运行bochs
cd /home/用户名 #我们切换到a.img 和 bochsrc所在的文件夹,
bochs -f bochsrc #以bochsrc为配置文件启动bochs
然后选择6,
然后再按c键,
OK!!!
ENJOY! -_-
问题一、安装bochs在terminal下输入下列代码
sudo apt-get install bochs
这样安装结束后,在我使用bochs的时候出现了下列错误:
Event type: PANIC
Device: [ ]
Message: dlopen failed for module 'x': file not found
这是由于在安装的时候,少安装了个bochs-x包
这个包可以在http://packages.Ubuntu.com/dapper/misc/bochs-x找到
也可以在terminal下面输入
sudo apt-get install bochs-x
这样才算安装完毕了。
问题二、启动问题
点进入系统后控制台出现下面的提示:
Please choose one: [6] 6
00000000000i[ ] installing win32 module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
========================================================================
Event type: PANIC
Device: [MEM0 ]
Message: ROM: System BIOS must end at 0xfffff
A PANIC has occurred. Do you want to:
cont - continue execution
alwayscont - continue execution, and don't ask again.
This affects only PANIC events from device [MEM0 ]
die - stop execution now
abort - dump core
Choose one of the actions above: [die]
问题原因:
在2.3.5以前的bochs使用的BIOS-bochs-latest是64k的,那个时候需要加上
romimage: file=BIOS-bochs-latest,address=0xf0000(举例)
在2.3.5中的BIOS-bochs-latest更新了,变成了128k的,这个时候配置需要改为
romimage: file=$BXSHARE/BIOS-bochs-latest (举例,也就是要去掉address=0xf000)
解决方法:
去掉配置文件中的address那个
问题三、bochs的启动配置文件bochsrc
一般网上的资料都会提示你安装好后会有如下工具:
/usr/bin/bochs Bochs启动程序
/usr/bin/bximage Bochs带的制作磁盘镜像文件的工具
/usr/bin/bxcommit 把redolog放进flat磁盘镜像文件中去的交互工具
/usr/share/doc/bochs/bochsrc-sample.txt Bochs配置文件的例子
/usr/share/bochs/BIOS-bochs-* ROM BIOS镜像文件
/usr/share/bochs/VGABIOS-* 与VGA BIOS镜像文件相关的文件
/usr/bin/bochs-dlx 启动Bochs中DLX linux的程序
/usr/share/bochs/dlxlinux/ DLX Linux的目录,包含它的磁盘镜像文件和配置文件
/usr/share/bochs/keymaps/*.map X11和SDL的keymap列表
其实在终端安装的却没有第四、第七和第八项,就连第二第三项也要另外安装:
sudo apt-get install bximage
sudo apt-get install bxcommit
所以,网上那些bochsrx在Ubuntu是运行不了的,就因为这点,我搞近一个下午,开始我老以为是配置文件不对呢。
普通的bochsrc:
romimage: file=$BXSHARE/BIOS-bochs-latest,
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
但是在Ubuntu下压根就没有VGABIOS-lgpl-latest
例如:
www.linuxidc.com@linuxidc-desktop:/usr/share/bochs$ ls
BIOS-bochs-latest BIOS-bochs-legacy BIOS-qemu-latest keymaps
www.linuxidc.com@linuxidc-desktop:/usr/share/bochs$
后来我才发现,从终端下安装bochs时它把VGA专门作为了一个程序安装在了/usr/share/vgabios/中了。
www.linuxidc.com@linuxidc-desktop:/usr/share/bochs$ ls /usr/share/vgabios/
vgabios.bin vgabios.cirrus.bin vgabios.cirrus.debug.bin vgabios.debug.bin
www.linuxidc.com@linuxidc-desktop:/usr/share/bochs$
这样配置文件就要改为:
romimage: file=$BXSHARE/BIOS-bochs-latest
megs:4
floppya: image=./boot.img,status=inserted
vgaromimage: file=/usr/share/vgabios/vgabios.bin
boot:a log:out.bochs
bochs安装linux系统,Ubuntu 10.04安装Bochs 2.4.5笔记相关推荐
- 在笔记本上安装 linux系统--Ubuntu 20.04(实体机安装而非虚拟机)
在笔记本上安装 linux系统–Ubuntu 20.04(实体机安装而非虚拟机) 一.刻录操作系统镜像到U盘 Ubuntu有详细的操作说明(5分钟左右能看完)大概如下 Create a bootabl ...
- 磊科nw336 linux驱动程序,Ubuntu 10.04 安装磊科nw336驱动 rtl8188su rtl8192su
Ubuntu 10.04 安装磊科nw336驱动 rtl8188su rtl8192su 1.下载rtl8712_8188_8191_8192SU_usb_linux_v2.6.0006.201002 ...
- thinkpad 10 linux驱动,Ubuntu 10.04安装Thinkpad指纹软件
pop:Windows下面指纹不用说,装驱动就可以了.Ubuntu略有不同,不过还是一样装软件就OK了. 1.安装thinkfinger软件 sudo apt-get install thinkfin ...
- ubuntu安装linux deepin,Ubuntu 13.04安装Linux Deepin特色软件
最新版本的 Linux Deepin 12.12 RC 已经将基础仓库升级到了 Ubuntu Raring,Linux Deepin 开发的特色软件,简单易用,其他发行版本的开发者应该尽量移植.因为 ...
- Ubuntu 10.04 安装在 VMware Workstation 7 后,键盘无反应的解决方法
Ubuntu 10.04 安装在 VMware Workstation 7 后,登录界面发现键盘.鼠标点击无效. 此时请将安装的 Ubuntu 10.04 虚拟机删除(Delete form Disk ...
- Ubuntu 10.04安装水晶(Mercury)无线网卡驱动
设备 无线网卡:MW54U ver7.0 操作系统: Ubuntu 10.04 安装(两步): 1. 安装驱动 从https://sourceforge.net/projects/a ...
- Ubuntu 10.04 安装配置指南
Ubuntu 10.04 安装配置指南 作者: Jandy 版本:1004.1.0504 --- 目录 〇. 准备 一. 安装 二. 配置 三. 输入法 四. Flash 五. 附录 六. 更新 -- ...
- Linux系统Ubuntu 20.04 ,cuda=11.1。实现C3D代码环境。
行为识别C3D代码(pytorch)实现过程及常见错误 1.C3D网络代码 C3D(pytorch)实现代码链接 C3D代码链接 2.C3D代码复现过程 我认为这位博主对于C3D复现过程的描述是非常好 ...
- 用ultraiso安装linux系统教程,U盘安装Ubuntu 10.04 Beta 1 (利用UltraISO制作LiveCD)
U盘安装Ubuntu 10.04 Beta 1,只要简单的几步就可以成功制作真正的"口袋里的操作系统".准备工作在开始之前,你至少需要进行如下准备:一张Ubuntu live CD ...
最新文章
- 【lidar】3D目标检测PointPillars:论文解读、代码解读、部署实现(1)
- 模板 - Min_25 筛法求素数和
- 初学git:用git bash往github push代码
- 可怕的乖孩子_小说《可怕的乖孩子》讲了一个什么故事?
- php 访问 sharepoint列表,SharePoint—用REST方式访问列表
- 模板类的定义和实现可以分开吗?
- RocketMQ的架构设计详解
- Pytorch:比较函数
- 游戏开发之静态成员实现单列设计模式(C++基础)
- 采购订单,订单行,发运行,分配行
- 怎样让硬盘分区显示整数大小
- 【美赛备赛】word编辑公式全攻略
- 微信测试公众号申请配置
- 怎样用c语言画二次函数图像,已知函数表达式如何画图像
- JavaScript图片旋转缩放、像素矩阵获取
- android 程序闪退 log,应用闪退log日志。。
- X上面有一道横线,怎么打出来?
- Snowflake Snow Snowflakes(哈希表的应用)
- B站学习云开见明:Python数据分析入门到精通学习笔记
- 踩雷1:Android Studio:3dmap 隐私合规校验失败: errorcode 555570 确保调用SDK任何接口前先调用更新隐私合规updatePrivacyShow、updateP