Link to home
Start Free TrialLog in
Avatar of b123coder
b123coder

asked on

how to compile a 2.4 kernel with module support?

i installed a kernel source 2.4.24 on my redhat linux 9 machine which have kernel 2.4.20.
when i start 'make menuconfig' and do fine tune for my new kernel 2.4.24 and compile it.
it compiled successfuly.i then boot it. but while booting it gives iptables module error and
display that service FAILED. same thing for USB devices. the USB file sytem starts successfully
but then next it gives USB mouse, hdd, keyboard initialization FAILED.
how can i solve this. the kernel boots then very well with remaining services configured.
Also when i check lsmod it gives very less module info 1 or 2 .but when i boot to my default installation it gives me 15 to 20 entries with lsmod command. how can i made it same for my newly configured kernel?

Avatar of Alf666
Alf666

Two choices :

1) By hand. For each of these modules, under menuconfig, ask for a module instead of just "enabled" (the "m" choice).

2) You have to take the 2.4.20 config. It should be in : /usr/src/linux-2.4/configs

cd /usr/src/linux (or wherever you compile your kernel).

backup the config that took you so long to create :
cp .config ~/my-kernel-config

make mrproper

copy the current config to the .config file

and do :

make oldconfig

The process will ask you some questions about the new kernel parameters.

Then, you can make dep ; make bzImage ; make modules ; make modules_install

You can take this as a base config for customizing your kernel.
if you find that your 2.4.20 kernel configuration from RH 9 install is well enough for you, then better use that config file.

cp /boot/kernel(something).config /usr/src/linux-2.4.24
which means: copy kernel.config file to the newly decompressed folder of 2.4.24.. then...

make menuconfig as you said, look for the modules you want to ADD, like if you have plans to purchase additional hardware for it, or to enable networking features in the near future, then install it. (instructions are there, its just "M") and then...

make dep ; make bzImage ; make modules

then wait for errors, if there are none, then move on

make modules_install

and of course copy the bzimage of 2.4.24 from /usr/src/linux-2.4.24/i386/boot/bzImage and let your Linux boot manager use that, much better if you ADD it up first inorder to retain your original kernel.

if you're well with the newly compiled kernel, then just comment it out from your boot manager and thats enough...
Avatar of b123coder

ASKER


can any body tell me which minimum options should i select in USB file system in make menuconfig to use USB devices.
cause rh9 have everything enbled in that menu. I want only minumum that meance to run my usb printer support in kernel only.
ASKER CERTIFIED SOLUTION
Avatar of Alf666
Alf666

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial