Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I have a fedora core 2 distribtion with 2 kerrnels 2.6.5 and 2.6.9
I want to configure kernel 2.4.x on it since some appllication I want to run needs it.
How can I compile and build the kernel.
I tried the usual way of
make xconfig
make clean
make dep
make bzImage
tille here the process is normal .the trouble i guess starts from here.
make modules
make modulles_install
but when i run make modules it gives all the output on the screen like any othe 2.4.x kernel but the output here says that no need to do anything for eahc module
and the when i run make modules_install
the last line of the output is
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.24-28; fi
It does not give any error though.
I thiink the building is not done properly.However I tried to do all the ususal formalities of updating grub.conf.
But when i reboot into the 2.4.x kernel it gives me an error saying
kmod failed to exec /sbin/modprobe -s -k scsi_hostadapter , err no =2
kernel panic to mount root on fs
the last line of the output is
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.24-28; fi
That's correct, that usually means it worked.
Quote:
But when i reboot into the 2.4.x kernel it gives me an error saying
kmod failed to exec /sbin/modprobe -s -k scsi_hostadapter , err no =2
kernel panic to mount root on fs
Did you remember to make a new initrd? (If your kernel doesn't have the drivers it needs in order to talk to your hard disk compiled into it, then it needs those drivers placed in an "initial ramdisk" or initrd. man mkinitrd.)
made the changesin grub.conf.
Everything looks fine but the loading of scsi_hostadapter error i get during boot.I think its got something to do with loading of modules
mkinitrd automatically loads [...]
all scsi_hostadapter entries in /etc/modprobe.conf,
Since you had a question earlier about a 2.6 kernel, I assume you're going from 2.6 down to 2.4, so you probably don't have a modules.conf. I'm guessing that's what the problem is.
I don't remember how to build a modules.conf, but perhaps this howto might help. If you can figure out which modules you need, you may not need the modules.conf since you're just trying to put them in the initrd---you can use the --with switch on mkinitrd instead. (Of course, you might possibly need a modules.conf later for some other modules your hardware needs but you can cross that bridge when you get to it.)
Also, since you're building this so specifically for a particular app on your particular machine, wouldn't it be easier to just compile all that stuff into the kernel instead of building it as modules?
HTH.
Last edited by Moy Easwaran; 12-29-2004 at 01:38 AM.
I do have a modproe.conf file in my etc directory.
Right. Sorry, I don't think I was clear: the 2.4 kernel uses a file called modules.conf, not modprobe.conf (which is a 2.6ism, although the two files should look almost or even exactly the same). I was guessing that you're missing a modules.conf.
Anyway, with those and the SCSI modules (either compiled in or added by way of modules.conf or mkinitrd --with), hopefully you're up and running by now.
Wow, man, you're having all kinds of weird problems, aren't you? :-)
Googling suggests that xd is a driver for something (a USB flash card?) and might possibly have had issues in the past. I guess you could try leaving that out if you don't need it, and seeing how that works.
Other than that, I'm really running out of ideas, sorry.
Where did you get this kernel from?---ie. did you start from scratch or are you modifying some distribution's kernel? The safest kernel-building approach IMO is to start with the .config from some stable distro (Slackware is a good choice for this), add what you need, and then subtract incrementally (or I guess decrementally...).
yeah man . I got this kernel from kernel.org man ( ftp.kernel.org )
I will try with some other kernel.I wanted to compile a 2.4.x kernel .Is slackware really trouble free in compilation?
I willr give it a try.
Thanks,
Nitesh
Sounds like your ramdisk is to small. I dont use initrd but its a common prob for gentoo users who use it.The kernel line in grub.conf looks like this "kernel /bzIamge root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 ". You need to increase the size of your ramdisk probably in1024 chunks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.