You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-32Lines changed: 32 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -3,55 +3,55 @@ Linux-0.11
3
3
4
4
The old Linux kernel source ver 0.11 which has been tested under modern Linux, Mac OSX and Windows.
5
5
6
-
##1. Build on Linux
6
+
##1. Build on Linux
7
7
8
-
##1.1. Linux Setup
8
+
### 1.1. Linux Setup
9
9
10
10
* a linux distribution: debian , ubuntu and mint are recommended
11
11
* some tools: gcc gdb qemu
12
12
* a linux-0.11 hardware image file: hdc-0.11.img, please download it from http://www.oldlinux.org, or http://mirror.lzu.edu.cn/os/oldlinux.org/, ant put it in the root directory.
13
13
* Now, This version already support the Ubuntu 16.04, enjoy it.
14
14
15
-
##1.2. hack linux-0.11
15
+
### 1.2. hack linux-0.11
16
+
```bash
17
+
$ make help // get help
18
+
$ make // compile
19
+
$ make start // boot it on qemu
20
+
$ make debug // debug it via qemu & gdb, you'd start gdb to connect it.
21
+
```
22
+
```gdb
23
+
$ gdb tools/system
24
+
(gdb) target remote :1234
25
+
(gdb) b main
26
+
(gdb) c
27
+
```
16
28
17
-
$ make help // get help
18
-
$ make // compile
19
-
$ make start // boot it on qemu
20
-
$ make debug // debug it via qemu & gdb, you'd start gdb to connect it.
29
+
## 2. Build on Mac OS X
21
30
22
-
$ gdb tools/system
23
-
(gdb) target remote :1234
24
-
(gdb) b main
25
-
(gdb) c
26
-
27
-
28
-
##2. Build on Mac OS X
29
-
30
-
##2.1. Mac OS X Setup
31
+
### 2.1. Mac OS X Setup
31
32
32
33
* install cross compiler gcc and binutils
33
34
* install qemu
34
35
* install gdb. you need download the gdb source and compile it to use gdb because port doesn't provide i386-elf-gdb, or you can use the pre-compiled gdb in the tools directory.
35
36
* a linux-0.11 hardware image file: hdc-0.11.img
36
37
37
-
#
38
-
$ sudo port install qemu
39
-
$ sudo port install i386-elf-binutils i386-elf-gcc
38
+
```bash
39
+
$ sudo port install qemu
40
+
$ sudo port install i386-elf-binutils i386-elf-gcc
0 commit comments