The bochs configuration file released by oldlinux does not match the bochs version on ubuntu10.04, causing a series of problems in parsing the configuration file. This article solves these problems.
1.Install bochs
Sudo apt-Get install bochs vgabios bochs-x bochsbios bochs-Doc bochs-SDL
If you have any questions, find the appropriate source.
2.Get a bootable linux-0.11 System
1. Download the compressed package
Http://oldlinux.org/Linux.old/bochs/linux-0.11-devel-060625.zip
2. Extract
Unzip linux-0.11-devel-060625.zip
3. Enter
CD linux-0.11-devel-060625
3.Test the downloaded Image
Under the linux-0.11-devel-060625 directory
Execute the bochs-F bochsrc-hd.bxrc
-----Errors and Solutions-----
(1)> panic <bochsrc-hd.bxrc: 37: vgaromimage directive malformed.
A. comment out the corresponding line
B. Change it to vgaromimage: file =/usr/share/bochs/vgabios-lgpl-latest.
(2)> panic <bochsrc-hd.bxrc: 284: Directive 'floppy _ command_delay 'not understood
A. comment out the corresponding line
(3) bochsrc-hd.bxrc: 194: Unknown Parameter for parport1 ignored.
A. Comment out
B. Change to: parport1: enabled = 1, file = "parport. Out"
(4)> panic <bochsrc-hd.bxrc: 307: Directive 'ips' not understood
A. Comment out
B. Change to: CPU: Count = 1, IPS = 1000000
(5) dlopen failed for module 'X': file not found
A. Add the following content at the top of the configuration file:
Config_interface: textconfig
Display_library: SDL
(Source: bochs default configuration file/etc/bochs-init/bochsrc)
(6) ROM: system BIOS must end at 0 xfffff
A. romimage: file = $ bxshare/BIOS-bochs-Latest, address = 0xf0000 to romimage: file =/usr/share/bochs/BIOS-bochs-Latest
(7) other questions
Http://www.cnblogs.com/soli/archive/2009/09/21/1571466.html
-----------------------------------------------------------------------------
Re-execute the bochs-F bochsrc-hd.bxrc..
Note: In fact, if it is for the purpose of learning, so far can be in the existing environment to learn the source code of the linux-0.11, the image downloaded above, contains the linux-0.11 source code, you can directly compile.
After compilation, you only need to write the image to the boot disk.
Write the boot disk as follows: (assume fd0 is the boot floppy disk)
Dd If = image of =/dev/fd0
(This article is complete)