Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am trying to insert modules but with bad results - I suspect its to do with the kernel version or something but being very new, I can't be sure what needs to be done. Here is the dump of what resulted:
While compiling the source (make) there was a portion that said this:
checking for directory with kernel source... /lib/modules/2.4.21-0.13mdk/build
checking for kernel version... 2.4.21-0.13mdk
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.
*** Please make sure that the same compiler version was used for building kernel.
Could this be to blame? Any help with what I need to do next would be greatly appreciated. It'll help me get audio working!
where did you get these modules from? they wernt compiled with the kernel were they? its better to compile the kernel and modules with the same compiler so perhaps it would be better to recompile the whole kernel.
it looks like your kernel is missing some dependancies, either sound support isnt in the kernel or you havnt run depmod since you installed these new modules. but as i say above, modules should be compiled with the same compiler that did the kernel.
If 'rpm -qa | grep kernel-source' dosn't return something like: 'kernel-source-2.4.21-0.25mdk' I don't hink you have kernel source installed correctly.
Try 'rpm -qa | grep kernel'.
Can you remember what command and/or program you used to install sources? If you can't remember maybe it's still in your shell history (browse through it with up-arrow and remember to be root (if you installed sources as root that is)).
Originally posted by kev82 it looks like your kernel is missing some dependancies, either sound support isnt in the kernel or you havnt run depmod since you installed these new modules. but as i say above, modules should be compiled with the same compiler that did the kernel.
The compiler is the same - its a new installation and I haven't done anything to update the compiler (if I understood you correctly).
Also, here is the result of running depmod -ae
depmod: *** Unresolved symbols in /lib/modules/2.4.21-0.13mdk/kernel/sound/acore/snd.o
Originally posted by kamstrup Try 'rpm -qa | grep kernel'.
This is the result
Originally posted by kamstrup Can you remember what command and/or program you used to install sources?
The sources got installed on their own from the CD when I installed another application that needed them. I ran auto update (Mandrake specific app probably) to do this.
from what i can see you are trying to compile some extra kernel modules and get them to work with the standard precompiled kernel that comes with mandrake, i asked whether the compiler that you compiled the modules with was the same as the one which compiled the kernel, this is unlikely if you didnt compile the kernel yourself. i would suggest you compile yourself a new kernel with whatever gcc you have, and then compile the modules for that kernel with the same gcc. there is a kernel compiling guide somewhere on this site but im not sure where.
it wouldnt change any settings, if you dont do it right not all of your hardware will work but you can always boot back with your old kernel. as long as you change the value of EXTRAVERSION in the kernel makefile so you dont overwrite your current modules then nothing can really go wrong. once you get these modules working you will need to reinstall the nvidia kernel module for your new kernel but thats not hard to do.
Any chance I can undo the new driver installation and reset the system to the earlier config? Basically just roll back the changes that were made through the configure, make and make install commands. If I can restore the system to that point, that would be great.
Originally posted by kev82 as long as each kernel has a different EXTRAVERSION then you can have as many kernels as you like and choose which you want at boot time, i have 4 different kernels installed at the moment.
Ok I think I'm getting closer to installing the kernel. Checked the Makefile and it says the following
EXTRAVERSION = -0.13mdkcustom
What should I do to have multiple kernels on the same system?