Visit Our UNIX and Linux User Community

Kernel compilation

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Kernel compilation
# 1  
Old 07-06-2007
Kernel compilation

I have re-compiled kernel source code available in /usr/src/linux.2.4.20 with "make" command. The compilation is succesful.

Now the problem is create the image for this. The documentation in the same folder says that now you have compile "make image". There is no option for image in Makefile.

Somebody please help in creating the image & adding the same to grub for booting
# 2  
Old 07-06-2007
I think it is now "make zImage" or similar.

have a look in

1. /boot

2. /boot/grub/menu.lst
# 3  
Old 07-06-2007
kernel compilation

I am new to kernel compilation, i tried many time compiling linux kernel,
But most of the time i failed in doing it(lack of knowledge),If any body have a detailed HOW TO, which would be helpful for me to learn it

I am getting compilation errors, and i dont know the exact problem as well to describe it here

Your experience would be helpful for me

Best Regards,
Rakesh UV
# 4  
Old 07-06-2007
Steps of compilation

Hello All,

These are the steps i followed for compiling kernel 2.4.32, some times there may be some problems in the source files as well , so instead of wasting just download a stable source code again.. it will surely work...

--> Firstly in kernel compilation is configuring the kernel in case of 2.4 kernels...

--> enter make config or make menuconfig (i prefer that)... or make xconfig..

--> then do a make bzImage ( as for now zImage is obsolete..), this step creates the bootable kernel image. copy that to the /boot/ directory.

--> then do a make modules ( this would bake the modules)

--> then as a root user do a make modules_install ( this would create a folder in /lib/modules/(kernel version) which would contain the modules..)

--> Now the next thing u have to create a initrd image .. in the /boot directory, so

# cd /boot
# mkinitrd initrd-2.4.32.img [kernel version, 2.4.32]

--> The last step would create the .img which is the initrd image.

Now u have to edit the file /etc/grub/grub.conf enter the lines

/initrd /boot/(initrd img)
/kernel /boot/bzImage (the image of the kernel).
may be some entries of the root files system..
/root /dev/hda3 ( also some options u can enter..)

--> Finally reboot the system and if every thing goes okay u will be see the option in the grub boot loader prompt, select it and enjoy.........

--> Currently lilo is less popular , but may be some one cud write steps for editing the lilo.conf


Previous Thread | Next Thread
Test Your Knowledge in Computers #635
Difficulty: Medium
The iPhone 6 and 6S were available in three sizes at launch: 32, 64, and 128 GB.
True or False?

9 More Discussions You Might Find Interesting

1. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

Hi everyone, I am trying to prevent the ehci_hcd kernel module to load at boot time. Here's what I've tried so far: 1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here): 2) Blacklisted the module by adding the following string to 3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies

2. UNIX for Dummies Questions & Answers

Kernel Compilation Issue

I have installed ubuntu 11.04 on my system. After this when I used to give uname -r it showed me kernel version as 2.6.38. Now I had downloaded kernel from and installed it using the following steps: make make modules make modules_install make install This created... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

3. Linux

Linux kernel compilation

I have complied the kernel with a default settings... now if I load this kernel , it'll load perfectly but the INTERNET is not workink... I think in the default settings The network modules are not included.. Can anybody help me out with the selection of the network module when i give "make... (1 Reply)
Discussion started by: naresh046
1 Replies

4. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

5. Linux

Supermicro(dual core) server getting rebooted after "decompressing the kernel;booting the kernel" me

supermicro(dual core) server getting rebooted after "decompressing the kernel;booting the kernel" message comes. I tried giving acpi=off to the kernel command line but same problem.It shows everything ok and no problem with memory and processors and power supplies.Wt could be the reason? It has... (1 Reply)
Discussion started by: pankajd
1 Replies

6. Red Hat

Kernel compilation for s3c2440

Hi All, I am trying to compile Kernel 2.6.31 with arm-linux-gcc3.2.2 for s3c2440a, but I am not able to perform the task. I am using Redhat 9 firstly i am using the following commands $make s3c2410_defconfig // there is no error in execution of this command next i run $make ... (0 Replies)
Discussion started by: niranjanvg
0 Replies

7. UNIX for Advanced & Expert Users

Kernel module compilation problem

I have one big module 2.6.18 kernel mod.c I want to divide this to several files. The problem is to write right Makefile lib1.h lib1.c mod.c mod.c works fine normally but when I divide into several files and try to compile with this makefile obj-m := mod.o mod-objs := lib1.o ... (3 Replies)
Discussion started by: marcintom
3 Replies

8. Red Hat

kernel compilation: ncurses issue

Hi, While trying to build the linux kernel -, i get the following error message during initial phase(make menuconfig) : scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory <=== In file included from scripts/kconfig/lxdialog/checklist.c:24: It seems... (1 Reply)
Discussion started by: amit4g
1 Replies

9. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies

Featured Tech Videos