0% found this document useful (0 votes)
45 views2 pages

Linux Compilation

The document provides information about compiling Linux kernels. It discusses what a kernel is, when recompilation is required, hardware and software requirements for compilation, and tips for determining the current hardware configuration. The key steps are: check hardware meets minimum requirements of 128MB RAM and 2GB HDD; ensure required software versions like GCC, Make, binutils are installed; and use lspci and proc/cpuinfo to check current hardware before compiling a new kernel version.

Uploaded by

Monika Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views2 pages

Linux Compilation

The document provides information about compiling Linux kernels. It discusses what a kernel is, when recompilation is required, hardware and software requirements for compilation, and tips for determining the current hardware configuration. The key steps are: check hardware meets minimum requirements of 128MB RAM and 2GB HDD; ensure required software versions like GCC, Make, binutils are installed; and use lspci and proc/cpuinfo to check current hardware before compiling a new kernel version.

Uploaded by

Monika Shah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux compilation

What is kernel?
It is part of operating system software
It makes sure that all other processes in the system work together coherently.
The kernel has the most important job of keeping everything else synchronized.

When it is required?
After adding static device driver

To optimize the kernel


To upgrade the kernel version
After installing a patch
To install kernel on different platform

Hardware Requirement
Minimum configuration (2.4.X) as per published document
2.4 kernel can boot with 8M of RAM, but preferred is 64M.
To build kernel actually requires, little extra kernel.

Hardware Requirement (based on kernel version)


128 MB RAM
2GB HDD
200MHz pentium or equivalent CPU

Software Requirement
The minimum software versions for a kernel build are found in the file
./Documentation/Changes file of the installed sources.

They are as follows: 2.4.x series

o Gnu C 2.91.66 # gcc --version


o Gnu make 3.77 # make --version
o binutils 2.9.1.0.25 # ld -v
o util-linux 2.10o # fdformat --version
o modutils 2.4.2 # insmod -V
o e2fsprogs 1.19 # tune2fs
o reiserfsprogs 3.x.0b # reiserfsck 2>&1|grep reiserfsprogs
o pcmcia-cs 3.1.21 # cardmgr -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
2.6.x series

o Gnu C 2.95.3 # gcc --version


o Gnu make 3.78 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.1.0 # xfs_db -V
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.1.13 # ps --version
o oprofile 0.5.3 # oprofiled --version

A common sticking point on distributions transitioning between 2.4.x and 2.6.x kernels is
the module-init-tools package which must be updated to work with the 2.6.x kernel.

Also, be aware that the underlying version of glibc, the GNU libc package, is implied. If
you are upgrading from particularly old distributions then you will likely need to upgrade
glibc itself

Determine Current Hardware


/sbin/lspci utility displays information about hardware
/proc/cpuinfo utility prints processor information

You might also like