1. Debugging system construction
A. The system construction requires a piece of other virtual machine software, here is Bochs
Bochs–it is an x86 hardware Open source simulator of the platform. It can simulate various hardware configurations. Bochs simulates the entire pc platform, including I/O devices, memory and BIOS. It is also a very portable open source IA-32 (x86) computer emulator written in C++, which can run on the most popular platforms. It emulates Intel x86 CPUs, common I/O devices, and customized BIOS.
Summarized as follows:
1. Professional simulation of x86 architecture virtual machine
2. Open source and highly transplanted, written in C++
3. Support breakpoint debugging in the development process of operating system
4. It can run most mainstream operating systems through simple configuration
Installation and configuration of B.Bochs
After the installation, the result is
There will be an error here, because there is no configuration, the next job is to configure
1. Need to start Bochs Price for configuration
2. The bochs virtual machine from
Display mode: bochs -f bcchsrc_file
Implicit mode: boch
3. The result after the configuration is completed-print the result on the virtual machine
What needs to be noted here is
1. Determine the installation path of bochs (which bochs)
2. Install vgabios (apt-get install vgabios)
3. Determine the installation path of vgabios (whereis vgabios)
C. Common commands in Bochs
Summary 1. Bochs is a professional virtual machine that simulates the x86 architecture 2 .Install Bochs from the source code to get debugging support 3.Bochs startup configuration file is the key to correct operation 4.Bochs supports breakpoint debugging, and its debugging commands are similar to GDB
p>