Ubuntu10.04 build a linux-0.11 compiling environment (1. install and use bochs)

Source: Internet
Author: User

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)

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.