红联linux Linux通用技术 - Linux发行版技术 - 企业应用 - 实验室  Linux论坛

您的位置: 红联linux >> Linux实验室 >>

English Linux

>> 查看内容 -学Linux必读Linux学习教程推荐下载发新话题 (游客可发贴)

Installing Bochs/Unix_v6 on your 32-bit Linux machine

Boyswywh发布于 2007-11-06 | 次阅读   字号:     (网友评论 0 条) 我要评论


Start of with downloading the latest bochs source from this site.
I have downloaded this snapshot.

Extract to a folder
tar -zxvf bochs-20070421.tar.gz

Change to the bochs extracted folder
cd bochs-20070421

Configure the bochs to be built in Debug mode
./configure --enable-debugger --enable-disasm

Check that debugger flags are enabled config.h
#define BX_DEBUGGER 1
#define BX_DISASM 1

Compile the bochs in debugger mode
gmake

Install the bochs in debugger mode
make install

Bochs is all set to run in the DEBUG Mode :)

What next, I need OS for Boch machine, I have tried Linux, Windows, Mac OS all these are stupid they dint work on my Bochs machine, so I took the simple and the best OS Unix v6 from one of the google code.

Building the Unix v6 OS for Bochs machine

Get the Unix v6 source from this googlecode project
svn checkout http://iitcs450.googlecode.com/svn/lab1/trunk/ lab1

change to the source directory
cd lab1

Build the kernel and the boot images
gmake

Check that boot and kernel images are created ...
[root@localhost lab1]# ls -l obj/boot/boot
-rwxr-xr-x 1 root root 512 Apr 22 21:49 obj/boot/boot

[root@localhost lab1]# ls -l obj/kern/kernel
-rwxr-xr-x 1 root root 69621 Apr 22 21:49 obj/kern/kernel

Check some of the configuration parameter to be set properly
vi ./.bochsrc

ROM images path is correct, have to be changed for Ubuntu.
# filename of ROM images
romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000
vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest

Display library is commented out at all places - nothing worked for me term/nogui/textconfig.
#display_library: nogui

Path the kernel image is correct from this line.
ata0-master: type=disk, mode=flat, path="./obj/kern/bochs.img", cylinders=20, heads=16, spt=63

Now you are all set to run bochs command.
bochs

This is show the menu and select menu #6 to start stimulation.
1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Restore the Bochs state from...
6. Begin simulation
7. Quit now

NOTE: This did not work for me on 64-bit Ubuntu machine due to some library issues and the instruction set being different bla bla ...

 我要评论
发表评论,与各位同人交流。回复请点击下方的我要评论按钮(游客可回复),要发表贴子请点击 发新话题 (游客可发贴)
 热点主题
·HOWTO build arm-linux to
·Where are the American L
·ns-allinone-2.31 + VMwar
·Fedora 8 Server Setup: L
·Getting Sun Java 6 On De
·Install Fedora 7 Muti-Me
·JD for Linux C/C++
·Red Hat Enterprise Linux
·How-to-install-vmware-se
·Record something about m
 最新主题
·Linux Soft Raid1 --- Exa
·Install Fedora 7 Muti-Me
·How-to-install-vmware-se
·Fedora 8 Server Setup: L
·Using rpm.livna.org in F
·JD for Linux C/C++
·How to use printer Linux
·Getting Sun Java 6 On De
·After Fedora 8 comes Fed
·Where are the American L
 关注热点

Linux教程下载?
Linux学习教程推荐下载”(请点击),Linux教程免费下载。

求助Linux问题?
论坛有39版块,覆盖所有Linux技术层面。前往“红联Linux论坛

 

Linux系统教程 | Linux入门 | Linux管理 | Linux技巧 | Linux命令 | Ubuntu系统 | Linux服务器 | Linux数据库 | Linux开发

合作 | 关于我们 | 联系我们 | 导航 | 会员注册

©2017 红联 Powered by SupSite