Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure bochs in ubuntu14.04

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install and configure bochs in ubuntu14.04". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install and configure bochs in ubuntu14.04.

First talk about their own configuration: the system is ubuntu14.04LTS64 bit, installed is: bochs-2.4.5, using the source code to compile the way to install (ps: originally intended to directly sudo apt-get install bochs in the command line, tried several times, it seems not to work, did not get it. It is said that there is no debugging function installed under the command line.

No more nonsense, start the installation:

1. Go to http://nchc.dl.sourceforge.net/project/bochs/bochs/2.4.5/bochs-2.4.5.tar.gz to download bochs-2.4.5.tar.gz first.

two。 Extract the downloaded source code:

Sudo tar zxvf bochs-2.4.5.tar.gz

3. Go to the bochs-2.4.5 directory and run the configure script, which will test your machine, the Cripple + compiler, and some libraries to determine which configuration is right for your machine. Run:

Sudo. / configure-enable-debugger-enable-disasm

(above-- enable-debugger-- enable-disasm is optional, these two are to enable debugging and disassembly functions)

4. When step 3 runs correctly, a Makefile file is generated, and then:

Sudo make

5. Installation:

Sudo make install

At this point, the bochs installation is complete. Here are some problems and solutions that may arise during compilation and installation:

Error A.configure: error: C++ preprocessor "/ lib/cpp" fails sanity check

Because Bochs is written in C++, the GNU gcc/g++ compiler will be installed here.

Solution:

Sudo apt-get install build-essential sudo apt-get install gathers +

Error B.checking for default gui on this platform... X11

ERROR: X windows gui was selected, but X windows libraries were not found.

Solution:

Sudo apt-get install xorg-dev

Error C.ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package.

Solution:

Sudo apt-get install libgtk2.0-dev

Error D.

Prompt for make / usr/bin/ld: gui/libgui.a (gtk_enh_dbg_osdep.o): undefined reference to symbol pthread_create@@GLIBC_2.1 / / lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld r

Solution:

Add the following to the libs of makefile:

Lz-lrt-lm-lpthread

It's late. I'll write about the configuration tomorrow.

The previous article is mainly about installation. The logo of installation is that there is a bochs program on the command line. Take a picture.

If there is this interface, it means that the installation is successful.

The next thing to do is to make a floppy disk and configure it. If the configuration is not successful, you will report all kinds of errors after selecting 6.

Let's start with floppy disk production!

After compilation, there will be a bximage executable file under the bochs2.4.5 folder, which runs on the terminal:

Following the above steps, we have made an empty floppy disk, which, like our hard disk, is used to store system files.

Then write a system image, which can be downloaded.

Http://www.oldlinux.org/Linux.old/images/bootroot-0.11

This is the image file of linux0.11.

Then execute the command at the terminal to write the image to the floppy disk we made:

Dd if=/home/freedemos/Downloads/bootroot-0.11 of=a.img

Note: the dd command executed here, if= the path of your image, of= the path of your floppy disk, copying must be wrong.

Next, let's talk about the configuration file (since the configuration file should be the most annoying, I don't know much about it until now, but it would be nice to make the virtual machine work properly, heh heh):

First of all, post your own configuration and comments and take a look at it!: my configuration file name is bochwang

# Note that the'#'is followed by a note, not the configuration file megs:32 # this 32 is the memory romimage:file=/usr/share/bochs/BIOS-bochs-latest of the simulator # this is the path of the BIOS-bochs-latest, you should find it slowly, it should be a different vgaromimage:file=/usr/share/bochs/VGABIOS-lgpl-latest # this is the path of the VGABIOS-lgpl-latest, you should find it slowly, it should be a different floppya:1_44=a.img Status=inserted # this is the boot floppy disk, which is the one we just did. Under the current directory, boot:floppy # decides whether boot starts from the floppy disk or the hard disk. Just copy log:bochsout.txt # this is the login option to copy mouse:enabled=0 # this is the mouse option to copy # there are many more options. For more information, you can refer to the original .bochsrc, which is an invisible file, and you can see it at the command line ls-a.

With the basic configuration above, we can launch linux0.11 from bochs by executing the following command:

. / bochs-f bochwang

And then this interface appears:

Select 6 to continue:

A black patch? Do you feel like you have failed? In fact, this is not the case, this is debug mode, and then we enter c in the terminal, in the confirmation, it will be normal.

Thank you for reading, the above is the content of "how to install and configure bochs in ubuntu14.04". After the study of this article, I believe you have a deeper understanding of how to install and configure bochs in ubuntu14.04. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report