Problems encountered after source code installation: 1 may encounter the following problems: Eventtype: PANICDevice: [] Message: dlopenfailedformodulex: filenotfound, A bochs-x package is missing and can be installed in packages. ubuntu. comdapp
Problems encountered after source code installation: 1 may encounter the following problems: Event type: PANIC Device: [] Message: dlopen failed for module 'X ': file not found. This is because a bochs-x package is missing during installation. This package can be found at http: // packages. ubuntu. com/dapp
Problems encountered after installation with source code:
1Running may encounter the following problems:
Event type: PANIC
Device: []
Message: dlopen failed for module 'X': file not found
This is becauseInstallWhen, lessInstallABochs-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 caseInstallFinished.
2Startup Problems
Click to enter the system. The following message is displayed on the console:
Please choose one: [6] 6
Before 000i [] installing win32 module asBochsGUI
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 previousBochsBIOS 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.ConfigurationChange
Romimage: file = $ BXSHARE/BIOS-Bochs-Latest
Solution:
RemoveConfigurationThe address in the file
3,Bochs.ConfigurationFile bochsrc
Generally, you will be prompted for information on the Internet.InstallThe following tools are available:
/Usr/bin/Bochs BochsStart the program
/Usr/bin/bximageBochsTools 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.TxtBochsConfigurationFile 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 startupBochsProgram in DLX linux
/Usr/share/Bochs/Dlxlinux/DLX Linux directory, including its disk image file andConfigurationFile
/Usr/share/Bochs/Keymaps /*.Keymap list of map X11 and SDL
In fact, in the terminalInstallBut there are no fourth, seventh, and eighth items.Install:
Sudo apt-get install bximage
Sudo apt-get install bxcommit
Therefore, the online bochsrxUbuntuIt cannot be run. Because of this, I thought it wasConfigurationThe file is incorrect.
Common bochsrc:
Romimage: file = $ BXSHARE/BIOS-Bochs-Latest, address = 0xf0000
Vgaromimage: file = $ BXSHARE/VGABIOS-lgpl-latest
HoweverUbuntuVGABIOS-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 thatInstallBochsIt uses VGA as a program.InstallIn/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 wayConfigurationChange 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
MostNext, 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! -_-