Skip to content

campolake/linux-0.11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux-0.11

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

##1. Build on Linux

##1.1. Linux Setup

##1.2. hack linux-0.11

$ make help		// get help
$ make  		// compile
$ make start		// boot it on qemu
$ make debug		// debug it via qemu & gdb, you'd start gdb to connect it.

$ gdb tools/system
(gdb) target remote :1234
(gdb) b main
(gdb) c

##2. Build on Mac OS X

##2.1. Mac OS X Setup

  • install cross compiler gcc and binutils
  • install qemu
  • 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.
  • a linux-0.11 hardware image file: hdc-0.11.img

$ sudo port install qemu
$ sudo port install i386-elf-binutils i386-elf-gcc

optional

$ wget ftp://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.bz2
$ tar -xzvf gdb-7.4.tar.bz2
$ cd gdb-7.4
$ ./configure --target=i386-elf
$ make

##2.2. hack linux-0.11

准备学习添加一些内存管理的算法、ext2文件系统、tcp/ip 协议栈 的测试代码

3.参考资料

Linux内核设计的艺术
Linux内核完全注释
30天自制操作系统

About

在linux0.11代码上的一些尝试

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published