(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