LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-20-2005, 07:41 AM   #1
pierre44
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Rep: Reputation: 0
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
 
Old 07-20-2005, 08:38 AM   #2
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Hello

You can try upgrading your kernel and compile the option you need into the kernel, not as a module.
 
Old 07-20-2005, 09:12 AM   #3
pierre44
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 07-20-2005, 09:34 AM   #4
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
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.
 
Old 07-20-2005, 09:45 AM   #5
ilaiy
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Rep: Reputation: 15
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
 
Old 07-21-2005, 08:39 AM   #6
pierre44
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 07-21-2005, 09:24 AM   #7
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Which driver do you want to include?
 
Old 07-21-2005, 09:40 AM   #8
pierre44
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 07-21-2005, 09:56 AM   #9
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
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)
 
Old 07-21-2005, 11:38 AM   #10
mcgrew
Member
 
Registered: May 2005
Location: West Virginia, US
Distribution: Gentoo
Posts: 56

Rep: Reputation: 21
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 03:55 PM
kernel 2.6.9 Kernel panic problem salahuddin_66 Slackware 2 08-11-2007 04:17 AM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 10:48 PM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 05:59 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration