Friday, February 24, 2006

HOW TO COMPILE A LINUX KERNEL ?

In essence, a new kernel is generated in 3 steps.

1 .#make config

This runs bash scripts scripts/configure ,which read in the arch/i386/config.in.

Configuration scripts are easier to handle can called with
2 #make menuconfig

for a menu-driven installation on the console, or with

3 # make xconfig

for a menu driven installation under xwindows.

4 #make oldconfig

ensures that the old default valuesare accepted without further query.

5 # make depend

is a purely technical operation .it uses the capability of GNU c compiler.

6 # make

to make a bootable linux kernel.

7 #make boot

must be called . then a further mechanism is implemented which enables the loading of the linux kernel immediately in the memory above 1mbyte

8 #make drivers

will only cause the sources in the drivers / subdirectory that is,the drivers ,to be compiled.

9 #make SUBDIRS=drivers

should be called .this approach can also be called for other subdirectories.

A large number of device drivers and filesystems can be created as modules this can be done by

10. #make modules


link

2 comments:

Anonymous said...

good job!!!
keep it up!!!!

Anonymous said...

I think this will work

come back again

Ashok