Solved

how to compile a 2.4 kernel with module support?

Posted on 2004-04-01
4
351 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?

0
Comment
Question by:b123coder
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10734568
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.
0
 

Expert Comment

by:navijr
ID: 10759585
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...
0
 

Author Comment

by:b123coder
ID: 10763279

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.
0
 
LVL 9

Accepted Solution

by:
Alf666 earned 50 total points
ID: 10764144
Depends on your hardware. You'd need (at least) :

I suggest doing all as modules.

CONFIG_USB=m
CONFIG_USB_UHCI=m
CONFIG_USB_OHCI=m
CONFIG_USB_PRINTER=m

There's a good chance it's enough. But, if you really want to compile the minimum, it'll take you time to identify everything.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
centos linux 65 186
android secure ftp 3 70
Intel fortran compiler (ifort) 5 57
Advice on ESXi 5.1 Health / Storage 1 42
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question