Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Notifications You must be signed in to change notification settings

liznear/Linux-0.11

 
 

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

  • 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) set architecture i386:x86-64
(gdb) target remote :1234
(gdb) b main
(gdb) c

2. Build in Docker

The original project is pretty old, and it can only be built on an old system without changes. This option makes compiling easier.

To build, you can run

make in-docker

It builds a docker image including all required dependencies, and also build Linux 0.11 in it. After that, you can do the same as 1.2 in your host system.

3. Build on Mac OS X

3.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

3.2. hack linux-0.11

same as section 2.2

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.0%
  • Assembly 13.3%
  • Makefile 7.2%
  • Other 0.5%