"Implementation of an operating system" Ubuntu system environment configuration

Source: Internet
Author: User

"Implementation of an operating system" Ubuntu system environment configuration

The computer has GCC installed before it.

One. NASM Installation:
sudo apt-get nasm
Or
Official website Download http://sourceforge.net/projects/nasm
I downloaded the nasm-2.11.08-1.src.rpm (with Nasm-2.11.08.tar.xz file)
How to install RPM:

1 $sudo apt-get Install alien # #alien默认没有安装, so first install it2 $sudo Alien xxxx.rpm # #将rpm转换为deb, a xxxx.deb is generated when finished3 $sudo dpkg-i xxxx.deb # #这样xxxx软件就可以安装完成了4 and then you get the Nasm-2.11.08.tar.xz file .5 Unzip:6 tar-axf XXX.tar.xz Option-a allows tar to select the Unzip tool based on. XZ;7 8 then execute the command:./configure9 Ten  Make One  Asudo make install
rpm

NASM Installing tar.gz:

1 decompression: Tar zxvf nasm-2.10.07.tar.gz 2 3 Enter the directory you just unzipped 4 5 then execute the command:./configure 6 7  Make 8 9 sudo make install
tar.gz

Two. Bochs Installation:
Method One:
$sudo apt-get Install Vgabios bochs bochs-x bximage
Method Two:
$tar-vxzf bochs-2.3.5.tar.gz
$CD bochs-2.3.5
$./configure--enable-debugger--enable-disasm
$make
$sudo make Install

I use the method two installation is always a problem, the last choice method one.

Three. Create a floppy Image:
command line input bximage, the same steps as the book.

Four. Modify the configuration file Bochsrc:
Under the/etc/bochs-init/directory

Configuration in the Bochsrc file:

12display_library:sdl3 4 5  6 Boot:floppy 7  8 mouse:enabled=0
bochsrc


Five. Use:
NASM Boot.asm-o Boot.bin
DD if=boot.bin of=a.img bs=512 count=1 conv=notrunc
Bochs-f BOCHSRC

(Try it first, not the Boot.asm->boot.bin, a.img, bochsrc in the same directory to try)

Detailed Description:

http://bochs.sourceforge.net/cgi-bin/topper.pl?name=New+Bochs+Documentation&url=http:// Bochs.sourceforge.net/doc/docbook/user/index.html

"Implementation of an operating system" Ubuntu system environment configuration

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.