Compiling Old Linux kernel and Emulating on QEMU.

 

1.Git Repository:
    https://github.com/mahadevvinay/Linux_0.01

2.Environment:
     i) Ubuntu :12.04
     ii) gcc version 4.6.3
     iii) Qemu

3. Download the Linux source code:
     git clone https://github.com/mahadevvinay/Linux_0.01.git

Get the Linux Source code from above command. This source code contains Linux, hard disk Image linux-0.11.img and patch for compiling on gcc version 4.6.3 version.

4. Apply the Patch

cd Linux_0.01

Apply the patch to make source code compatible with latest gcc version and get compiled.

patch -p1 < linux_0.01_Compilations_changes.patch

5)Build the source code

Compile the source code using below command.

$make

4)Boot the Images on Qemu using below command.

qemu-system-i386 -m 128M -boot a -fda Image -hdb Images/linux-0.11.img

 

linux_0-11_cmd

Linux_0.11.png

 

 

Advertisements

About VinayMahadev

I am passionate about Embedded Linux systems . I believe in "If you want to learn something, read about it. If you want to understand something, write about it. If you want to master something, teach it". Here I am just trying to connect the Dots.
Gallery | This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s