The old Linux kernel source ver 0.11 which has been tested under modern Linux, Mac OSX and Windows.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
yuan c2e45a7f55
Merge pull request #6 from calee0219/patch-1
6 years ago
boot lab2 7 years ago
fs update: update the 0.11, make it could be compile on the ubuntu 16.04 7 years ago
include lab2 7 years ago
init initial copy from http://www.oldlinux.org/oldlinux/viewthread.php?tid=13681 11 years ago
kernel lab2 7 years ago
lib update: update the 0.11, make it could be compile on the ubuntu 16.04 7 years ago
mm initial copy from http://www.oldlinux.org/oldlinux/viewthread.php?tid=13681 11 years ago
tools support Mac OS X 11 years ago
.gdb_history lab2 7 years ago
.gitignore initial copy from http://www.oldlinux.org/oldlinux/viewthread.php?tid=13681 11 years ago
Makefile support Mac OS X 11 years ago
Makefile.header Update Makefile.header 7 years ago
README.md Nesting hastag 6 years ago
hdc-0.11.img lab2 7 years ago
readme.old initial copy from http://www.oldlinux.org/oldlinux/viewthread.php?tid=13681 11 years ago

README.md

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

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

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

same as section 1.2

3. Build on Windows

todo...