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.
I compiled a custom kernel to enable usb and parallel printing support on my laptop. I ran into the same problem I have always run into when compiling a custom kernel. When booting it can't find any modules, and rightly so. I took a look at "/lib/modules/2.4.20/kernel/drivers" and I only see two dirs "input" and "net", while the 2.4.18 (original kernel) drivers dir contains a ton of files/dirs. Should I just copy over the modules from the old kernel's dir to the new one? What did I do wrong? I did do the "make modules" and "make modules_install", and they appeared to have no errors. Oh, and I'm running Slackware 8.1 on a Thinkpad X23
edit: I also tried "depmod -a" and rebooted, but that didn't change anything.
If you can provide your exact steps when compiling your kernel it would probably help us determine what the problem could be, you could be as simple as missing a step.
I tried your suggestion, once with 'make install' at the time you suggested and once with running it last, but get the same problem.
One thing that I've noticed is when I do the 'make modules' and 'make modules_install' I see ALOT of 'Nothing to do'. In fact it seems EVERY entry says that. Could that be the root of my problem?
I have hardly anything enabled as modules. Almost everything is loaded through the kernel.
What modules are you needing ? If your not providing any or very little modules, then there most likely won't be any in those directories then you mentioned.
Just compile what you need and you should be good to go.
I've only enabled (in make menuconfig) what I need (usb printing support, ati radeon, etc.). Things that I didn't understand I left alone without messing with them.
the only problem I can see is that 'modprobe' can't find any modules I need to load. The '/lib/modules/2.4.20/kernel/drivers' directory doesn't contain much of anything. I must be doing something wrong to not get the modules needed over there. Should I try enabling as much as possible as modules instead of loading them through the kernel? Could the kernel be too big? There must be a step I'm missing to not have the modules copied over correctly. Are there some essential things that make menuconfig should have enabled?
I tried loading more things as modules instead of kernel-loading, and I unfortunately have the same result. I tried '/sbin/modprobe [module]', but it also comes up with 'Can't locate module'. I am at my wit's end. Is there anywhere that I can get pre-configured kernel config files? I must not be configuring something correctly. Any ideas on what's going on? It has to be something simple.
When your exiting out of make menuconfig, it does prompt to save correct ? Have you tried to save it and load it that way maybe ? Its got to be something in the make menuconfig, have you tried maybe make xconfig to bring it up graphically to configure ?
well, guess what my problem was... I had no problem! The reason I kept seeing 'unable to load module' was because it was still booting with the old 'rc.modules' file where I had uncommented alot of lines to load modules. The new kernel had these things loaded into it, so the 'make modules/modules_install' didn't copy the modules over, resulting in modprobe not being able to find the modules in '/lib/modules/...'
I feel like such an idiot. Thank you so much for all your help, and I have learned a great deal. I am terribly sorry for the confusion and my oversight.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.