Skip to content

Commit c2e45a7

Browse files
author
yuan
authored
Merge pull request torvalds#6 from calee0219/patch-1
Make markdown seems right
2 parents e2fd6f5 + a96a395 commit c2e45a7

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@ Linux-0.11
33

44
The old Linux kernel source ver 0.11 which has been tested under modern Linux, Mac OSX and Windows.
55

6-
##1. Build on Linux
6+
## 1. Build on Linux
77

8-
##1.1. Linux Setup
8+
### 1.1. Linux Setup
99

1010
* a linux distribution: debian , ubuntu and mint are recommended
1111
* some tools: gcc gdb qemu
1212
* 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.
1313
* Now, This version already support the Ubuntu 16.04, enjoy it.
1414

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+
```
1628
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
2130
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
3132
3233
* install cross compiler gcc and binutils
3334
* install qemu
3435
* 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.
3536
* a linux-0.11 hardware image file: hdc-0.11.img
3637

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
41+
```
4042

4143
optional
44+
```bash
45+
$ wget ftp://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.bz2
46+
$ tar -xzvf gdb-7.4.tar.bz2
47+
$ cd gdb-7.4
48+
$ ./configure --target=i386-elf
49+
$ make
50+
```
4251

43-
$ wget ftp://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.bz2
44-
$ tar -xzvf gdb-7.4.tar.bz2
45-
$ cd gdb-7.4
46-
$ ./configure --target=i386-elf
47-
$ make
48-
49-
50-
##2.2. hack linux-0.11
51-
52-
same as section 1.2
53-
52+
### 2.2. hack linux-0.11
53+
same as section 1.2
5454

55-
##3. Build on Windows
5655

57-
todo...
56+
## 3. Build on Windows
57+
todo...

0 commit comments

Comments
 (0)