Bochs 2.4.2 Ubuntu installation and running problems Chapter 2 debugging of Orange's implementation of an operating system

Source: Internet
Author: User

Problems encountered after installation with source code:

1
Running may encounter the following problems:
Event Type: panic
Device: []
Message: dlopen failed for module 'X': file not found

This is becauseInstall
When, lessInstall
ABochs
-X
Package
This package can be found in
Http: // packages.
Ubuntu
.
COM/dapper/MISC/Bochs
-X

Find
You can also enter
Sudo apt-Get installBochs
-X

In this caseInstall
Finished.
2
Startup Problems
Click to enter the system. The following message is displayed on the console:
Please choose one: [6] 6
Before 000i [] installing Win32 module asBochs
Gui
100000000000i [] Using Log File bochsout.
Txt
========================================================== ======================================
Event Type: panic
Device: [mem0]
Message: Rom: system BIOS must end at 0 xfffff
A panic has occurred.
Do you want:
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]
Cause:
In 2.
3.
5 previousBochs
BiOS used-Bochs
-Latest is 64 KB. You need to add
Romimage: file = BIOS-Bochs
-Latest, address = 0xf0000
In 2.
3.
BIOS in step 5-Bochs
-Latest is updated to kb.Configuration
Change
Romimage: file = $ bxshare/BIOS-Bochs
-Latest
Solution:
RemoveConfiguration
The address in the file
3
,Bochs
.Configuration
File bochsrc
Generally, you will be prompted for information on the Internet.Install
The following tools are available:
/Usr/bin/Bochs
Bochs
Start the program
/Usr/bin/bximageBochs
Tools used to create disk image files
/Usr/bin/bxcommit is an interactive tool that puts redolog into the flat disk image file.
/Usr/share/doc/Bochs
/Bochsrc-Sample.
TxtBochs
Configuration
File example
/Usr/share/Bochs
/BIOS-Bochs
-* Rom bios Image File
/Usr/share/Bochs
/Vgabios-* files related to vga bios image files
/Usr/bin/Bochs
-DLX startupBochs
Program in DLX Linux
/Usr/share/Bochs
/Dlxlinux/DLX Linux directory, including its disk image file andConfiguration
File
/Usr/share/Bochs
/Keymaps /*.
Keymap list of map X11 and SDL
In fact, in the terminalInstall
But there are no fourth, seventh, and eighth items.Install
:
Sudo apt-Get install bximage
Sudo apt-Get install bxcommit
Therefore, the online bochsrxUbuntu
It cannot be run. Because of this, I thought it wasConfiguration
The file is incorrect.
Common bochsrc:
Romimage: file = $ bxshare/BIOS-Bochs
-Latest, address = 0xf0000
Vgaromimage: file = $ bxshare/vgabios-lgpl-Latest
HoweverUbuntu
Vgabios-lgpl-Latest
For example:
Lzel @ lzel-desktop:/usr/share/Bochs
$ Ls
BIOS-Bochs
-Latest BIOS-Bochs
-Legacy BIOS-qemu-Latest keymaps
Lzel @ lzel-desktop:/usr/share/Bochs
$
Later I discovered thatInstall
Bochs
It uses VGA as a program.Install
In/usr/share/vgabios.
Lzel @ lzel-desktop:/usr/share/Bochs
$ Ls/usr/share/vgabios/
Vgabios.
Bin vgabios.
Cirrus.
Bin vgabios.
Cirrus.
Debug.
Bin vgabios.
Debug.
Bin
Lzel @ lzel-desktop:/usr/share/Bochs
$
This wayConfiguration
Change the file:
Romimage: file = $ bxshare/BIOS-Bochs
-Latest
Megs: 4
Floppya: Image =.
/Boot.
IMG, status = inserted
Vgaromimage: file =/usr/share/vgabios.
Bin

Boot:


Log: Out.
Bochs

 

Most
Next, in the second chapter of "Implementation of an orange OS" about modifying the content of the bochsrc configuration file:

After installing bochs, We need to configure bochs. In fact, we need to modify the bochrsc file!

The attached CD of Orange's: Implementation of an operating system contains a configured bochrsc,
Yes. It is for bochs2.3, so it cannot be used !!! We need to modify bochrsc again!
First, move the folder A under the Chapter1 subdirectory in the attached CD to/home/roothoo/(mainly
Is to make a. IMG and bochsrc in the same folder), and then modify bochrc as follows:
Note: # Is the annotator! That is, # the subsequent statement is invalid. In fact, # is equivalent to // in 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

# Vgaromimage:/usr/local/share/vgabios. Bin
Vgaromimage: file = $ bxshare/vgabios-lgpl-Latest

# What disk images will be used
Floppya: 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

Pay attention to the two sentences in red!

After modification, do not forget to save it!
Finally, we run bochs
CD/home/roothoo/A # Switch to the folder where a. IMG and bochsrc are located,
Bochs-F bochsrc # Start bochs with bochsrc as the configuration file
Then select 6,
Then press the C key,
OK !!!
Enjoy! -_-

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.