-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
62 lines (45 loc) · 1.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
This is the a simple x86-based OS project. The following are some breif description.
Tools needed:
gcc
gas
ld
qemu
1. FILES: there are five folders and three text files.
a. boot: Directory
contains bootloader source code and readme of the bootloader.
b. kerenl: Directory
contains the kernel source code.
c. document: Directory
contains the change log and some refernce document.
d. bin: Directory
contains the binary files of the project. (After using make)
e. dump: Directory
contains the dump files of the project. (After using dump.sh)
f. makefile: script
the makefile of the project.
g. script: Directory
contains some shell scripts that help me finished my work.
h. readme: text
you are now looking at it. :p
i. tmp: Directory
contains the the map file and binary file after make.
do not remove the directory after you make install.
j. tools: Directory
contains the tools to install the kernel.
2. makefile:
there are three additional option of this makefile.
a. clean: clean the obj files.
b. uninstall: clean the binary files conatin in the bin directory.
c. install: create the os.flp virtual floppy disk.
and also install the bootloader and kernel to it.
P.S I write a new program which will generate the floppy disk format, use it to generate
the floppy disk
3. script:
there are three scripts in the script folder.
before using script set the enviroment variable PROJECT_PATH to the root directory.
ex.
PROJECT_PATH=`pwd`
export PROJECT_PATH
a. run.sh: run the qemu and the kernel.
b. dump.sh: dump the binary file for debug.
c. debug.sh: generate a debug file for gdb for debug.