Implementation practices of an operating system

Source: Internet
Author: User

Implementation practices of an operating system

I recently looked at the implementation of an operating system and encountered many problems. However, they have all been resolved, so I am writing a blog here and hope it will be helpful to my friends.

First, we need to write the operating system in the Linux system, so I installed the Vwmare Virtual Machine and Ubuntu system.

After installing nasm, bochs, gcc, g ++, and build-essential tail, we started to build our own environment.

When building the environment, you will encounter the following problems:

1: ROM: couldn't open ROM image file '/usr/share/bochs/BIOS-bochs-latest

We need to change: romimage: file =/usr/share/bochs/BIOS-bochs-latest to romimage: file =/usr/local/share/bochs/BIOS-bochs-latest #/usr/share/bochs/BIOS-bochs-latest

2: Can not stat keymap file '/usr/share/... map' (too lazy to hit all)

We need:

Keyboard_mapping: enabled = 1, map =/usr/share/bochs/keymaps/x11-pc-us.map changed to keyboard_mapping: enabled = 1, map =/usr/local/share/bochs/keymaps/x11-pc-us.map #/usr/share/bochs/keymaps/x11-pc-us.map

Finally, we can change dump_cpu to r at runtime.

The last figure is shown below:


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.