LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with kernel (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-kernel-344948/)

pierre44 07-20-2005 06:41 AM

Problem with kernel
 
Hi everybody!!

I am new under Linux. I had 1 problem to insert modules in the kernel with the command insmod:

insmod:error inserting /lib/modules/2.6.4-52default/dsr//linkcache.ko
> : -1 Unknown symbol in module

Someone tells me that there are probably a number of causes for this problem. The most likely is that I have compiled the kernel module against kernel source code that does not match my running kernel. Hence the "Unknown symbol" message.


Since I just begin with Linux, I don't know the different steps to do in order to resolve my problem following the above advices.

Thank you in advance.

Pierre

dinolinux 07-20-2005 07:38 AM

Hello

You can try upgrading your kernel and compile the option you need into the kernel, not as a module.

pierre44 07-20-2005 08:12 AM

Kernel problem
 
Thank you for your help but I am a newbie and I dont know how to make this:

-Choice of the kernel version

-Compile the option I need into the kernel

Thank you in advance.

dinolinux 07-20-2005 08:34 AM

Hello

If you don't need a particullar version of the kernel, you can safely go for the latest one which is 2.6.12.3. Try downloading it from http://www.kernel.org. If you know exactly which option you need just say Y instead of M when you get there. More details can be found at http://www.kickino.org/kernel-projec...rade_howto.pdf and in the README which you will find after unpacking the kernel tarball.

ilaiy 07-20-2005 08:45 AM

The thing which you are compiling as a module when you run

make menuconfig

Just change it into a "*" which would compile it into the kernel

./thanks
ilaiy

pierre44 07-21-2005 07:39 AM

Problem kernel
 
Hello,

I want to upgrade my kernel with the version 2.6.12.3 but in menuconfig i dont know what option to choose in order to compile my new kernel with the module wanted

dinolinux 07-21-2005 08:24 AM

Which driver do you want to include?

pierre44 07-21-2005 08:40 AM

problem kernel
 
In fact, some people tells me I ave to compile a new kernel with the module in order to avoid this error when i want to set up a routing algorithm:

insmod:error inserting /lib/modules/2.6.4-52default/dsr//linkcache.ko
> : -1 Unknown symbol in module

dinolinux 07-21-2005 08:56 AM

You can try compiling it into the kernel, but if you absolutely have to use a module just check it as a module and try to load it after your kernel has compiled. (The error may happen beacause you have an old kernel)

mcgrew 07-21-2005 10:38 AM

The problem is likely becuase you compiled the module using old kernel sources. Is this a module you downloaded from the internet?

If so, make sure the symbolic link usr/src/linux points to the directory with the current kernel sources. run
Code:

ls -l /usr/src/linux
uname -r

These should give you the same version number. If not, that is your problem. Change the symbolic link to point to your kernel sources (I can't remember the command line switches for that...anyone else?), and then recompile the module.

If you didn't download this module from the internet, but it was instead compiled with your kernel (or came with your distro install) do the same version check, and if they are the same do
Code:

cd /usr/src/linux
make clean
make modules
make modules_install

this should recompile your modules and recopy them to the appropriate directory. Now try to load the module (use modprobe instead of insmod).
Code:

modprobe linkcache


All times are GMT -5. The time now is 01:27 PM.