Lab Environment Preparation

Source: Internet
Author: User
Tags gdb debugger

(Description: This is a summary of the experimental class of the hit operating system)

First, the experimental platform
Ubuntukylin-14.04-desktop-i386 (I am Ubuntu installed in VMware, it is better to install vmtools, more convenient operation)

Second, the experimental tools
1, bochs:pc machine Simulator, which simulates the environment can run a variety of systems, similar to the VMware
2, GCC compiler
3, GDB Debugger
4, AS86: assembly language Compiler
5, LD86: assembly language linker
6, linux-0.11 Source code

Third, before using
1, download Hit-oslab, which contains Bochs, linux-0.11 source code, as well as some good scripts. Hit-oslab: Http://pan.baidu.com/s/1bn8PHi3
2, install AS86 and ld86
$ sudo apt-get install Bin86
3, install gcc-3.4
Gcc-3.4:http://pan.baidu.com/s/1o6wxwhc
Installation method: $ sudo./inst.sh i386 # If your computer's CPU is Intel's
$ sudo./inst.sh AMD64 # If your computer's CPU is AMD's

Four, start using
1, Run and debug
Compile kernel: Enter the linux-0.11 directory, $ make to compile the entire Linux kernel
Run Linux system: Execute script under Oslab directory $./run as shown below:

      
assembly-level debugging: $./dbg-asm
C Language-level debugging: $./DBG-C # The first step
$./RUNGDG # Step Two
2, file switching between Ubuntu and Linux 0.11
$ sudo./mount-hdc# to mount the Linux file system to the HDC directory
# HDC directory is the same file system as the Linux 0.11 kernel.
# and then just do it in the HDC directory
$ sudo unmount hdc # After reading and writing, the filesystem should be uninstalled from the HDC directory

Lab Environment Preparation

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.