We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

how to compile a 2.4 kernel with module support?

b123coder
b123coder asked
on
Medium Priority
387 Views
Last Modified: 2013-12-15
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?

Comment
Watch Question

Commented:
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.

Commented:
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...

Author

Commented:

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.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.